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 Permissions
All Permission constantstatic final int
Browse permissionstatic final int
Delete permissionstatic final Permissions
No Permission constantstatic final int
Read permissionstatic final int
Relate permissionstatic final int
Version permissionstatic final int
Write 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 TypeMethodDescriptionboolean
Check if allow browse or notboolean
Check if allow extended change folder links or notboolean
Check if allow extended change locationboolean
Check if allow extended change ownershipboolean
Check if allow extended change permissionboolean
Check if allow extended change stateboolean
Check if allow delete or notboolean
Check if allow extended execute procedureboolean
Check if allow read or notboolean
Check if allow relate or notboolean
Check if allow version or notboolean
Check if allow write or notboolean
Check if allow extended delete or notGet the application permitint
getBasic()
Get basic permissionGet extend permissionvoid
setApplication
(String application) Set the application permitvoid
Set 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:
true
if allowing browse
-
allowRead
public boolean allowRead()Check if allow read or not- Returns:
true
if allowing read
-
allowRelate
public boolean allowRelate()Check if allow relate or not- Returns:
true
if allowing relate
-
allowVersion
public boolean allowVersion()Check if allow version or not- Returns:
true
if allowing version
-
allowWrite
public boolean allowWrite()Check if allow write or not- Returns:
true
if allowing write
-
allowDelete
public boolean allowDelete()Check if allow delete or not- Returns:
true
if allowing delete
-
allowChangeLocation
public boolean allowChangeLocation()Check if allow extended change location- Returns:
true
if allowing change location
-
allowExecuteProcedure
public boolean allowExecuteProcedure()Check if allow extended execute procedure- Returns:
true
if allowing execute procedure
-
allowChangeOwner
public boolean allowChangeOwner()Check if allow extended change ownership- Returns:
true
if allowing change ownership
-
allowChangePermit
public boolean allowChangePermit()Check if allow extended change permission- Returns:
true
if allowing change permission
-
allowChangeState
public boolean allowChangeState()Check if allow extended change state- Returns:
true
if allowing change state
-
allowXDeleteObject
public boolean allowXDeleteObject()Check if allow extended delete or not- Returns:
true
if allowing extended delete
-
allowChangeFolderLinks
public boolean allowChangeFolderLinks()Check if allow extended change folder links or not- Returns:
true
if allowing change folder links
-
getApplication
Get the application permit- Returns:
- application permissions
-
setApplication
Set the application permit- Parameters:
application
- application permission
-