001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface LayoutSetBranchService {
041
046 public com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
047 long groupId, boolean privateLayout, java.lang.String name,
048 java.lang.String description, boolean master,
049 long copyLayoutSetBranchId,
050 com.liferay.portal.service.ServiceContext serviceContext)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteLayoutSetBranch(long layoutSetBranchId)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException;
057
058 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059 public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
060 long groupId, boolean privateLayout)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 public com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
064 long layoutSetBranchId, long mergeLayoutSetBranchId,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
070 long groupId, long layoutSetBranchId, java.lang.String name,
071 java.lang.String description,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075 }