public class ACL extends Object
| Constructor and Description |
|---|
ACL()
creates ACL object with default properties i.e.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
getACL()
get json object representing this ACL object, changing this object is not recommended, only
do so if you absolutely know what you are doing
|
ArrayList<String> |
getAllowedReadRole()
get an ArrayList of role Id's which are allowed to access resource,role Id's are instances of
CloudRole |
ArrayList<String> |
getAllowedReadUser()
get an ArrayList of User Id's which are allowed to access this resource
|
ArrayList<String> |
getAllowedWriteRole()
get a list of role Id's allowed to change resource, role Id's are instances of
CloudRole |
ArrayList<String> |
getAllowedWriteUser()
get an ArrayList of User Id's which are allowed to modify this resource
|
ArrayList<String> |
getDeniedReadUser()
get an ArrayList of User Id's which are not allowed to access this resource
|
void |
setPublicReadAccess(boolean value)
allow read permission to all user
|
void |
setPublicWriteAccess(boolean value)
allow write permission to all user
|
void |
setRoleReadAccess(String roleId,
boolean value)
set if user with given role should access this resource or not
|
void |
setRoleWriteAccess(String roleId,
boolean value)
set if user with given role should modify this resource or not
|
void |
setUserReadAccess(String userId,
boolean value)
set if user should access this resource or not
|
void |
setUserWriteAccess(String userId,
boolean value)
set if user should modify this resource or not
|
public ACL()
public JSONObject getACL()
public ArrayList<String> getAllowedWriteRole()
CloudRolepublic ArrayList<String> getAllowedReadRole()
CloudRolepublic ArrayList<String> getAllowedWriteUser()
public ArrayList<String> getAllowedReadUser()
public ArrayList<String> getDeniedReadUser()
public void setPublicWriteAccess(boolean value)
value - public void setPublicReadAccess(boolean value)
value - public void setUserWriteAccess(String userId, boolean value)
userId - -id of the uservalue - public void setUserReadAccess(String userId, boolean value)
userId - -id of the uservalue - public void setRoleWriteAccess(String roleId, boolean value)
userId - -id of the rolevalue - -booleanpublic void setRoleReadAccess(String roleId, boolean value)
userId - -id of the rolevalue - -booleanCopyright © 2016. All rights reserved.