|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryModule
Methods for quering the various entities of the backend
Method Summary | |
---|---|
boolean |
canExchangeAllocatables(Reservation reservation)
returns if the user is allowed to exchange the allocatables of this reservation. |
Allocatable[] |
getAllocatableBindings(Appointment appointment)
returns all allocatables, that are already allocated by different parallel reservations at the time-slices, that are described by the appointment |
Allocatable[] |
getAllocatables()
returns all readable allocatables, same as getAllocatables(null) |
Allocatable[] |
getAllocatables(ClassificationFilter[] filters)
returns all allocatables that match the passed ClassificationFilter. |
Conflict[] |
getConflicts(Date startDate)
returns all existing conflicts that are visible for the user conflicts, since the passed Date. |
Conflict[] |
getConflicts(Reservation reservation)
returns all existing conflicts with the reservation |
DynamicType |
getDynamicType(String elementKey)
returns the DynamicType with the passed elementKey |
DynamicType[] |
getDynamicTypes(String classificationType)
returns all DynamicTypes matching the specified classification possible keys are reservation, person and resource. |
PeriodModel |
getPeriodModel()
returns an Interface for accessing the periods |
Period[] |
getPeriods()
returns all available periods |
Preferences |
getPreferences()
returns the preferences for the login user |
Preferences |
getPreferences(User user)
returns the preferences for the passed user, must be admin todo this. |
Reservation[] |
getReservations(Allocatable[] allocatables,
Date start,
Date end)
returns all reservations that have allocated at least one Resource or Person that is part of the allocatables array. |
Reservation[] |
getReservations(User user,
Date start,
Date end,
ClassificationFilter[] filters)
returns the reservations of the specified user in the specified interval |
Category |
getSuperCategory()
returns The root category. |
User |
getUser(String username)
returns the user with the specified username |
Category |
getUserGroupsCategory()
returns The category that contains the all user-groups of rapla |
User[] |
getUsers()
returns all users |
boolean |
hasPermissionToAllocate(Appointment appointment,
Allocatable allocatable)
returns if the user has the permissions to change/create an allocation on the passed appointment. |
Date |
today()
returns the current date in GMT+0 Timezone. |
Method Detail |
---|
DynamicType[] getDynamicTypes(String classificationType) throws RaplaException
RaplaException
DynamicTypeAnnotations
DynamicType getDynamicType(String elementKey) throws RaplaException
RaplaException
Category getSuperCategory()
Category getUserGroupsCategory() throws RaplaException
RaplaException
User[] getUsers() throws RaplaException
RaplaException
User getUser(String username) throws RaplaException
RaplaException
Allocatable[] getAllocatables(ClassificationFilter[] filters) throws RaplaException
RaplaException
Allocatable[] getAllocatables() throws RaplaException
RaplaException
Reservation[] getReservations(User user, Date start, Date end, ClassificationFilter[] filters) throws RaplaException
user
- A user-object or null for all usersstart
- only reservations beginning after the start-date will be returned (can be null).end
- only reservations beginning before the end-date will be returned (can be null).filters
- you can specify classificationfilters or null for all reservations .
RaplaException
Reservation[] getReservations(Allocatable[] allocatables, Date start, Date end) throws RaplaException
allocatables
- only reservations that allocate at least on element of this array will be returned.start
- only reservations beginning after the start-date will be returned (can be null).end
- only reservations beginning before the end-date will be returned (can be null).
RaplaException
Period[] getPeriods() throws RaplaException
RaplaException
PeriodModel getPeriodModel() throws RaplaException
RaplaException
Date today()
Allocatable[] getAllocatableBindings(Appointment appointment) throws RaplaException
RaplaException
Conflict[] getConflicts(Reservation reservation) throws RaplaException
RaplaException
Conflict[] getConflicts(Date startDate) throws RaplaException
RaplaException
boolean hasPermissionToAllocate(Appointment appointment, Allocatable allocatable)
Preferences getPreferences(User user) throws RaplaException
RaplaException
Preferences getPreferences() throws RaplaException
RaplaException
boolean canExchangeAllocatables(Reservation reservation)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |