Interface WorkbasketAccessItem
-
- All Known Implementing Classes:
WorkbasketAccessItemImpl
public interface WorkbasketAccessItemInterface for WorkbasketAccessItem. This interface is used to control access of users to Workbaskets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkbasketAccessItemcopy()Duplicates this WorkbasketAccessItem without the id.StringgetAccessId()Returns the id of the group or the user for which this WorkbasketAccessItem controls access permissions.StringgetAccessName()Returns the name of the group or user for which this WorkbasketAccessItem controls access permissions.StringgetId()Returns the current id of the WorkbasketAccessItem.booleangetPermission(WorkbasketPermission permission)Returns whether the given permissions is permitted or not.StringgetWorkbasketId()Returns the id of the referenced Workbasket.StringgetWorkbasketKey()Returns the key of the referenced Workbasket.voidsetAccessName(String name)Set the name of the group or user for which this WorkbasketAccessItem controls access permissions.voidsetPermission(WorkbasketPermission permission, boolean value)Sets a given permissions for the referencedWorkbasket.
-
-
-
Method Detail
-
getId
String getId()
Returns the current id of the WorkbasketAccessItem.- Returns:
- id
-
getWorkbasketId
String getWorkbasketId()
Returns the id of the referenced Workbasket.- Returns:
- workbasketId
-
getWorkbasketKey
String getWorkbasketKey()
Returns the key of the referenced Workbasket.- Returns:
- key
-
getAccessId
String getAccessId()
Returns the id of the group or the user for which this WorkbasketAccessItem controls access permissions.- Returns:
- the accessId, this is the group id or user id
-
getAccessName
String getAccessName()
Returns the name of the group or user for which this WorkbasketAccessItem controls access permissions.- Returns:
- the accessName, this is the name of the group or user
-
setAccessName
void setAccessName(String name)
Set the name of the group or user for which this WorkbasketAccessItem controls access permissions.- Parameters:
name- the name of the group or user for which this WorkbasketAccessItem controls access permissions
-
setPermission
void setPermission(WorkbasketPermission permission, boolean value)
Sets a given permissions for the referencedWorkbasket.- Parameters:
permission- the permissions which is setvalue- the value for the permissions
-
getPermission
boolean getPermission(WorkbasketPermission permission)
Returns whether the given permissions is permitted or not.- Parameters:
permission- the permissions in question- Returns:
- True, if the given permissions is permitted; otherwise false
-
copy
WorkbasketAccessItem copy()
Duplicates this WorkbasketAccessItem without the id.- Returns:
- a copy of this WorkbasketAccessItem
-
-