|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Allocatable
Objects that implement allocatable can be allocated by reservations.
Reservation
Field Summary | |
---|---|
static Allocatable[] |
ALLOCATABLE_ARRAY
Static empty dummy Array. |
static RaplaType |
TYPE
|
Fields inherited from interface org.rapla.entities.Entity |
---|
ENTITY_ARRAY |
Fields inherited from interface org.rapla.entities.dynamictype.Classifiable |
---|
CLASSIFIABLE_ARRAY |
Method Summary | |
---|---|
void |
addPermission(Permission permission)
|
boolean |
canAllocate(User user,
Date start,
Date end,
Date today)
returns if the user has the permission to allocate the resource in the given time. |
boolean |
canCreateConflicts(User user)
returns if the user has the permission to create a conflict for the resource. |
boolean |
canModify(User user)
returns if the user has the permission to modify the allocatable (and also its permission-table). |
boolean |
canRead(User user)
returns if the user has the permission to read the allocations of this resource. |
Permission[] |
getPermissions()
|
boolean |
isHoldBackConflicts()
|
boolean |
isPerson()
|
Permission |
newPermission()
|
boolean |
removePermission(Permission permission)
|
void |
setHoldBackConflicts(boolean enable)
Conflicts for this allocatable should be ignored, if this flag is enabled. |
Methods inherited from interface org.rapla.entities.Entity |
---|
isIdentical, isPersistant |
Methods inherited from interface org.rapla.entities.RaplaObject |
---|
getRaplaType |
Methods inherited from interface org.rapla.entities.Named |
---|
getName |
Methods inherited from interface org.rapla.entities.dynamictype.Classifiable |
---|
getClassification, setClassification |
Field Detail |
---|
static final RaplaType TYPE
static final Allocatable[] ALLOCATABLE_ARRAY
Method Detail |
---|
void setHoldBackConflicts(boolean enable)
boolean isHoldBackConflicts()
void addPermission(Permission permission)
boolean removePermission(Permission permission)
boolean canAllocate(User user, Date start, Date end, Date today)
true
if for at least one permission calling
permission.covers()
and permission.affectsUser
yields true
.
boolean canCreateConflicts(User user)
boolean canModify(User user)
boolean canRead(User user)
Permission[] getPermissions()
Permission newPermission()
boolean isPerson()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |