Interface WorkbasketAccessItem
- All Known Implementing Classes:
WorkbasketAccessItemImpl
public interface WorkbasketAccessItem
Interface for WorkbasketAccessItem. This interface is used to control access of users to
Workbaskets.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Duplicates this WorkbasketAccessItem without the id.Returns the id of the group or the user for which this WorkbasketAccessItem controls access permissions.Returns the name of the group or user for which this WorkbasketAccessItem controls access permissions.getId()Returns the current id of the WorkbasketAccessItem.booleangetPermission(WorkbasketPermission permission) Returns whether the given permissions is permitted or not.Returns the id of the referenced Workbasket.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 Details
-
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
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
Sets a given permissions for the referencedWorkbasket.- Parameters:
permission- the permissions which is setvalue- the value for the permissions
-
getPermission
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
-