Class AbstractResourceManagerResource
java.lang.Object
org.silverpeas.core.web.rs.RESTWebService
org.silverpeas.components.resourcesmanager.web.AbstractResourceManagerResource
- All Implemented Interfaces:
org.silverpeas.core.web.rs.ProtectedWebResource,org.silverpeas.core.web.rs.WebAuthenticationValidation,org.silverpeas.core.web.rs.WebAuthorizationValidation,org.silverpeas.core.web.SilverpeasWebResource
- Direct Known Subclasses:
ResourceManagerResource
public abstract class AbstractResourceManagerResource
extends org.silverpeas.core.web.rs.RESTWebService
- Author:
- Yohann Chastagnier
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.silverpeas.core.web.rs.RESTWebService
RESPONSE_HEADER_ARRAYSIZEFields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<ReservedResourceEntity>asWebEntities(Long reservationId, List<Resource> resources) Converts the resources into its corresponding web entity list.protected Collection<ReservationEntity>asWebEntities(List<Reservation> reservations) Converts the reservations into its corresponding web entity list.protected ReservedResourceEntityasWebEntity(Long reservationId, Resource resource) Converts the reserved resource into its corresponding web entity.protected ResourceCategoryEntityasWebEntity(Category category) Converts the category into its corresponding web entity.protected ReservationEntityasWebEntity(Reservation reservation) Converts the reservation into its corresponding web entity.protected ResourceEntityasWebEntity(Resource resource) Converts the resource into its corresponding web entity.protected URIbuildReservationURI(Reservation reservation) Centralized build of reservation URI.protected URIbuildResourceCategoryURI(Category category) Centralized build of resource reservation URI.protected URIbuildResourceReservationURI(Reservation reservation) Centralized build of resource reservation URI.protected URIbuildResourceURI(Resource resource) Centralized build of resource reservation URI.protected Stringprotected ResourcesManagerMethods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getLanguage, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, processMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.web.rs.ProtectedWebResource
validateUserAuthorizationMethods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
Constructor Details
-
AbstractResourceManagerResource
public AbstractResourceManagerResource()
-
-
Method Details
-
getResourceBasePath
- Specified by:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
-
asWebEntities
protected Collection<ReservedResourceEntity> asWebEntities(Long reservationId, List<Resource> resources) Converts the resources into its corresponding web entity list.- Parameters:
reservationId- the identifier of the linked reservation.resources- the resources to convert.- Returns:
- the corresponding list of resource entity.
-
asWebEntity
Converts the reserved resource into its corresponding web entity.- Parameters:
reservationId- the identifier of the linked reservation.resource- the resource to convert.- Returns:
- the corresponding resource entity.
-
asWebEntity
Converts the resource into its corresponding web entity.- Parameters:
resource- the resource to convert.- Returns:
- the corresponding resource entity.
-
asWebEntities
Converts the reservations into its corresponding web entity list.- Parameters:
reservations- the reservation events to convert.- Returns:
- the corresponding list of reservation entity.
-
asWebEntity
Converts the reservation into its corresponding web entity.- Parameters:
reservation- the reservation event to convert.- Returns:
- the corresponding reservation entity.
-
asWebEntity
Converts the category into its corresponding web entity.- Parameters:
category- the category to convert.- Returns:
- the corresponding category entity.
-
buildReservationURI
Centralized build of reservation URI.- Parameters:
reservation- a reservation- Returns:
- reservation URI
-
buildResourceReservationURI
Centralized build of resource reservation URI.- Parameters:
reservation- a reservation- Returns:
- reservation URI
-
buildResourceCategoryURI
Centralized build of resource reservation URI.- Parameters:
category- a category- Returns:
- reservation URI
-
buildResourceURI
Centralized build of resource reservation URI.- Parameters:
resource- a resource- Returns:
- reservation URI
-
getResourceManager
- Returns:
- Resource manager service layer
-