|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Permission
New feature to restrict the access to allocatables on a per user/group basis. Specify absolute and relative booking-timeframes for each resource per user/group. You can, for example, prevent modifing appointments in the past, by setting the relative start-time to 0.
Field Summary | |
---|---|
static SmallIntMap |
ACCESS_LEVEL_NAMEMAP
|
static String[] |
ACCESS_LEVEL_NAMES
|
static int[] |
ACCESS_LEVEL_TYPES
|
static int |
ADMIN
|
static int |
ALLOCATE
|
static int |
ALLOCATE_CONFLICTS
|
static int |
DENIED
|
static String |
GROUP_CAN_READ_EVENTS_FROM_OTHERS
|
static String |
GROUP_CATEGORY_KEY
|
static String |
GROUP_MODIFY_PREFERENCES_KEY
|
static String |
GROUP_REGISTERER_KEY
|
static Permission[] |
PERMISSION_ARRAY
Static empty dummy Array. |
static int |
READ
|
Method Summary | |
---|---|
boolean |
affectsUser(User user)
returns if the user or a group of the user is affected by the permission. |
boolean |
covers(Date start,
Date end,
Date currentDate)
returns if the permission covers the interval specified by the start and end date. |
int |
getAccessLevel()
|
Date |
getEnd()
|
Category |
getGroup()
|
Long |
getMaxAdvance()
|
Date |
getMaxAllowed(Date today)
Convenince Method: returns the last date for which the resource can be booked |
Long |
getMinAdvance()
|
Date |
getMinAllowed(Date today)
Convenince Method: returns the first date for which the resource can be booked |
Date |
getStart()
|
User |
getUser()
|
void |
setAccessLevel(int access)
|
void |
setEnd(Date end)
sets the endtime of the period in which the resource can be booked |
void |
setGroup(Category category)
sets a group for the permission. |
void |
setMaxAdvance(Long days)
set the maximum number of days a reservation can be booked in advance. |
void |
setMinAdvance(Long days)
set the minumum number of days a resource must be booked in advance. |
void |
setStart(Date end)
sets the starttime of the period in which the resource can be booked |
void |
setUser(User user)
sets a user for the permission. |
Field Detail |
---|
static final String GROUP_CATEGORY_KEY
static final String GROUP_REGISTERER_KEY
static final String GROUP_MODIFY_PREFERENCES_KEY
static final String GROUP_CAN_READ_EVENTS_FROM_OTHERS
static final int DENIED
static final int READ
static final int ALLOCATE
static final int ALLOCATE_CONFLICTS
static final int ADMIN
static final String[] ACCESS_LEVEL_NAMES
static final int[] ACCESS_LEVEL_TYPES
static final SmallIntMap ACCESS_LEVEL_NAMEMAP
static final Permission[] PERMISSION_ARRAY
Method Detail |
---|
void setUser(User user)
User getUser()
void setGroup(Category category)
Category getGroup()
void setMinAdvance(Long days)
Long getMinAdvance()
void setMaxAdvance(Long days)
Long getMaxAdvance()
void setStart(Date end)
Date getStart()
void setEnd(Date end)
Date getEnd()
Date getMaxAllowed(Date today)
Date getMinAllowed(Date today)
boolean affectsUser(User user)
boolean covers(Date start, Date end, Date currentDate)
void setAccessLevel(int access)
int getAccessLevel()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |