Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The API functions for the pages, elements and media items are exposed through a service. Obtaining the services can be done through the Session. The following lines of code will make the Session, PageManagementService, ElementManagementService and MediaRepositoryService available:

 

Session mySession = mySessionManager.getActiveSession();
PageManagementService myPageService = mySession.getPageManagementService();
ElementManagementService myElementService = mySession.getElementManagementService();
MediaRepositoryManagementService myMediaRepositoryService = mySession.getMediaRepositoryManagementService();
  • No labels