|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.rca.client.ReviewZoneProviderServiceClient
public class ReviewZoneProviderServiceClient
Field Summary |
---|
Fields inherited from interface com.adobe.livecycle.rca.rzp.ReviewZoneProvider |
---|
DOCUMENT_DESCRIPTION, DOCUMENT_NAME |
Constructor Summary | |
---|---|
ReviewZoneProviderServiceClient()
|
|
ReviewZoneProviderServiceClient(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory)
|
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,
Boolean getOnlyFiles)
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.idp.Document |
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.idp.Document content,
String contentType)
Stores the given content to Review Zone. |
boolean |
supportsContributePermission()
Should return true, if the review zone provider supports contributor role. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReviewZoneProviderServiceClient()
public ReviewZoneProviderServiceClient(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory)
Method Detail |
---|
public String createSpace(String spacePath) throws PersistenceException
ReviewZoneProvider
createSpace
in interface ReviewZoneProvider
spacePath
- path of the space to be created.
PersistenceException
public boolean deleteNode(String nodePath) throws PersistenceException
ReviewZoneProvider
deleteNode
in interface ReviewZoneProvider
nodePath
- content node or space path
PersistenceException
public List getSpaceContent(String spacePath, Boolean getOnlyFiles) throws PersistenceException
ReviewZoneProvider
getSpaceContent
in interface ReviewZoneProvider
spacePath
- Absolute path to space.getOnlyFiles
- if this flag is true then only children of type File are only returned.
Default value of this flag is true.
This flag is kept for future use and can be ignored by assuming the default value.
PersistenceException
- if content is not retrieved.public void grantPermission(String nodePath, List usersWithReadPermission, List usersWithReadWritePermission, Boolean applyToChild, Boolean inheritParent) throws PersistenceException, UserNotFoundException
ReviewZoneProvider
grantPermission
in interface ReviewZoneProvider
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.public void grantContributePermission(String nodePath, List usersWithContributePermission, Boolean applyToChild, Boolean inheritParent) throws PersistenceException, UserNotFoundException
ReviewZoneProvider
grantContributePermission
in interface ReviewZoneProvider
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.public boolean nodeExists(String parentSpacePath, String nodeName) throws PersistenceException
ReviewZoneProvider
nodeExists
in interface ReviewZoneProvider
parentSpacePath
- Parent Space PathnodeName
- Name of the content node
PersistenceException
public com.adobe.idp.Document retrieveContent(String nodePath) throws PersistenceException
ReviewZoneProvider
retrieveContent
in interface ReviewZoneProvider
nodePath
- Absolute path to the content node in Review Zone like /Company Home/RCA/test.pdf
PersistenceException
- if content is not retrievedpublic void revokePermission(String nodePath, List usersWithReadPermission, List usersWithReadWritePermission, Boolean applyToChild) throws PersistenceException, UserNotFoundException
ReviewZoneProvider
revokePermission
in interface ReviewZoneProvider
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.public void revokeContributePermission(String nodePath, List usersWithContributePermission, Boolean applyToChild) throws PersistenceException, UserNotFoundException
ReviewZoneProvider
revokeContributePermission
in interface ReviewZoneProvider
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.public boolean spaceExists(String parentSpacePath, String spaceName) throws PersistenceException
ReviewZoneProvider
spaceExists
in interface ReviewZoneProvider
parentSpacePath
- Parent Space PathspaceName
- Name of the space
PersistenceException
public String storeContent(String spacePath, String nodeName, com.adobe.idp.Document content, String contentType) throws PersistenceException
ReviewZoneProvider
storeContent
in interface ReviewZoneProvider
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 storedpublic boolean supportsContributePermission() throws PersistenceException
ReviewZoneProvider
supportsContributePermission
in interface ReviewZoneProvider
PersistenceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |