The Page, Element and Mediarepository Managementservice

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();