Added revisions support to node management.

Updated node extension implementation.
Updated known permissions for node module.
Improved code for node storage extension , in preparation to code factorization.
Ensured that author is updated when saved.
This commit is contained in:
2015-08-07 19:17:25 +02:00
parent 44ada4b6b1
commit cd0c2acd87
15 changed files with 464 additions and 132 deletions

View File

@@ -35,12 +35,18 @@ feature -- Access: node
do
end
nodes: LIST[CMS_NODE]
nodes: LIST [CMS_NODE]
-- List of nodes.
do
create {ARRAYED_LIST [CMS_NODE]} Result.make (0)
end
node_revisions (a_node: CMS_NODE): LIST [CMS_NODE]
-- Revisions of node `a_node'.
do
create {ARRAYED_LIST [CMS_NODE]} Result.make (0)
end
trashed_nodes (a_user: detachable CMS_USER): LIST [CMS_NODE]
-- <Precursor>.
do
@@ -58,7 +64,12 @@ feature -- Access: node
do
end
node_author (a_id: like {CMS_NODE}.id): detachable CMS_USER
node_by_id_and_revision (a_node_id, a_revision: INTEGER_64): detachable CMS_NODE
-- <Precuror>
do
end
node_author (a_node: CMS_NODE): detachable CMS_USER
-- Node's author. if any.
do
end