|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReviewZoneProvider
This interface defines set of abstract methods that any new custom implementation must implement. Any implementation of ReviewZoneProvider, must be deployed as LiveCycle Service and should adhere to the component specification of Default implementation of ReviewZoneProvider. ReviewZoneProvider provides an abstraction over conventional content store. Review Commenting and Approval provides a default implementation of ReviewZoneProvider, which can be replaced by a custom implementation. A space in review zone provider abstraction represents a folder or directory in the content store. A Content in review zone provider abstraction represents a file in the content store. A node represents a content or space in the content store. But at places term node has been used specifically for content.
Field Summary | |
---|---|
static String |
DOCUMENT_DESCRIPTION
Constant that denotes the description attribute that is set by ReviewZoneProvider Implementation while returning the document |
static String |
DOCUMENT_NAME
Constant that denotes the file name attribute that is set by ReviewZoneProvider Implementation while returning the document |
Method Summary | |
---|---|
String |
createSpace(String spacePath)
Create space and its sub-spaces (sub-directories) in the review zone. |
boolean |
deleteNode(String nodePath)
Delete a content node or space from the review zone. |
List |
getSpaceContent(String spacePath)
Returns all children of given space. |
void |
grantContributePermission(String nodePath,
List usersWithContributePermission,
Boolean applyToChild,
Boolean inheritParent)
Assign permissions to given node/space. |
void |
grantPermission(String nodePath,
List usersWithReadPermission,
List usersWithReadWritePermission,
Boolean applyToChild,
Boolean inheritParent)
Assign permissions to given node/space. |
boolean |
nodeExists(String parentSpacePath,
String nodeName)
Checks whether content exists or not in the Review Zone |
com.adobe.livecycle.content.File |
retrieveContent(String nodePath)
Retrieves the content node from Review Zone. |
void |
revokeContributePermission(String nodePath,
List usersWithContributePermission,
Boolean applyToChild)
Revokes contributor permissions on given node/space from given list of users. |
void |
revokePermission(String nodePath,
List usersWithReadPermission,
List usersWithReadWritePermission,
Boolean applyToChild)
Revokes permissions on given node/space from given list of users. |
boolean |
spaceExists(String parentSpacePath,
String spaceName)
Checks whether the space exists or not in Review Zone. |
String |
storeContent(String spacePath,
String nodeName,
com.adobe.livecycle.content.File content,
String contentType)
Stores the given content to Review Zone. |
String |
storeContent(String spacePath,
String nodeName,
InputStream inputStream,
String contentType)
|
boolean |
supportsContributePermission()
Should return true, if the review zone provider supports contributor role. |
Field Detail |
---|
static final String DOCUMENT_NAME
static final String DOCUMENT_DESCRIPTION
Method Detail |
---|
boolean spaceExists(String parentSpacePath, String spaceName) throws PersistenceException
parentSpacePath
- Parent Space PathspaceName
- Name of the space
PersistenceException
boolean nodeExists(String parentSpacePath, String nodeName) throws PersistenceException
parentSpacePath
- Parent Space PathnodeName
- Name of the content node
PersistenceException
String createSpace(String spacePath) throws PersistenceException
spacePath
- path of the space to be created.
PersistenceException
boolean deleteNode(String nodePath) throws PersistenceException
nodePath
- content node or space path
PersistenceException
void grantPermission(String nodePath, List usersWithReadPermission, List usersWithReadWritePermission, Boolean applyToChild, Boolean inheritParent) throws PersistenceException, UserNotFoundException
nodePath
- Path of the node like /home/rca/test.pdf or /home/rca.usersWithReadPermission
- List of users, who will be given read permissions. It is list of User's OID.usersWithReadWritePermission
- List of users, who will be given write permissions. It is list of User's OID.applyToChild
- If this flag is true then all the child of the node (represented by nodePath)
are also given same permission. This would be only applicable if node represents a space.
e.g if nodePath is /home/rca, then all the children under rca will also be given same permission as rca.inheritParent
- If this flag is true, then parent permission is inherited
PersistenceException
- If there is any error while assigning permission.
UserNotFoundException
- If any user given in the user list if not found.void revokePermission(String nodePath, List usersWithReadPermission, List usersWithReadWritePermission, Boolean applyToChild) throws PersistenceException, UserNotFoundException
nodePath
- Path of the node like /home/rca/test.pdf or /home/rcausersWithReadPermission
- List of users, from whom read permission will be revoked. It is list of User's OID.
e.g. if alex is in the usersWithReadPermission, then after execution of this. Alex should
not have any read/write permission on this node or space.usersWithReadWritePermission
- List of users, from whom write permission will be revoked. It is list of User's OID.
e.g. if alex is in the usersWithReadWritePermission, then after execution of this. Alex should
not have any write permission on this node or space.applyToChild
- If this flag is true then revoke permission recursively apply to all children of the node (
represented by nodePath). This would be only applicable if node represents a space.
e.g if nodePath is /home/rca, then revoke will apply to all the child nodes under rca.
PersistenceException
- If there is any error while assigning permission.
UserNotFoundException
- If any user given in the user list if not found.void grantContributePermission(String nodePath, List usersWithContributePermission, Boolean applyToChild, Boolean inheritParent) throws PersistenceException, UserNotFoundException
nodePath
- Path of the node like /home/rca/test.pdf or /home/rcausersWithContributePermission
- List of users, who will be given contribute permissions. It is list of User's OID.
if RZP does not support, contribute permission, then this method should be no-op.applyToChild
- If this flag is true then all the child of the node (represented by nodePath)
are also given same permission. This would be only applicable if node represents a space.
e.g if nodePath is /home/rca, then all the children under rca will also be given same permission as rca.inheritParent
- If this flag is true, then parent permission is inherited
PersistenceException
- If there is any error while assigning permission.
UserNotFoundException
- If any user given in the user list if not found.void revokeContributePermission(String nodePath, List usersWithContributePermission, Boolean applyToChild) throws PersistenceException, UserNotFoundException
nodePath
- Path of the node like /home/rca/test.pdf or /home/rcausersWithContributePermission
- List of users, from whom contribute permission will be revoked. It is list of User's OID.
e.g. if alex is in the usersWithContributePermission, then after execution of this. Alex should
not have any contribute permission on this node or space. If contribute permission is not supported
then this should be ignored.applyToChild
- If this flag is true then revoke permission recursively apply to all children of the node (
represented by nodePath). This would be only applicable if node represents a space.
e.g if nodePath is /home/rca, then revoke will apply to all the child nodes under rca.
PersistenceException
- If there is any error while assigning permission.
UserNotFoundException
- If any user given in the user list if not found.String storeContent(String spacePath, String nodeName, com.adobe.livecycle.content.File content, String contentType) throws PersistenceException
spacePath
- path of the space, where content should be stored.nodeName
- Name of the contentcontent
- idp.Document that represent the contentcontentType
- content type of the content like applicaion/pdf
PersistenceException
- if content is not storedString storeContent(String spacePath, String nodeName, InputStream inputStream, String contentType) throws PersistenceException
PersistenceException
com.adobe.livecycle.content.File retrieveContent(String nodePath) throws PersistenceException
nodePath
- Absolute path to the content node in Review Zone like /Company Home/RCA/test.pdf
PersistenceException
- if content is not retrievedList getSpaceContent(String spacePath) throws PersistenceException
spacePath
- Absolute path to space.
PersistenceException
- if content is not retrieved.boolean supportsContributePermission() throws PersistenceException
PersistenceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |