|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContentManager
Method Summary | |
---|---|
ContentItem |
addContent(ContentItem content)
Adds a new content to the repository. |
Node |
addNode(Node node)
Adds a new content to the repository Will assign the ID internally |
void |
beginTransaction()
Begins a Content Manager transaction |
void |
commitTransaction()
Commit's a Content Manager transaction |
boolean |
deleteContent(String id,
IDIFUser user)
Deletes an existing content from the repository |
boolean |
deleteNode(Long id,
IDIFUser user)
Deletes an existing node from the repository |
boolean |
deleteNode(Long id,
IDIFUser user,
boolean cascadeDelete)
Deletes an existing node from the repository. |
List<ContentItem> |
getContentByDescription(String description,
IDIFUser user)
Searches content items by description |
ContentItem |
getContentById(String id,
IDIFUser user)
Searches a content item by it's unique identifier |
List<ContentItem> |
getContentByName(String name,
IDIFUser user)
Searches content items by name |
List<ContentItem> |
getContentByParentNode(Long nodeId,
IDIFUser user)
Searches content items by parent node |
ContentItem |
getContentFromNodePathByName(String nodeFullPath,
String name,
IDIFUser user)
Searches content items by name and node path |
List<ACLEntry> |
getContentItemACL(String id)
get content item ACL |
List<ACLEntry> |
getNodeACL(Long id)
get node ACL |
Node |
getNodeById(Long id,
IDIFUser user)
Searches a node by unique identifier |
Node |
getNodeByPath(String fullPath,
IDIFUser user)
Searches a node by path |
List<Node> |
getNodesByDescription(String description,
IDIFUser user)
Searches nodes by description |
List<Node> |
getNodesByDescription(String basePathToSearch,
String description,
IDIFUser user)
Searches nodes by description |
List<Node> |
getNodesByName(String name,
IDIFUser user)
Searches nodes by name |
List<Node> |
getNodesByName(String basePathToSearch,
String name,
IDIFUser user)
Searches nodes by name |
List<Node> |
getNodesByParentNode(Long nodeId,
IDIFUser user)
Searches nodes by parent node |
List<Node> |
getRootNodes(IDIFUser user)
Searches root nodes that user has access |
boolean |
grantContentAccessToGroup(String contentId,
String groupId)
Grants group access to content item |
boolean |
grantContentAccessToUser(String contentId,
IDIFUser user)
Grants user access to content item |
boolean |
grantNodeAccessToGroup(Long nodeId,
String groupId)
Grants group access to node |
boolean |
grantNodeAccessToUser(Long nodeId,
IDIFUser user)
Grants user access to node |
boolean |
grantNodeAccessToUser(String nodePath,
IDIFUser user)
Grants user access to node |
boolean |
hasContentAccessGroup(String contentId,
String groupId)
Checks if group has access to the content |
boolean |
hasContentAccessUser(ContentItem content,
IDIFUser user)
Checks if user has access to the content |
boolean |
hasContentAccessUser(String contentId,
IDIFUser user)
Checks if user has access to the content |
boolean |
hasNodeAccessGroups(Long nodeId,
Set<String> groups)
Checks if one of the group has access to the node |
boolean |
hasNodeAccessUser(Long nodeId,
IDIFUser user)
Checks if user has access to the node |
boolean |
moveContent(String contentID,
Long destinationNodeId,
IDIFUser user)
Moves content to another node |
boolean |
moveNode(Long nodeID,
Long destinationNodeId,
IDIFUser user)
Moves a node to another parent node |
boolean |
revokeContentAccessToGroup(String contentId,
String groupId)
Revokes group access to content item |
boolean |
revokeContentAccessToUser(String contentId,
IDIFUser user)
Revokes user access to content item |
boolean |
revokeNodeAccessToGroup(Long nodeId,
String groupId)
Revokes group access to node |
boolean |
revokeNodeAccessToUser(Long nodeId,
IDIFUser user)
Revokes user access to node |
void |
rollbackTransaction()
Roll back the a Content Manager transaction |
ContentItem |
updateContent(ContentItem content)
Updates content in the repository |
Node |
updateNode(Node node)
Updates content in the repository |
Method Detail |
---|
ContentItem addContent(ContentItem content) throws InvalidParentNodeException, NodeNotFoundException, NoAccessException, ContentItemWithDuplicateNameAndParentNodeException, ContentManagerException
content
- the content to add in the repository
InvalidParentNodeException
NodeNotFoundException
NoAccessException
ContentItemWithDuplicateNameAndParentNodeException
ContentManagerException
Node addNode(Node node) throws InvalidPathException, InvalidNameException, NoAccessException, InvalidParentNodeException, NodeNotFoundException, NodeWithDuplicatePathException, ContentManagerException
node
- the node to add
InvalidPathException
InvalidNameException
NoAccessException
InvalidParentNodeException
NodeNotFoundException
NodeWithDuplicatePathException
ContentManagerException
void beginTransaction()
void commitTransaction()
boolean deleteContent(String id, IDIFUser user) throws ContentItemNotFoundException, NodeNotFoundException, NoAccessException, ContentManagerException
id
- the content to deleteuser
- the user that is deleting the content
ContentItemNotFoundException
NodeNotFoundException
NoAccessException
ContentManagerException
boolean deleteNode(Long id, IDIFUser user) throws NodeNotFoundException, NoAccessException, NodeWithNodesException, ContentManagerException
id
- the node to deleteuser
- the user that is deleting the node
NodeNotFoundException
NoAccessException
NodeWithNodesException
ContentManagerException
boolean deleteNode(Long id, IDIFUser user, boolean cascadeDelete) throws NodeNotFoundException, NoAccessException, NodeWithNodesException, ContentManagerException
id
- the node to deleteuser
- the user that is deleting the nodecascadeDelete
- if T will delete all inner nodes and content, if F will launch an exception if the node is not empty
NodeNotFoundException
NoAccessException
NodeWithNodesException
ContentManagerException
List<ContentItem> getContentByDescription(String description, IDIFUser user) throws ContentManagerException
description
- the content iduser
- the user who's searching
ContentManagerException
ContentItem getContentById(String id, IDIFUser user) throws ContentItemNotFoundException, NoAccessException, NodeNotFoundException, ContentManagerException
id
- the content iduser
- the user who's searching
ContentItemNotFoundException
NoAccessException
NodeNotFoundException
ContentManagerException
List<ContentItem> getContentByName(String name, IDIFUser user) throws ContentManagerException
name
- the content iduser
- the user who's searching
ContentManagerException
List<ContentItem> getContentByParentNode(Long nodeId, IDIFUser user) throws NodeNotFoundException, ContentManagerException
nodeId
- the parent node iduser
- the user who's searching
NodeNotFoundException
ContentManagerException
ContentItem getContentFromNodePathByName(String nodeFullPath, String name, IDIFUser user) throws ContentItemNotFoundException, NodeNotFoundException, NoAccessException, ContentManagerException
nodeFullPath
- the node fullPath from the content will be retrievename
- the content iduser
- the user who's searching
ContentItemNotFoundException
NodeNotFoundException
NoAccessException
ContentManagerException
List<ACLEntry> getContentItemACL(String id) throws ContentManagerException
id
- the content item ID
ContentManagerException
List<ACLEntry> getNodeACL(Long id) throws ContentManagerException
id
- the node ID
ContentManagerException
Node getNodeById(Long id, IDIFUser user) throws NodeNotFoundException, NoAccessException, ContentManagerException
id
- the node IDuser
- the user who's searching
NodeNotFoundException
NoAccessException
ContentManagerException
Node getNodeByPath(String fullPath, IDIFUser user) throws NodeNotFoundException, NoAccessException, ContentManagerException
fullPath
- the full path of the node the node IDuser
- the user who's searching
NodeNotFoundException
NoAccessException
ContentManagerException
List<Node> getNodesByDescription(String description, IDIFUser user) throws ContentManagerException
description
- the description of the node to searchuser
- the user who's searching
ContentManagerException
List<Node> getNodesByDescription(String basePathToSearch, String description, IDIFUser user) throws ContentManagerException
basePathToSearch
- the path to search fromdescription
- the name of the node to searchuser
- the user who's searching
ContentManagerException
List<Node> getNodesByName(String name, IDIFUser user) throws ContentManagerException
name
- the name of the node to searchuser
- the user who's searching
ContentManagerException
List<Node> getNodesByName(String basePathToSearch, String name, IDIFUser user) throws ContentManagerException
basePathToSearch
- the path to search fromname
- the name of the node to searchuser
- the user who's searching
ContentManagerException
List<Node> getNodesByParentNode(Long nodeId, IDIFUser user) throws NodeNotFoundException, ContentManagerException
nodeId
- the parent node iduser
- the user who's searching
NodeNotFoundException
ContentManagerException
List<Node> getRootNodes(IDIFUser user) throws ContentManagerException
user
- the user who's searching
ContentManagerException
boolean grantContentAccessToGroup(String contentId, String groupId) throws ContentManagerException
contentId
- the id of the content to grant accessgroupId
- the group to grant access
ContentItemNotFoundException
ContentManagerException
boolean grantContentAccessToUser(String contentId, IDIFUser user) throws ContentItemNotFoundException, ContentManagerException
contentId
- the id of the content to grant accessuser
- the group to grant access
ContentItemNotFoundException
ContentManagerException
boolean grantNodeAccessToGroup(Long nodeId, String groupId) throws NodeNotFoundException, ContentManagerException
nodeId
- the id of the node to grant accessgroupId
- the group to grant access
NodeNotFoundException
ContentManagerException
boolean grantNodeAccessToUser(Long nodeId, IDIFUser user) throws NodeNotFoundException, ContentManagerException
nodeId
- the id of the node to grant accessuser
- the user to grant access
NodeNotFoundException
ContentManagerException
boolean grantNodeAccessToUser(String nodePath, IDIFUser user) throws ContentManagerException
nodePath
- the path of the node to grant accessuser
- the user to grant access
NodeNotFoundException
ContentManagerException
boolean hasContentAccessGroup(String contentId, String groupId) throws ContentItemNotFoundException, NodeNotFoundException, ContentManagerException
contentId
- the id of the content to check accessgroupId
- the group to check access
ContentItemNotFoundException
NodeNotFoundException
ContentManagerException
boolean hasContentAccessUser(ContentItem content, IDIFUser user) throws ContentItemNotFoundException, NodeNotFoundException, ContentManagerException
content
- the content to check accessuser
- the user to check access
ContentItemNotFoundException
NodeNotFoundException
ContentManagerException
boolean hasContentAccessUser(String contentId, IDIFUser user) throws ContentItemNotFoundException, NodeNotFoundException, ContentManagerException
contentId
- the id of the content to check accessuser
- the user to check access
ContentItemNotFoundException
NodeNotFoundException
ContentManagerException
boolean hasNodeAccessGroups(Long nodeId, Set<String> groups) throws NodeNotFoundException, ContentManagerException
nodeId
- the id of the node to check accessgroups
- the group list to check access
NodeNotFoundException
ContentManagerException
boolean hasNodeAccessUser(Long nodeId, IDIFUser user) throws NodeNotFoundException, ContentManagerException
nodeId
- the id of the node to check accessuser
- the user to check access
NodeNotFoundException
ContentManagerException
boolean moveContent(String contentID, Long destinationNodeId, IDIFUser user) throws ContentItemNotFoundException, NodeNotFoundException, NoAccessException, ContentManagerException
contentID
- the content ID to movedestinationNodeId
- the destination node to move touser
- the user request the move
ContentItemNotFoundException
NodeNotFoundException
NoAccessException
ContentManagerException
boolean moveNode(Long nodeID, Long destinationNodeId, IDIFUser user) throws NodeNotFoundException, NoAccessException, ContentManagerException
nodeID
- the original node iddestinationNodeId
- the destination node iduser
- the user requesting the move operation
NodeNotFoundException
NoAccessException
ContentManagerException
boolean revokeContentAccessToGroup(String contentId, String groupId) throws ContentItemNotFoundException, ContentManagerException
contentId
- the id of the content to revoke accessgroupId
- the group to revoke access
ContentItemNotFoundException
ContentManagerException
boolean revokeContentAccessToUser(String contentId, IDIFUser user) throws ContentItemNotFoundException, ContentManagerException
contentId
- the id of the content to revoke accessuser
- the group to revoke access
ContentItemNotFoundException
ContentManagerException
boolean revokeNodeAccessToGroup(Long nodeId, String groupId) throws NodeNotFoundException, ContentManagerException
nodeId
- the id of the node to revoke accessgroupId
- the group to revoke access
NodeNotFoundException
ContentManagerException
boolean revokeNodeAccessToUser(Long nodeId, IDIFUser user) throws NodeNotFoundException, ContentManagerException
nodeId
- the id of the node to revoke accessuser
- the user to revoke access
NodeNotFoundException
ContentManagerException
void rollbackTransaction()
ContentItem updateContent(ContentItem content) throws ContentItemNotFoundException, NodeNotFoundException, NoAccessException, ContentItemWithDuplicateNameAndParentNodeException, ContentManagerException
content
- the content to update in the repository
ContentItemNotFoundException
NodeNotFoundException
NoAccessException
ContentItemWithDuplicateNameAndParentNodeException
ContentManagerException
Node updateNode(Node node) throws NodeNotFoundException, NoAccessException, ContentManagerException
node
- the node to update in the repository
NodeNotFoundException
NoAccessException
ContentManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |