|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.web.RESTWebService
org.silverpeas.admin.web.AbstractAdminResource
public abstract class AbstractAdminResource
Centralizations of admin resource processings
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService |
---|
RESTWebService.WebProcess<RETURN_VALUE>, RESTWebService.WebTreatment<RETURN_VALUE> |
Field Summary |
---|
Fields inherited from class com.silverpeas.web.RESTWebService |
---|
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE |
Constructor Summary | |
---|---|
AbstractAdminResource()
|
Method Summary | ||
---|---|---|
protected
|
asWebEntities(Class<E> entityClass,
Collection<T> data)
Converts the given list of data into their corresponding web entities. |
|
protected
|
asWebEntities(Class<E> entityClass,
Collection<T> data,
boolean forceGettingFavorite)
Converts the given list of data into their corresponding web entities. |
|
protected ComponentEntity |
asWebEntity(ComponentInstLight component)
Converts the component into its corresponding web entity. |
|
protected AbstractTypeEntity |
asWebEntity(Object object)
Converts the component into its corresponding web entity. |
|
protected SpaceEntity |
asWebEntity(SpaceInstLight space,
boolean forceGettingFavorite)
Converts the space into its corresponding web entity. |
|
protected SpaceAppearanceEntity |
asWebEntity(SpaceInstLight space,
String look,
String wallpaper,
String css)
Converts the space appearance into its corresponding web entity. |
|
protected
|
asWebPersonalEntities(Class<E> entityClass,
Collection<T> data)
Converts the given list of data into their corresponding web entities. |
|
protected PersonalToolEntity |
asWebPersonalEntity(AbstractTool tool)
Converts the tool into its corresponding web entity. |
|
protected PersonalComponentEntity |
asWebPersonalEntity(ComponentInst component)
Converts the personal component into its corresponding web entity. |
|
protected PersonalComponentEntity |
asWebPersonalEntity(WAComponent component)
Converts the personal component into its corresponding web entity. |
|
protected AdminPersonalWebDelegate |
getAdminPersonalDelegate()
Gets the commin admin personal services |
|
protected AdminWebService |
getAdminServices()
Gets the common admin services |
|
protected LookWebDelegate |
getLookDelegate()
Gets the common look services for Web Services |
|
protected boolean |
isUserAuthorizedToAccessLookContext()
Indicates if the requester user is authorized to access the given space |
|
protected ComponentInstLight |
loadComponent(String componentId)
Loading data centralization of a space |
|
protected Collection<ComponentInstLight> |
loadComponents(String... componentIds)
Loading data centralization of components |
|
protected SpaceInstLight |
loadSpace(String spaceId)
Loading data centralization of a space |
|
protected Collection<SpaceInstLight> |
loadSpaces(String... spaceIds)
Loading data centralization of spaces |
|
protected void |
verifyUserAuthorizedToAccessLookContext()
Verifies the requester user is authorized to access the given space |
|
protected void |
verifyUserAuthorizedToAccessSpace(String spaceId)
Verifies the requester user is authorized to access the given space |
Methods inherited from class com.silverpeas.web.RESTWebService |
---|
getBundle, getBundleLocation, getComponentId, 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 AbstractAdminResource()
Method Detail |
---|
protected SpaceInstLight loadSpace(String spaceId)
spaceId
-
protected Collection<SpaceInstLight> loadSpaces(String... spaceIds)
spaceIds
-
protected ComponentInstLight loadComponent(String componentId)
componentId
-
protected Collection<ComponentInstLight> loadComponents(String... componentIds)
componentIds
-
protected <T,E extends AbstractTypeEntity> Collection<E> asWebEntities(Class<E> entityClass, Collection<T> data)
entityClass
- the entity class returned.data
- data to convert.
protected <T,E extends AbstractTypeEntity> Collection<E> asWebEntities(Class<E> entityClass, Collection<T> data, boolean forceGettingFavorite)
entityClass
- the entity class returned.data
- data to convert.forceGettingFavorite
- forcing the user favorite space search even if the favorite
feature is disabled
protected <T,E extends AbstractTypeEntity> Collection<E> asWebPersonalEntities(Class<E> entityClass, Collection<T> data)
entityClass
- the entity class returned.data
- data to convert.
protected SpaceEntity asWebEntity(SpaceInstLight space, boolean forceGettingFavorite)
space
- the space to convert.forceGettingFavorite
- forcing the user favorite space search even if the favorite
protected SpaceAppearanceEntity asWebEntity(SpaceInstLight space, String look, String wallpaper, String css)
space
- the aimed space appearance to convert.look
- the look associated to the given space.wallpaper
- the wallpaper associated to the given space.
protected ComponentEntity asWebEntity(ComponentInstLight component)
component
- the component to convert.
protected PersonalComponentEntity asWebPersonalEntity(WAComponent component)
component
- the personal component to convert.
protected PersonalComponentEntity asWebPersonalEntity(ComponentInst component)
component
- the personal component to convert.
protected PersonalToolEntity asWebPersonalEntity(AbstractTool tool)
tool
- the tool to convert.
protected AbstractTypeEntity asWebEntity(Object object)
component
- the component to convert.
protected AdminWebService getAdminServices()
protected AdminPersonalWebDelegate getAdminPersonalDelegate()
protected void verifyUserAuthorizedToAccessSpace(String spaceId)
spaceId
- protected void verifyUserAuthorizedToAccessLookContext()
spaceId
- protected boolean isUserAuthorizedToAccessLookContext()
spaceId
- protected LookWebDelegate getLookDelegate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |