|
||||||||||
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
public abstract class AbstractResourceManagerResource
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 | |
---|---|
AbstractResourceManagerResource()
|
Method Summary | |
---|---|
protected Collection<ReservationEntity> |
asWebEntities(List<Reservation> reservations)
Converts the reservations into its corresponding web entity list. |
protected Collection<ReservedResourceEntity> |
asWebEntities(Long reservationId,
List<Resource> resources)
Converts the resources into its corresponding web entity list. |
protected ResourceCategoryEntity |
asWebEntity(Category category)
Converts the category into its corresponding web entity. |
protected ReservedResourceEntity |
asWebEntity(Long reservationId,
Resource resource)
Converts the reserved resource into its corresponding web entity. |
protected ReservationEntity |
asWebEntity(Reservation reservation)
Converts the reservation into its corresponding web entity. |
protected ResourceEntity |
asWebEntity(Resource resource)
Converts the resource into its corresponding web entity. |
protected URI |
buildReservationURI(Reservation reservation)
Centralized build of reservation URI. |
protected URI |
buildResourceCategoryURI(Category category)
Centralized build of resource reservation URI. |
protected URI |
buildResourceReservationURI(Reservation reservation)
Centralized build of resource reservation URI. |
protected URI |
buildResourceURI(Resource resource)
Centralized build of resource reservation URI. |
String |
getComponentId()
|
protected ResourcesManager |
getResourceManager()
Gets Gallery EJB. |
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 AbstractResourceManagerResource()
Method Detail |
---|
public String getComponentId()
getComponentId
in class com.silverpeas.web.RESTWebService
protected Collection<ReservedResourceEntity> asWebEntities(Long reservationId, List<Resource> resources)
reservationId
- the identifier of the linked reservation.resources
- the resources to convert.
protected ReservedResourceEntity asWebEntity(Long reservationId, Resource resource)
reservationId
- the identifier of the linked reservation.resource
- the resource to convert.
protected ResourceEntity asWebEntity(Resource resource)
resource
- the resource to convert.
protected Collection<ReservationEntity> asWebEntities(List<Reservation> reservations)
reservations
- the reservation events to convert.
protected ReservationEntity asWebEntity(Reservation reservation)
reservation
- the reservation event to convert.
protected ResourceCategoryEntity asWebEntity(Category category)
category
- the category to convert.
protected URI buildReservationURI(Reservation reservation)
reservation
-
protected URI buildResourceReservationURI(Reservation reservation)
reservation
-
protected URI buildResourceCategoryURI(Category category)
category
-
protected URI buildResourceURI(Resource resource)
resource
-
protected ResourcesManager getResourceManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |