Class LayoutRevisionLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutRevisionLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutRevisionLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.LayoutRevisionLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

public class LayoutRevisionLocalServiceImpl extends LayoutRevisionLocalServiceBaseImpl
Author:
Raymond Augé, Brian Wing Shun Chan
  • Constructor Details

    • LayoutRevisionLocalServiceImpl

      public LayoutRevisionLocalServiceImpl()
  • Method Details

    • addLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision addLayoutRevision(long userId, long layoutSetBranchId, long layoutBranchId, long parentLayoutRevisionId, boolean head, long plid, long portletPreferencesPlid, boolean privateLayout, String name, String title, String description, String keywords, String robots, String typeSettings, boolean iconImage, long iconImageId, String themeId, String colorSchemeId, String css, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutLayoutRevisions

      public void deleteLayoutLayoutRevisions(long plid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutRevision

      @SystemEvent(type=1) public com.liferay.portal.kernel.model.LayoutRevision deleteLayoutRevision(com.liferay.portal.kernel.model.LayoutRevision layoutRevision) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutRevisionLocalServiceBaseImpl
      Deletes the layout revision from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutRevisionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteLayoutRevision in interface com.liferay.portal.kernel.service.LayoutRevisionLocalService
      Overrides:
      deleteLayoutRevision in class LayoutRevisionLocalServiceBaseImpl
      Parameters:
      layoutRevision - the layout revision
      Returns:
      the layout revision that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision deleteLayoutRevision(long layoutRevisionId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutRevisionLocalServiceBaseImpl
      Deletes the layout revision with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutRevisionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteLayoutRevision in interface com.liferay.portal.kernel.service.LayoutRevisionLocalService
      Overrides:
      deleteLayoutRevision in class LayoutRevisionLocalServiceBaseImpl
      Parameters:
      layoutRevisionId - the primary key of the layout revision
      Returns:
      the layout revision that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a layout revision with the primary key could not be found
    • deleteLayoutRevisions

      public void deleteLayoutRevisions(long layoutSetBranchId, long plid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutRevisions

      public void deleteLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranchLayoutRevisions

      public void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLastLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision fetchLastLayoutRevision(long plid, boolean head)
    • fetchLatestLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId, long plid)
    • fetchLatestLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid)
    • fetchLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision fetchLayoutRevision(long layoutSetBranchId, long layoutBranchId, boolean head, long plid)
    • getChildLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevisionId, long plid)
    • getChildLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevision, long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator)
    • getChildLayoutRevisionsCount

      public int getChildLayoutRevisionsCount(long layoutSetBranchId, long parentLayoutRevision, long plid)
    • getLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision getLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long plid)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head, int status)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, int status)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, boolean head)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int status)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator)
    • getLayoutRevisions

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator)
    • getLayoutRevisionsByStatus

      public List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisionsByStatus(int status)
    • getLayoutRevisionsCount

      public int getLayoutRevisionsCount(long plid)
    • getLayoutRevisionsCount

      public int getLayoutRevisionsCount(long layoutSetBranchId, long layoutBranchId, long plid)
    • updateLayoutRevision

      public com.liferay.portal.kernel.model.LayoutRevision updateLayoutRevision(long userId, long layoutRevisionId, long layoutBranchId, String name, String title, String description, String keywords, String robots, String typeSettings, boolean iconImage, long iconImageId, String themeId, String colorSchemeId, String css, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public com.liferay.portal.kernel.model.LayoutRevision updateStatus(long userId, long layoutRevisionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyPortletPreferences

      protected void copyPortletPreferences(com.liferay.portal.kernel.model.LayoutRevision layoutRevision, long parentLayoutRevisionId)
    • getParentLayoutRevisionId

      protected long getParentLayoutRevisionId(long layoutSetBranchId, long parentLayoutRevisionId, long plid)
    • getUniqueLayoutRevisionId

      protected long getUniqueLayoutRevisionId()
    • isWorkflowEnabled

      protected boolean isWorkflowEnabled(long plid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateMajor

      protected com.liferay.portal.kernel.model.LayoutRevision updateMajor(com.liferay.portal.kernel.model.LayoutRevision layoutRevision) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException