public class UserCapabilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete()
Tests whether the user can delete in the vault
|
boolean |
canRead()
Tests whether the user can read in the vault
|
boolean |
canSearch()
Tests whether the user can search in the vault
|
boolean |
canUpdate()
Tests whether the user can update in the vault
|
boolean |
canUpdateMetadataForm()
Tests whether the user can update metadata form in the vault
|
boolean |
canWrite()
Tests whether the user can write in the vault
|
java.lang.String |
toString()
Returns the string representation of the user capabilities
with the following format:
|
public boolean canWrite()
true
if and only if the user has write permissionspublic boolean canSearch()
true
if and only if the user has search permissionspublic boolean canRead()
true
if and only if the user has read permissionspublic boolean canDelete()
true
if and only if the user has delete permissionspublic boolean canUpdate()
true
if and only if the user has update permissionspublic boolean canUpdateMetadataForm()
true
if and only if the user is allowed to update th eformpublic java.lang.String toString()
"canWrite: V, canRead: W, canDelete: X, canUpdate: Y, canSearch: Z, canUpdateMdForm: F"
Where V, W, X, Y, Z, F are true
or false
depending if the user has that permission.
toString
in class java.lang.Object