org.xcmis.spi.model
Class AllowableActions

java.lang.Object
  extended by org.xcmis.spi.model.AllowableActions

public class AllowableActions
extends Object

Version:
$Id: $
Author:
Andrey Parfonov

Field Summary
static String CAN_ADD_POLICY
           
static String CAN_ADD_TO_FOLDER
           
static String CAN_APPLY_ACL
           
static String CAN_CANCEL_CHECKOUT
           
static String CAN_CHECKIN
           
static String CAN_CHECKOUT
           
static String CAN_CREATE_DOCUMENT
           
static String CAN_CREATE_FOLDER
           
static String CAN_CREATE_RELATIONSHIP
           
static String CAN_DELETE
           
static String CAN_DELETE_CONTENT_STREAM
           
static String CAN_DELETE_TREE
           
static String CAN_GET_ACL
           
static String CAN_GET_ALL_VERSIONS
           
static String CAN_GET_APPLIED_POLICIES
           
static String CAN_GET_CHILDREN
           
static String CAN_GET_CONTENT_STREAM
           
static String CAN_GET_DESCENDENTS
           
static String CAN_GET_FOLDER_PARENT
           
static String CAN_GET_FOLDER_TREE
           
static String CAN_GET_OBJECT_PARENTS
           
static String CAN_GET_OBJECT_RELATIONSHIPS
           
static String CAN_GET_PROPERTIES
           
static String CAN_GET_RENDITIONS
           
static String CAN_MOVE_OBJECT
           
static String CAN_REMOVE_OBJECT_FROM_FOLDER
           
static String CAN_REMOVE_POLICY
           
static String CAN_SET_CONTENT_STREAM
           
static String CAN_UPDATE_PROPERTIES
           
static Collection<String> DEFAULT
           
 
Constructor Summary
AllowableActions()
           
 
Method Summary
 void addAction(String action)
          Add action in allowed actions list.
static AllowableActions ALL()
           
 boolean isActionAllowed(String action)
          Check is action is in allowed actions list.
 boolean isCanAddObjectToFolder()
           
 boolean isCanApplyACL()
           
 boolean isCanApplyPolicy()
           
 boolean isCanCancelCheckOut()
           
 boolean isCanCheckIn()
           
 boolean isCanCheckOut()
           
 boolean isCanCreateDocument()
           
 boolean isCanCreateFolder()
           
 boolean isCanCreateRelationship()
           
 boolean isCanDeleteContentStream()
           
 boolean isCanDeleteObject()
           
 boolean isCanDeleteTree()
           
 boolean isCanGetACL()
           
 boolean isCanGetAllVersions()
           
 boolean isCanGetAppliedPolicies()
           
 boolean isCanGetChildren()
           
 boolean isCanGetContentStream()
           
 boolean isCanGetDescendants()
           
 boolean isCanGetFolderParent()
           
 boolean isCanGetFolderTree()
           
 boolean isCanGetObjectParents()
           
 boolean isCanGetObjectRelationships()
           
 boolean isCanGetProperties()
           
 boolean isCanGetRenditions()
           
 boolean isCanMoveObject()
           
 boolean isCanRemoveObjectFromFolder()
           
 boolean isCanRemovePolicy()
           
 boolean isCanSetContentStream()
           
 boolean isCanUpdateProperties()
           
 void removeAction(String action)
          Remove action from allowed actions list.
 void setCanAddObjectToFolder(boolean canAddObjectToFolder)
           
 void setCanApplyACL(boolean canApplyACL)
           
 void setCanApplyPolicy(boolean canApplyPolicy)
           
 void setCanCancelCheckOut(boolean canCancelCheckOut)
           
 void setCanCheckIn(boolean canCheckIn)
           
 void setCanCheckOut(boolean canCheckOut)
           
 void setCanCreateDocument(boolean canCreateDocument)
           
 void setCanCreateFolder(boolean canCreateFolder)
           
 void setCanCreateRelationship(boolean canCreateRelationship)
           
 void setCanDeleteContentStream(boolean canDeleteContentStream)
           
 void setCanDeleteObject(boolean canDeleteObject)
           
 void setCanDeleteTree(boolean canDeleteTree)
           
 void setCanGetACL(boolean canGetACL)
           
 void setCanGetAllVersions(boolean canGetAllVersions)
           
 void setCanGetAppliedPolicies(boolean canGetAppliedPolicies)
           
 void setCanGetChildren(boolean canGetChildren)
           
 void setCanGetContentStream(boolean canGetContentStream)
           
 void setCanGetDescendants(boolean canGetDescendants)
           
 void setCanGetFolderParent(boolean canGetFolderParent)
           
 void setCanGetFolderTree(boolean canGetFolderTree)
           
 void setCanGetObjectParents(boolean canGetObjectParents)
           
 void setCanGetObjectRelationships(boolean canGetObjectRelationships)
           
 void setCanGetProperties(boolean canGetProperties)
           
 void setCanGetRenditions(boolean canGetRenditions)
           
 void setCanMoveObject(boolean canMoveObject)
           
 void setCanRemoveObjectFromFolder(boolean canRemoveObjectFromFolder)
           
 void setCanRemovePolicy(boolean canRemovePolicy)
           
 void setCanSetContentStream(boolean canSetContentStream)
           
 void setCanUpdateProperties(boolean canUpdateProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAN_GET_DESCENDENTS

public static final String CAN_GET_DESCENDENTS
See Also:
Constant Field Values

CAN_GET_FOLDER_TREE

public static final String CAN_GET_FOLDER_TREE
See Also:
Constant Field Values

CAN_GET_CHILDREN

public static final String CAN_GET_CHILDREN
See Also:
Constant Field Values

CAN_GET_OBJECT_PARENTS

public static final String CAN_GET_OBJECT_PARENTS
See Also:
Constant Field Values

CAN_GET_FOLDER_PARENT

public static final String CAN_GET_FOLDER_PARENT
See Also:
Constant Field Values

CAN_CREATE_DOCUMENT

public static final String CAN_CREATE_DOCUMENT
See Also:
Constant Field Values

CAN_CREATE_FOLDER

public static final String CAN_CREATE_FOLDER
See Also:
Constant Field Values

CAN_CREATE_RELATIONSHIP

public static final String CAN_CREATE_RELATIONSHIP
See Also:
Constant Field Values

CAN_GET_PROPERTIES

public static final String CAN_GET_PROPERTIES
See Also:
Constant Field Values

CAN_GET_CONTENT_STREAM

public static final String CAN_GET_CONTENT_STREAM
See Also:
Constant Field Values

CAN_UPDATE_PROPERTIES

public static final String CAN_UPDATE_PROPERTIES
See Also:
Constant Field Values

CAN_MOVE_OBJECT

public static final String CAN_MOVE_OBJECT
See Also:
Constant Field Values

CAN_DELETE

public static final String CAN_DELETE
See Also:
Constant Field Values

CAN_DELETE_TREE

public static final String CAN_DELETE_TREE
See Also:
Constant Field Values

CAN_SET_CONTENT_STREAM

public static final String CAN_SET_CONTENT_STREAM
See Also:
Constant Field Values

CAN_DELETE_CONTENT_STREAM

public static final String CAN_DELETE_CONTENT_STREAM
See Also:
Constant Field Values

CAN_GET_RENDITIONS

public static final String CAN_GET_RENDITIONS
See Also:
Constant Field Values

CAN_ADD_TO_FOLDER

public static final String CAN_ADD_TO_FOLDER
See Also:
Constant Field Values

CAN_REMOVE_OBJECT_FROM_FOLDER

public static final String CAN_REMOVE_OBJECT_FROM_FOLDER
See Also:
Constant Field Values

CAN_CHECKOUT

public static final String CAN_CHECKOUT
See Also:
Constant Field Values

CAN_CANCEL_CHECKOUT

public static final String CAN_CANCEL_CHECKOUT
See Also:
Constant Field Values

CAN_CHECKIN

public static final String CAN_CHECKIN
See Also:
Constant Field Values

CAN_GET_ALL_VERSIONS

public static final String CAN_GET_ALL_VERSIONS
See Also:
Constant Field Values

CAN_GET_OBJECT_RELATIONSHIPS

public static final String CAN_GET_OBJECT_RELATIONSHIPS
See Also:
Constant Field Values

CAN_ADD_POLICY

public static final String CAN_ADD_POLICY
See Also:
Constant Field Values

CAN_REMOVE_POLICY

public static final String CAN_REMOVE_POLICY
See Also:
Constant Field Values

CAN_GET_APPLIED_POLICIES

public static final String CAN_GET_APPLIED_POLICIES
See Also:
Constant Field Values

CAN_GET_ACL

public static final String CAN_GET_ACL
See Also:
Constant Field Values

CAN_APPLY_ACL

public static final String CAN_APPLY_ACL
See Also:
Constant Field Values

DEFAULT

public static final Collection<String> DEFAULT
Constructor Detail

AllowableActions

public AllowableActions()
Method Detail

ALL

public static final AllowableActions ALL()

addAction

public void addAction(String action)
Add action in allowed actions list.

Parameters:
action - action to be add in list

isActionAllowed

public boolean isActionAllowed(String action)
Check is action is in allowed actions list.

Parameters:
action - action
Returns:
true if action is allowed and false otherwise

isCanAddObjectToFolder

public boolean isCanAddObjectToFolder()

isCanApplyACL

public boolean isCanApplyACL()

isCanApplyPolicy

public boolean isCanApplyPolicy()

isCanCancelCheckOut

public boolean isCanCancelCheckOut()

isCanCheckIn

public boolean isCanCheckIn()

isCanCheckOut

public boolean isCanCheckOut()

isCanCreateDocument

public boolean isCanCreateDocument()

isCanCreateFolder

public boolean isCanCreateFolder()

isCanCreateRelationship

public boolean isCanCreateRelationship()

isCanDeleteContentStream

public boolean isCanDeleteContentStream()

isCanDeleteObject

public boolean isCanDeleteObject()

isCanDeleteTree

public boolean isCanDeleteTree()

isCanGetACL

public boolean isCanGetACL()

isCanGetAllVersions

public boolean isCanGetAllVersions()

isCanGetAppliedPolicies

public boolean isCanGetAppliedPolicies()

isCanGetChildren

public boolean isCanGetChildren()

isCanGetContentStream

public boolean isCanGetContentStream()

isCanGetDescendants

public boolean isCanGetDescendants()

isCanGetFolderParent

public boolean isCanGetFolderParent()

isCanGetFolderTree

public boolean isCanGetFolderTree()

isCanGetObjectParents

public boolean isCanGetObjectParents()

isCanGetObjectRelationships

public boolean isCanGetObjectRelationships()

isCanGetProperties

public boolean isCanGetProperties()

isCanGetRenditions

public boolean isCanGetRenditions()

isCanMoveObject

public boolean isCanMoveObject()

isCanRemoveObjectFromFolder

public boolean isCanRemoveObjectFromFolder()

isCanRemovePolicy

public boolean isCanRemovePolicy()

isCanSetContentStream

public boolean isCanSetContentStream()

isCanUpdateProperties

public boolean isCanUpdateProperties()

removeAction

public void removeAction(String action)
Remove action from allowed actions list.

Parameters:
action - action to be removed from the list

setCanAddObjectToFolder

public void setCanAddObjectToFolder(boolean canAddObjectToFolder)

setCanApplyACL

public void setCanApplyACL(boolean canApplyACL)

setCanApplyPolicy

public void setCanApplyPolicy(boolean canApplyPolicy)

setCanCancelCheckOut

public void setCanCancelCheckOut(boolean canCancelCheckOut)

setCanCheckIn

public void setCanCheckIn(boolean canCheckIn)

setCanCheckOut

public void setCanCheckOut(boolean canCheckOut)

setCanCreateDocument

public void setCanCreateDocument(boolean canCreateDocument)

setCanCreateFolder

public void setCanCreateFolder(boolean canCreateFolder)

setCanCreateRelationship

public void setCanCreateRelationship(boolean canCreateRelationship)

setCanDeleteContentStream

public void setCanDeleteContentStream(boolean canDeleteContentStream)

setCanDeleteObject

public void setCanDeleteObject(boolean canDeleteObject)

setCanDeleteTree

public void setCanDeleteTree(boolean canDeleteTree)

setCanGetACL

public void setCanGetACL(boolean canGetACL)

setCanGetAllVersions

public void setCanGetAllVersions(boolean canGetAllVersions)

setCanGetAppliedPolicies

public void setCanGetAppliedPolicies(boolean canGetAppliedPolicies)

setCanGetChildren

public void setCanGetChildren(boolean canGetChildren)

setCanGetContentStream

public void setCanGetContentStream(boolean canGetContentStream)

setCanGetDescendants

public void setCanGetDescendants(boolean canGetDescendants)

setCanGetFolderParent

public void setCanGetFolderParent(boolean canGetFolderParent)

setCanGetFolderTree

public void setCanGetFolderTree(boolean canGetFolderTree)

setCanGetObjectParents

public void setCanGetObjectParents(boolean canGetObjectParents)

setCanGetObjectRelationships

public void setCanGetObjectRelationships(boolean canGetObjectRelationships)

setCanGetProperties

public void setCanGetProperties(boolean canGetProperties)

setCanGetRenditions

public void setCanGetRenditions(boolean canGetRenditions)

setCanMoveObject

public void setCanMoveObject(boolean canMoveObject)

setCanRemoveObjectFromFolder

public void setCanRemoveObjectFromFolder(boolean canRemoveObjectFromFolder)

setCanRemovePolicy

public void setCanRemovePolicy(boolean canRemovePolicy)

setCanSetContentStream

public void setCanSetContentStream(boolean canSetContentStream)

setCanUpdateProperties

public void setCanUpdateProperties(boolean canUpdateProperties)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.