|
||||||||||
| 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
org.silverpeas.admin.web.SpaceResource
@Service @RequestScoped @Authenticated public class SpaceResource
A REST Web resource giving space data.
| 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 | |
|---|---|
SpaceResource()
|
|
| Method Summary | |
|---|---|
PersonalComponentEntity |
discardComponent(String componentName)
Removes from the user's personal space the instantiation of the requested component. |
SpaceEntity |
get(String spaceId,
boolean forceGettingFavorite)
Gets the JSON representation of the given existing space. |
Collection<SpaceEntity> |
getAll(boolean forceGettingFavorite)
Gets the JSON representation of root spaces. |
SpaceAppearanceEntity |
getAppearance(String spaceId)
Gets the JSON representation of the given existing space. |
String |
getComponentId()
Gets the identifier of the component instance to which the requested resource belongs to. |
Collection<ComponentEntity> |
getComponents(String spaceId)
Gets the JSON representation of components of the given existing space. |
Collection<AbstractTypeEntity> |
getContent(String spaceId,
boolean forceGettingFavorite)
Gets the JSON representation of content of the given existing space. |
Collection<AbstractPersonnalEntity> |
getPersonals(boolean getNotUsedComponents,
boolean getUsedComponents,
boolean getUsedTools)
Gets the JSON representation of the content of user's personal space. |
Collection<SpaceEntity> |
getSpaces(String spaceId,
boolean forceGettingFavorite)
Gets the JSON representation of spaces of the given existing space. |
Map<SilverpeasRole,UsersAndGroupsRoleEntity> |
getUsersAndGroupsRoles(String spaceId,
String roles)
Gets users and groups roles indexed by role names. |
SpaceEntity |
update(String spaceId,
SpaceEntity spaceEntity)
Updates the space data from its JSON representation and returns it once updated. |
PersonalComponentEntity |
useComponent(String componentName)
Instantiates the requested component in the user's personal space. |
| 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 SpaceResource()
| Method Detail |
|---|
public Collection<SpaceEntity> getAll(boolean forceGettingFavorite)
forceGettingFavorite - forcing the user favorite space search even if the favorite
feature is disabled.
public SpaceEntity get(String spaceId,
boolean forceGettingFavorite)
spaceId - the id of space to process.forceGettingFavorite - forcing the user favorite space search even if the favorite
feature is disabled.
public Map<SilverpeasRole,UsersAndGroupsRoleEntity> getUsersAndGroupsRoles(String spaceId,
String roles)
spaceId - the id of space to process.roles - aimed roles (each one separated by comma). If empty, all roles are returned.
public SpaceEntity update(String spaceId,
SpaceEntity spaceEntity)
spaceId - the id of space to process.spaceEntity - space entity to update.
public Collection<SpaceEntity> getSpaces(String spaceId,
boolean forceGettingFavorite)
spaceId - the id of space to process.forceGettingFavorite - forcing the user favorite space search even if the favorite
public Collection<ComponentEntity> getComponents(String spaceId)
spaceId - the id of space to process.
public Collection<AbstractTypeEntity> getContent(String spaceId,
boolean forceGettingFavorite)
spaceId - the id of space to process.
public SpaceAppearanceEntity getAppearance(String spaceId)
spaceId - the id of space to process.
public Collection<AbstractPersonnalEntity> getPersonals(boolean getNotUsedComponents,
boolean getUsedComponents,
boolean getUsedTools)
getNotUsedComponents - getUsedComponents - getUsedTools -
public PersonalComponentEntity useComponent(String componentName)
componentName - the name of component to add in the user's personal space
public PersonalComponentEntity discardComponent(String componentName)
componentName - the name of component to add in the user's personal space
public String getComponentId()
RESTWebService
getComponentId in class RESTWebService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||