Class WorkbasketAccessItemImpl
- java.lang.Object
-
- pro.taskana.workbasket.internal.models.WorkbasketAccessItemImpl
-
- All Implemented Interfaces:
WorkbasketAccessItem
public class WorkbasketAccessItemImpl extends Object implements WorkbasketAccessItem
WorkbasketAccessItemImpl Entity.
-
-
Constructor Summary
Constructors Constructor Description WorkbasketAccessItemImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkbasketAccessItemImplcopy()Duplicates this WorkbasketAccessItem without the id.booleanequals(Object obj)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.inthashCode()booleanisPermAppend()booleanisPermCustom1()booleanisPermCustom10()booleanisPermCustom11()booleanisPermCustom12()booleanisPermCustom2()booleanisPermCustom3()booleanisPermCustom4()booleanisPermCustom5()booleanisPermCustom6()booleanisPermCustom7()booleanisPermCustom8()booleanisPermCustom9()booleanisPermDistribute()booleanisPermOpen()booleanisPermRead()booleanisPermTransfer()voidsetAccessId(String accessId)voidsetAccessName(String accessName)Set the name of the group or user for which this WorkbasketAccessItem controls access permissions.voidsetId(String id)voidsetPermAppend(boolean permAppend)voidsetPermCustom1(boolean permCustom1)voidsetPermCustom10(boolean permCustom10)voidsetPermCustom11(boolean permCustom11)voidsetPermCustom12(boolean permCustom12)voidsetPermCustom2(boolean permCustom2)voidsetPermCustom3(boolean permCustom3)voidsetPermCustom4(boolean permCustom4)voidsetPermCustom5(boolean permCustom5)voidsetPermCustom6(boolean permCustom6)voidsetPermCustom7(boolean permCustom7)voidsetPermCustom8(boolean permCustom8)voidsetPermCustom9(boolean permCustom9)voidsetPermDistribute(boolean permDistribute)voidsetPermission(WorkbasketPermission permission, boolean value)Sets a given permissions for the referencedWorkbasket.voidsetPermOpen(boolean permOpen)voidsetPermRead(boolean permRead)voidsetPermTransfer(boolean permTransfer)voidsetWorkbasketId(String workbasketId)voidsetWorkbasketKey(String workbasketKey)StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:WorkbasketAccessItemReturns the current id of the WorkbasketAccessItem.- Specified by:
getIdin interfaceWorkbasketAccessItem- Returns:
- id
-
setId
public void setId(String id)
-
getWorkbasketId
public String getWorkbasketId()
Description copied from interface:WorkbasketAccessItemReturns the id of the referenced Workbasket.- Specified by:
getWorkbasketIdin interfaceWorkbasketAccessItem- Returns:
- workbasketId
-
setWorkbasketId
public void setWorkbasketId(String workbasketId)
-
getWorkbasketKey
public String getWorkbasketKey()
Description copied from interface:WorkbasketAccessItemReturns the key of the referenced Workbasket.- Specified by:
getWorkbasketKeyin interfaceWorkbasketAccessItem- Returns:
- key
-
setWorkbasketKey
public void setWorkbasketKey(String workbasketKey)
-
getAccessId
public String getAccessId()
Description copied from interface:WorkbasketAccessItemReturns the id of the group or the user for which this WorkbasketAccessItem controls access permissions.- Specified by:
getAccessIdin interfaceWorkbasketAccessItem- Returns:
- the accessId, this is the group id or user id
-
setAccessId
public void setAccessId(String accessId)
-
getAccessName
public String getAccessName()
Description copied from interface:WorkbasketAccessItemReturns the name of the group or user for which this WorkbasketAccessItem controls access permissions.- Specified by:
getAccessNamein interfaceWorkbasketAccessItem- Returns:
- the accessName, this is the name of the group or user
-
setAccessName
public void setAccessName(String accessName)
Description copied from interface:WorkbasketAccessItemSet the name of the group or user for which this WorkbasketAccessItem controls access permissions.- Specified by:
setAccessNamein interfaceWorkbasketAccessItem- Parameters:
accessName- the name of the group or user for which this WorkbasketAccessItem controls access permissions
-
setPermission
public void setPermission(WorkbasketPermission permission, boolean value)
Description copied from interface:WorkbasketAccessItemSets a given permissions for the referencedWorkbasket.- Specified by:
setPermissionin interfaceWorkbasketAccessItem- Parameters:
permission- the permissions which is setvalue- the value for the permissions
-
getPermission
public boolean getPermission(WorkbasketPermission permission)
Description copied from interface:WorkbasketAccessItemReturns whether the given permissions is permitted or not.- Specified by:
getPermissionin interfaceWorkbasketAccessItem- Parameters:
permission- the permissions in question- Returns:
- True, if the given permissions is permitted; otherwise false
-
isPermRead
public boolean isPermRead()
-
setPermRead
public void setPermRead(boolean permRead)
-
isPermOpen
public boolean isPermOpen()
-
setPermOpen
public void setPermOpen(boolean permOpen)
-
isPermAppend
public boolean isPermAppend()
-
setPermAppend
public void setPermAppend(boolean permAppend)
-
isPermTransfer
public boolean isPermTransfer()
-
setPermTransfer
public void setPermTransfer(boolean permTransfer)
-
isPermDistribute
public boolean isPermDistribute()
-
setPermDistribute
public void setPermDistribute(boolean permDistribute)
-
isPermCustom1
public boolean isPermCustom1()
-
setPermCustom1
public void setPermCustom1(boolean permCustom1)
-
isPermCustom2
public boolean isPermCustom2()
-
setPermCustom2
public void setPermCustom2(boolean permCustom2)
-
isPermCustom3
public boolean isPermCustom3()
-
setPermCustom3
public void setPermCustom3(boolean permCustom3)
-
isPermCustom4
public boolean isPermCustom4()
-
setPermCustom4
public void setPermCustom4(boolean permCustom4)
-
isPermCustom5
public boolean isPermCustom5()
-
setPermCustom5
public void setPermCustom5(boolean permCustom5)
-
isPermCustom6
public boolean isPermCustom6()
-
setPermCustom6
public void setPermCustom6(boolean permCustom6)
-
isPermCustom7
public boolean isPermCustom7()
-
setPermCustom7
public void setPermCustom7(boolean permCustom7)
-
isPermCustom8
public boolean isPermCustom8()
-
setPermCustom8
public void setPermCustom8(boolean permCustom8)
-
isPermCustom9
public boolean isPermCustom9()
-
setPermCustom9
public void setPermCustom9(boolean permCustom9)
-
isPermCustom10
public boolean isPermCustom10()
-
setPermCustom10
public void setPermCustom10(boolean permCustom10)
-
isPermCustom11
public boolean isPermCustom11()
-
setPermCustom11
public void setPermCustom11(boolean permCustom11)
-
isPermCustom12
public boolean isPermCustom12()
-
setPermCustom12
public void setPermCustom12(boolean permCustom12)
-
copy
public WorkbasketAccessItemImpl copy()
Description copied from interface:WorkbasketAccessItemDuplicates this WorkbasketAccessItem without the id.- Specified by:
copyin interfaceWorkbasketAccessItem- Returns:
- a copy of this WorkbasketAccessItem
-
-