Class ServiceNavigation
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceNavigation
Service to manage requests related to navigation within Silverpeas.
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAppCache(RestCallback<Void> callback) Clears the application cache.voidgetApp(String instanceId, String contentId, String contentType, RestCallback<ApplicationInstanceDTO> callback) Retrieves an application by its instance ID, content ID, and content type.voidgetHomePageData(String spaceId, String zoom, RestCallback<HomePageDTO> callback) Retrieves homepage data for a given space.voidgetPersonnalSpaceContent(String userId, RestCallback<List<ApplicationInstanceDTO>> callback) Retrieves the contents of a user's personal space.voidgetSpace(String spaceId, RestCallback<SpaceDTO> callback) Retrieves a space by its ID.voidgetSpacesAndApps(String rootSpaceId, RestCallback<List<SilverpeasObjectDTO>> callback) Retrieves spaces and applications from a root space.voidgetUser(String login, String domainId, RestCallback<DetailUserDTO> callback) Retrieves a user's details by their login and domain ID.voidisWorkflowApp(String instanceId, RestCallback<Boolean> callback) Checks whether an application is of workflow type.voidsetTabletMode(RestCallback<Boolean> callback) Enables tablet mode.voidstoreTokenMessaging(String token, RestCallback<Void> callback) Stores a messaging token.Methods inherited from class org.silverpeas.mobile.shared.services.rest.AbstractService
asBoolean, delete, encode, escapeJson, get, getText, initContext, mapArray, post, put, request, request, requestJson, requestText, toJsonArray
-
Constructor Details
-
ServiceNavigation
public ServiceNavigation()
-
-
Method Details
-
getSpace
Retrieves a space by its ID.- Parameters:
spaceId-callback-
-
getPersonnalSpaceContent
public void getPersonnalSpaceContent(String userId, RestCallback<List<ApplicationInstanceDTO>> callback) Retrieves the contents of a user's personal space.- Parameters:
userId-callback-
-
getSpacesAndApps
Retrieves spaces and applications from a root space.- Parameters:
rootSpaceId-callback-
-
getApp
public void getApp(String instanceId, String contentId, String contentType, RestCallback<ApplicationInstanceDTO> callback) Retrieves an application by its instance ID, content ID, and content type.- Parameters:
instanceId-contentId-contentType-callback-
-
getUser
Retrieves a user's details by their login and domain ID.- Parameters:
login-domainId-callback-
-
setTabletMode
Enables tablet mode.- Parameters:
callback-
-
clearAppCache
Clears the application cache.- Parameters:
callback-
-
getHomePageData
Retrieves homepage data for a given space.- Parameters:
spaceId-zoom-callback-
-
isWorkflowApp
Checks whether an application is of workflow type.- Parameters:
instanceId-callback-
-
storeTokenMessaging
Stores a messaging token.- Parameters:
token-callback-
-