|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.web.RESTWebService
org.silverpeas.resourcesmanager.web.AbstractResourceManagerResource
org.silverpeas.resourcesmanager.web.ResourceManagerResource
@Service @RequestScoped @Authorized public class ResourceManagerResource
A REST Web resource giving reservation and resource data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService |
|---|
com.silverpeas.web.RESTWebService.WebProcess<RETURN_VALUE>, com.silverpeas.web.RESTWebService.WebTreatment<RETURN_VALUE> |
| Field Summary |
|---|
| Fields inherited from class com.silverpeas.web.RESTWebService |
|---|
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE |
| Constructor Summary | |
|---|---|
ResourceManagerResource()
|
|
| Method Summary | |
|---|---|
ResourceCategoryEntity |
getCategory(long categoryId)
Gets the JSON representation of a category. |
ReservationEntity |
getReservation(long reservationId)
Gets the JSON representation of a reservation event. |
Collection<ReservationEntity> |
getReservations(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day)
Gets the JSON representation of a list of reservation event. |
Collection<ReservationEntity> |
getReservations(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
String userId)
Gets the JSON representation of a list of reservation event. |
Collection<ReservationEntity> |
getReservationsByCategory(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
long categoryId)
Gets the JSON representation of a list of reservation event. |
Collection<ReservationEntity> |
getReservationsByCategory(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
String userId,
long categoryId)
Gets the JSON representation of a list of reservation event. |
Collection<ReservationEntity> |
getReservationsByResource(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
long resourceId)
Gets the JSON representation of a list of reservation event. |
Collection<ReservationEntity> |
getReservationsByResource(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
String userId,
long resourceId)
Gets the JSON representation of a list of reservation event. |
Collection<ReservationEntity> |
getReservationsForValidation(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day)
Gets the JSON representation of a list of reservation event that has to be validated. |
ResourceEntity |
getResource(long resourceId)
Gets the JSON representation of a resource. |
Collection<ReservedResourceEntity> |
getResourcesOfReservation(long reservationId)
Gets the JSON representation of a list of resources of a reservation. |
| Methods inherited from class org.silverpeas.resourcesmanager.web.AbstractResourceManagerResource |
|---|
asWebEntities, asWebEntities, asWebEntity, asWebEntity, asWebEntity, asWebEntity, buildReservationURI, buildResourceCategoryURI, buildResourceReservationURI, buildResourceURI, getComponentId, getResourceManager |
| Methods inherited from class com.silverpeas.web.RESTWebService |
|---|
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceManagerResource()
| Method Detail |
|---|
public ResourceCategoryEntity getCategory(long categoryId)
categoryId - the identifier od the aimed category.
public ResourceEntity getResource(long resourceId)
resourceId - the identifier od the aimed resource.
public ReservationEntity getReservation(long reservationId)
reservationId - the identifier od the aimed reservation.
public Collection<ReservedResourceEntity> getResourcesOfReservation(long reservationId)
reservationId - the identifier od the aimed reservation.
public Collection<ReservationEntity> getReservations(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed day
public Collection<ReservationEntity> getReservationsByCategory(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
long categoryId)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed daycategoryId - the aimed category of resources
public Collection<ReservationEntity> getReservationsByResource(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
long resourceId)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed dayresourceId - the aimed resource
public Collection<ReservationEntity> getReservations(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
String userId)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed dayuserId - the aimed user
public Collection<ReservationEntity> getReservationsByCategory(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
String userId,
long categoryId)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed dayuserId - the aimed usercategoryId - the aimed category of resources
public Collection<ReservationEntity> getReservationsByResource(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day,
String userId,
long resourceId)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed dayuserId - the aimed userresourceId - the aimed resource
public Collection<ReservationEntity> getReservationsForValidation(org.silverpeas.date.PeriodType periodType,
int year,
int month,
int day)
periodType - the aimed periodyear - the aimed yearmonth - the aimed monthday - the aimed day
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||