Package com.emc.documentum.rest.model
Class Permissions
java.lang.Object
com.emc.documentum.rest.model.Permissions
Permission definition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PermissionsAll Permission constantstatic final intBrowse permissionstatic final intDelete permissionstatic final PermissionsNo Permission constantstatic final intRead permissionstatic final intRelate permissionstatic final intVersion permissionstatic final intWrite permission -
Constructor Summary
ConstructorsConstructorDescriptionPermissions(int basic, boolean extendedPermissions) ConstructorPermissions(int basic, String extended) ConstructorPermissions(int basic, String extended, String application) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if allow browse or notbooleanCheck if allow extended change folder links or notbooleanCheck if allow extended change locationbooleanCheck if allow extended change ownershipbooleanCheck if allow extended change permissionbooleanCheck if allow extended change statebooleanCheck if allow delete or notbooleanCheck if allow extended execute procedurebooleanCheck if allow read or notbooleanCheck if allow relate or notbooleanCheck if allow version or notbooleanCheck if allow write or notbooleanCheck if allow extended delete or notGet the application permitintgetBasic()Get basic permissionGet extend permissionvoidsetApplication(String application) Set the application permitvoidSet extend permission
-
Field Details
-
BROWSE
public static final int BROWSEBrowse permission- See Also:
-
READ
public static final int READRead permission- See Also:
-
RELATE
public static final int RELATERelate permission- See Also:
-
VERSION
public static final int VERSIONVersion permission- See Also:
-
WRITE
public static final int WRITEWrite permission- See Also:
-
DELETE
public static final int DELETEDelete permission- See Also:
-
NO_PERMISSION
No Permission constant -
ALL_PERMISSION
All Permission constant
-
-
Constructor Details
-
Permissions
Constructor- Parameters:
basic- basic permissionextended- extended permission
-
Permissions
Constructor- Parameters:
basic- basic permissionextended- extended permissionapplication- application permission
-
Permissions
public Permissions(int basic, boolean extendedPermissions) Constructor- Parameters:
basic- basic permissionextendedPermissions- extended permission, false represents no extended permission and true represents all extended permission
-
-
Method Details
-
getBasic
public int getBasic()Get basic permission- Returns:
- basic permission
-
getExtend
Get extend permission- Returns:
- extend permission
-
setExtend
Set extend permission- Parameters:
extended- extended permission
-
allowBrowse
public boolean allowBrowse()Check if allow browse or not- Returns:
trueif allowing browse
-
allowRead
public boolean allowRead()Check if allow read or not- Returns:
trueif allowing read
-
allowRelate
public boolean allowRelate()Check if allow relate or not- Returns:
trueif allowing relate
-
allowVersion
public boolean allowVersion()Check if allow version or not- Returns:
trueif allowing version
-
allowWrite
public boolean allowWrite()Check if allow write or not- Returns:
trueif allowing write
-
allowDelete
public boolean allowDelete()Check if allow delete or not- Returns:
trueif allowing delete
-
allowChangeLocation
public boolean allowChangeLocation()Check if allow extended change location- Returns:
trueif allowing change location
-
allowExecuteProcedure
public boolean allowExecuteProcedure()Check if allow extended execute procedure- Returns:
trueif allowing execute procedure
-
allowChangeOwner
public boolean allowChangeOwner()Check if allow extended change ownership- Returns:
trueif allowing change ownership
-
allowChangePermit
public boolean allowChangePermit()Check if allow extended change permission- Returns:
trueif allowing change permission
-
allowChangeState
public boolean allowChangeState()Check if allow extended change state- Returns:
trueif allowing change state
-
allowXDeleteObject
public boolean allowXDeleteObject()Check if allow extended delete or not- Returns:
trueif allowing extended delete
-
allowChangeFolderLinks
public boolean allowChangeFolderLinks()Check if allow extended change folder links or not- Returns:
trueif allowing change folder links
-
getApplication
Get the application permit- Returns:
- application permissions
-
setApplication
Set the application permit- Parameters:
application- application permission
-