Class LayoutBranchLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutBranchLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutBranchLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.LayoutBranchLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

@CTAware public class LayoutBranchLocalServiceImpl extends LayoutBranchLocalServiceBaseImpl
Author:
Julio Camarero
  • Constructor Details

    • LayoutBranchLocalServiceImpl

      public LayoutBranchLocalServiceImpl()
  • Method Details

    • addLayoutBranch

      public com.liferay.portal.kernel.model.LayoutBranch addLayoutBranch(long layoutSetBranchId, long plid, String name, String description, boolean master, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addLayoutBranch

      public com.liferay.portal.kernel.model.LayoutBranch addLayoutBranch(long layoutRevisionId, String name, String description, boolean master, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutBranch

      public com.liferay.portal.kernel.model.LayoutBranch deleteLayoutBranch(long layoutBranchId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutBranchLocalServiceBaseImpl
      Deletes the layout branch with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutBranchLocalServiceImpl 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:
      deleteLayoutBranch in interface com.liferay.portal.kernel.service.LayoutBranchLocalService
      Overrides:
      deleteLayoutBranch in class LayoutBranchLocalServiceBaseImpl
      Parameters:
      layoutBranchId - the primary key of the layout branch
      Returns:
      the layout branch that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a layout branch with the primary key could not be found
    • deleteLayoutBranchesByPlid

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

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

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

      public List<com.liferay.portal.kernel.model.LayoutBranch> getLayoutSetBranchLayoutBranches(long layoutSetBranchId)
    • getMasterLayoutBranch

      public com.liferay.portal.kernel.model.LayoutBranch getMasterLayoutBranch(long layoutSetBranchId, long plid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMasterLayoutBranch

      public com.liferay.portal.kernel.model.LayoutBranch getMasterLayoutBranch(long layoutSetBranchId, long plid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLayoutBranch

      public com.liferay.portal.kernel.model.LayoutBranch updateLayoutBranch(long layoutBranchId, 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
    • validate

      protected void validate(long layoutBranchId, long layoutSetBranchId, long plid, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException