Class LayoutServiceImpl
java.lang.Object
org.exoplatform.portal.mop.service.LayoutServiceImpl
- All Implemented Interfaces:
org.exoplatform.portal.mop.service.LayoutService
public class LayoutServiceImpl
extends Object
implements org.exoplatform.portal.mop.service.LayoutService
-
Field Summary
Fields inherited from interface org.exoplatform.portal.mop.service.LayoutService
PAGE_CREATED, PAGE_REMOVED, PAGE_UPDATED, PORTAL_CONFIG_CREATED, PORTAL_CONFIG_REMOVED, PORTAL_CONFIG_UPDATED -
Constructor Summary
ConstructorsConstructorDescriptionLayoutServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.portal.mop.storage.SiteStorage siteStorage, org.exoplatform.portal.mop.storage.PageStorage pageStorage, LayoutStorage layoutStorage, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.container.PortalContainer portalContainer, org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbroadcastEvent(String eventName, Object data) voidcreate(org.exoplatform.portal.config.model.Page page) voidcreate(org.exoplatform.portal.config.model.PortalConfig config) <T> org.exoplatform.commons.utils.LazyPageList<T> find(org.exoplatform.portal.config.Query<T> q, Comparator<T> sortComparator) <T> org.exoplatform.commons.utils.ListAccess<T> find2(org.exoplatform.portal.config.Query<T> q, Comparator<T> sortComparator) <T> org.exoplatform.commons.utils.LazyPageList<T> findLazyPageList(org.exoplatform.portal.config.Query<T> q) org.exoplatform.portal.mop.QueryResult<org.exoplatform.portal.mop.page.PageContext> findPages(int offset, int limit, org.exoplatform.portal.mop.SiteType siteKey, String siteName, String pageName, String pageTitle) List<org.exoplatform.portal.mop.page.PageContext> findPages(org.exoplatform.portal.mop.SiteKey siteKey) org.exoplatform.portal.config.model.ApplicationgetApplicationModel(String applicationStorageId) getDefaultSiteBannerStream(String siteName) getId(org.exoplatform.portal.config.model.ApplicationState state) org.exoplatform.portal.mop.importer.Statusorg.exoplatform.portal.config.model.PagegetPage(long id) org.exoplatform.portal.config.model.Pageorg.exoplatform.portal.config.model.PagegetPage(org.exoplatform.portal.mop.page.PageKey pageKey) org.exoplatform.portal.mop.page.PageContextgetPageContext(org.exoplatform.portal.mop.page.PageKey pageKey) org.exoplatform.portal.config.model.PortalConfiggetPortalConfig(long siteId) org.exoplatform.portal.config.model.PortalConfiggetPortalConfig(String portalName) org.exoplatform.portal.config.model.PortalConfiggetPortalConfig(String ownerType, String portalName) org.exoplatform.portal.config.model.PortalConfiggetPortalConfig(org.exoplatform.portal.mop.SiteKey siteKey) org.exoplatform.portal.config.model.ContainergetSharedLayout(String siteName) getSiteBannerStream(String siteName) getSiteNames(org.exoplatform.portal.mop.SiteType siteType, int offset, int limit) List<org.exoplatform.portal.config.model.PortalConfig> getSites(org.exoplatform.portal.mop.SiteFilter filter) org.exoplatform.portal.pom.spi.portlet.Portletload(org.exoplatform.portal.config.model.ApplicationState state) voidremove(org.exoplatform.portal.config.model.Page page) voidremove(org.exoplatform.portal.config.model.PortalConfig config) voidremove(org.exoplatform.portal.mop.page.PageKey pageKey) voidremovePages(org.exoplatform.portal.mop.SiteKey siteKey) voidremoveSiteBanner(String siteName) org.exoplatform.portal.config.model.ApplicationStatesave(org.exoplatform.portal.config.model.ApplicationState state, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) List<org.exoplatform.portal.pom.data.ModelChange> save(org.exoplatform.portal.config.model.Page page) voidsave(org.exoplatform.portal.config.model.PortalConfig config) voidsave(org.exoplatform.portal.mop.page.PageContext pageContext) voidsave(org.exoplatform.portal.mop.page.PageContext pageContext, org.exoplatform.portal.config.model.Page page) voidsaveImportStatus(org.exoplatform.portal.mop.importer.Status status) voidsavePageFromTemplate(org.exoplatform.portal.mop.page.PageKey sourcePageKey, org.exoplatform.portal.mop.SiteKey targetSiteKey, String permission) voidsavePagesFromTemplate(org.exoplatform.portal.mop.SiteKey sourceSiteTemplate, org.exoplatform.portal.mop.SiteKey targetSiteKey, String permission) voidsavePortalFromTemplate(org.exoplatform.portal.mop.SiteKey sourceSiteKey, org.exoplatform.portal.mop.SiteKey targetSiteKey, String permission) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.portal.mop.service.LayoutService
savePortalFromTemplate
-
Constructor Details
-
LayoutServiceImpl
public LayoutServiceImpl(org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.portal.mop.storage.SiteStorage siteStorage, org.exoplatform.portal.mop.storage.PageStorage pageStorage, LayoutStorage layoutStorage, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.container.PortalContainer portalContainer, org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
create
public void create(org.exoplatform.portal.config.model.PortalConfig config) - Specified by:
createin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
savePortalFromTemplate
public void savePortalFromTemplate(org.exoplatform.portal.mop.SiteKey sourceSiteKey, org.exoplatform.portal.mop.SiteKey targetSiteKey, String permission) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
savePortalFromTemplatein interfaceorg.exoplatform.portal.mop.service.LayoutService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
savePagesFromTemplate
public void savePagesFromTemplate(org.exoplatform.portal.mop.SiteKey sourceSiteTemplate, org.exoplatform.portal.mop.SiteKey targetSiteKey, String permission) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
savePagesFromTemplatein interfaceorg.exoplatform.portal.mop.service.LayoutService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
savePageFromTemplate
public void savePageFromTemplate(org.exoplatform.portal.mop.page.PageKey sourcePageKey, org.exoplatform.portal.mop.SiteKey targetSiteKey, String permission) - Specified by:
savePageFromTemplatein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
save
public void save(org.exoplatform.portal.config.model.PortalConfig config) - Specified by:
savein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
remove
public void remove(org.exoplatform.portal.config.model.PortalConfig config) - Specified by:
removein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPortalConfig
- Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPortalConfig
public org.exoplatform.portal.config.model.PortalConfig getPortalConfig(org.exoplatform.portal.mop.SiteKey siteKey) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPortalConfig
public org.exoplatform.portal.config.model.PortalConfig getPortalConfig(long siteId) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPortalConfig
public org.exoplatform.portal.config.model.PortalConfig getPortalConfig(String ownerType, String portalName) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getSiteNames
public List<String> getSiteNames(org.exoplatform.portal.mop.SiteType siteType, int offset, int limit) - Specified by:
getSiteNamesin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
create
public void create(org.exoplatform.portal.config.model.Page page) - Specified by:
createin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
save
public List<org.exoplatform.portal.pom.data.ModelChange> save(org.exoplatform.portal.config.model.Page page) - Specified by:
savein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
save
public void save(org.exoplatform.portal.mop.page.PageContext pageContext, org.exoplatform.portal.config.model.Page page) - Specified by:
savein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
save
public void save(org.exoplatform.portal.mop.page.PageContext pageContext) - Specified by:
savein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
removePages
public void removePages(org.exoplatform.portal.mop.SiteKey siteKey) - Specified by:
removePagesin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
remove
public void remove(org.exoplatform.portal.mop.page.PageKey pageKey) - Specified by:
removein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
remove
public void remove(org.exoplatform.portal.config.model.Page page) - Specified by:
removein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPage
- Specified by:
getPagein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPage
public org.exoplatform.portal.config.model.Page getPage(long id) - Specified by:
getPagein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPage
public org.exoplatform.portal.config.model.Page getPage(org.exoplatform.portal.mop.page.PageKey pageKey) - Specified by:
getPagein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getPageContext
public org.exoplatform.portal.mop.page.PageContext getPageContext(org.exoplatform.portal.mop.page.PageKey pageKey) - Specified by:
getPageContextin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
findPages
public List<org.exoplatform.portal.mop.page.PageContext> findPages(org.exoplatform.portal.mop.SiteKey siteKey) - Specified by:
findPagesin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
findPages
public org.exoplatform.portal.mop.QueryResult<org.exoplatform.portal.mop.page.PageContext> findPages(int offset, int limit, org.exoplatform.portal.mop.SiteType siteKey, String siteName, String pageName, String pageTitle) - Specified by:
findPagesin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
load
public org.exoplatform.portal.pom.spi.portlet.Portlet load(org.exoplatform.portal.config.model.ApplicationState state) - Specified by:
loadin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
save
public org.exoplatform.portal.config.model.ApplicationState save(org.exoplatform.portal.config.model.ApplicationState state, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) - Specified by:
savein interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getId
- Specified by:
getIdin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getApplicationModel
public org.exoplatform.portal.config.model.Application getApplicationModel(String applicationStorageId) - Specified by:
getApplicationModelin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getImportStatus
public org.exoplatform.portal.mop.importer.Status getImportStatus()- Specified by:
getImportStatusin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
saveImportStatus
public void saveImportStatus(org.exoplatform.portal.mop.importer.Status status) - Specified by:
saveImportStatusin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
find
public <T> org.exoplatform.commons.utils.LazyPageList<T> find(org.exoplatform.portal.config.Query<T> q, Comparator<T> sortComparator) - Specified by:
findin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
find2
public <T> org.exoplatform.commons.utils.ListAccess<T> find2(org.exoplatform.portal.config.Query<T> q, Comparator<T> sortComparator) - Specified by:
find2in interfaceorg.exoplatform.portal.mop.service.LayoutService
-
findLazyPageList
public <T> org.exoplatform.commons.utils.LazyPageList<T> findLazyPageList(org.exoplatform.portal.config.Query<T> q) -
getSites
public List<org.exoplatform.portal.config.model.PortalConfig> getSites(org.exoplatform.portal.mop.SiteFilter filter) - Specified by:
getSitesin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
getSiteBannerStream
public InputStream getSiteBannerStream(String siteName) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getSiteBannerStreamin interfaceorg.exoplatform.portal.mop.service.LayoutService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getDefaultSiteBannerStream
- Specified by:
getDefaultSiteBannerStreamin interfaceorg.exoplatform.portal.mop.service.LayoutService
-
removeSiteBanner
public void removeSiteBanner(String siteName) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
removeSiteBannerin interfaceorg.exoplatform.portal.mop.service.LayoutService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
broadcastEvent
-