Class LayoutSetBranchLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutSetBranchLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutSetBranchLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.LayoutSetBranchLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

public class LayoutSetBranchLocalServiceImpl extends LayoutSetBranchLocalServiceBaseImpl
Author:
Raymond Augé, Brian Wing Shun Chan, Julio Camarero
  • Constructor Details

    • LayoutSetBranchLocalServiceImpl

      public LayoutSetBranchLocalServiceImpl()
  • Method Details

    • addLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch addLayoutSetBranch(long userId, long groupId, boolean privateLayout, String name, String description, boolean master, long copyLayoutSetBranchId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutSetBranchLocalServiceBaseImpl
      Deletes the layout set branch from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutSetBranchLocalServiceImpl 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:
      deleteLayoutSetBranch in interface com.liferay.portal.kernel.service.LayoutSetBranchLocalService
      Overrides:
      deleteLayoutSetBranch in class LayoutSetBranchLocalServiceBaseImpl
      Parameters:
      layoutSetBranch - the layout set branch
      Returns:
      the layout set branch that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch, boolean includeMaster) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(long layoutSetBranchId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutSetBranchLocalServiceBaseImpl
      Deletes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutSetBranchLocalServiceImpl 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:
      deleteLayoutSetBranch in interface com.liferay.portal.kernel.service.LayoutSetBranchLocalService
      Overrides:
      deleteLayoutSetBranch in class LayoutSetBranchLocalServiceBaseImpl
      Parameters:
      layoutSetBranchId - the primary key of the layout set branch
      Returns:
      the layout set branch that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a layout set branch with the primary key could not be found
    • deleteLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(long currentLayoutPlid, com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch, boolean includeMaster) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(long currentLayoutPlid, long layoutSetBranchId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranches

      public void deleteLayoutSetBranches(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranches

      public void deleteLayoutSetBranches(long groupId, boolean privateLayout, boolean includeMaster) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch fetchLayoutSetBranch(long groupId, boolean privateLayout, String name)
    • getLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch getLayoutSetBranch(long groupId, boolean privateLayout, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutSetBranches

      public List<com.liferay.portal.kernel.model.LayoutSetBranch> getLayoutSetBranches(long groupId, boolean privateLayout)
    • getMasterLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch getMasterLayoutSetBranch(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getUserLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch getUserLayoutSetBranch(long userId, long groupId, boolean privateLayout, long layoutSetId, long layoutSetBranchId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • mergeLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch mergeLayoutSetBranch(long layoutSetBranchId, long mergeLayoutSetBranchId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLayoutSetBranch

      public com.liferay.portal.kernel.model.LayoutSetBranch updateLayoutSetBranch(long layoutSetBranchId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutBranchName

      protected String getLayoutBranchName(long layoutSetBranchId, Locale locale, String mergeBranchName, String mergeLayoutSetBranchName, long plid)
    • validate

      protected void validate(long layoutSetBranchId, long groupId, boolean privateLayout, String name, boolean master) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException