public class LayoutSetBranchLocalServiceUtil
extends Object
com.liferay.portal.service.impl.LayoutSetBranchLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.LayoutSetBranchLocalService
Constructor and Description |
---|
LayoutSetBranchLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static LayoutSetBranch |
addLayoutSetBranch(LayoutSetBranch layoutSetBranch)
Adds the layout set branch to the database.
|
static LayoutSetBranch |
addLayoutSetBranch(long userId,
long groupId,
boolean privateLayout,
String name,
String description,
boolean master,
long copyLayoutSetBranchId,
ServiceContext serviceContext) |
static LayoutSetBranch |
createLayoutSetBranch(long layoutSetBranchId)
Creates a new layout set branch with the primary key.
|
static PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
static LayoutSetBranch |
deleteLayoutSetBranch(LayoutSetBranch layoutSetBranch)
Deletes the layout set branch from the database.
|
static LayoutSetBranch |
deleteLayoutSetBranch(LayoutSetBranch layoutSetBranch,
boolean includeMaster) |
static LayoutSetBranch |
deleteLayoutSetBranch(long layoutSetBranchId)
Deletes the layout set branch with the primary key from the database.
|
static void |
deleteLayoutSetBranches(long groupId,
boolean privateLayout) |
static void |
deleteLayoutSetBranches(long groupId,
boolean privateLayout,
boolean includeMaster) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static LayoutSetBranch |
fetchLayoutSetBranch(long layoutSetBranchId) |
static LayoutSetBranch |
fetchLayoutSetBranch(long groupId,
boolean privateLayout,
String name) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static LayoutSetBranch |
getLayoutSetBranch(long layoutSetBranchId)
Returns the layout set branch with the primary key.
|
static LayoutSetBranch |
getLayoutSetBranch(long groupId,
boolean privateLayout,
String name) |
static List<LayoutSetBranch> |
getLayoutSetBranches(long groupId,
boolean privateLayout) |
static List<LayoutSetBranch> |
getLayoutSetBranchs(int start,
int end)
Returns a range of all the layout set branches.
|
static int |
getLayoutSetBranchsCount()
Returns the number of layout set branches.
|
static LayoutSetBranch |
getMasterLayoutSetBranch(long groupId,
boolean privateLayout) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static LayoutSetBranchLocalService |
getService() |
static LayoutSetBranch |
getUserLayoutSetBranch(long userId,
long groupId,
boolean privateLayout,
long layoutSetId,
long layoutSetBranchId) |
static LayoutSetBranch |
mergeLayoutSetBranch(long layoutSetBranchId,
long mergeLayoutSetBranchId,
ServiceContext serviceContext) |
static LayoutSetBranch |
updateLayoutSetBranch(LayoutSetBranch layoutSetBranch)
Updates the layout set branch in the database or adds it if it does not yet exist.
|
static LayoutSetBranch |
updateLayoutSetBranch(long layoutSetBranchId,
String name,
String description,
ServiceContext serviceContext) |
public static LayoutSetBranch addLayoutSetBranch(LayoutSetBranch layoutSetBranch)
layoutSetBranch
- the layout set branchpublic static LayoutSetBranch addLayoutSetBranch(long userId, long groupId, boolean privateLayout, String name, String description, boolean master, long copyLayoutSetBranchId, ServiceContext serviceContext) throws PortalException
PortalException
public static LayoutSetBranch createLayoutSetBranch(long layoutSetBranchId)
layoutSetBranchId
- the primary key for the new layout set branchpublic static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static LayoutSetBranch deleteLayoutSetBranch(LayoutSetBranch layoutSetBranch) throws PortalException
layoutSetBranch
- the layout set branchPortalException
public static LayoutSetBranch deleteLayoutSetBranch(LayoutSetBranch layoutSetBranch, boolean includeMaster) throws PortalException
PortalException
public static LayoutSetBranch deleteLayoutSetBranch(long layoutSetBranchId) throws PortalException
layoutSetBranchId
- the primary key of the layout set branchPortalException
- if a layout set branch with the primary key could not be foundpublic static void deleteLayoutSetBranches(long groupId, boolean privateLayout) throws PortalException
PortalException
public static void deleteLayoutSetBranches(long groupId, boolean privateLayout, boolean includeMaster) throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.LayoutSetBranchModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.LayoutSetBranchModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static LayoutSetBranch fetchLayoutSetBranch(long layoutSetBranchId)
public static LayoutSetBranch fetchLayoutSetBranch(long groupId, boolean privateLayout, String name)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static LayoutSetBranch getLayoutSetBranch(long layoutSetBranchId) throws PortalException
layoutSetBranchId
- the primary key of the layout set branchPortalException
- if a layout set branch with the primary key could not be foundpublic static LayoutSetBranch getLayoutSetBranch(long groupId, boolean privateLayout, String name) throws PortalException
PortalException
public static List<LayoutSetBranch> getLayoutSetBranches(long groupId, boolean privateLayout)
public static List<LayoutSetBranch> getLayoutSetBranchs(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.LayoutSetBranchModelImpl
.
start
- the lower bound of the range of layout set branchesend
- the upper bound of the range of layout set branches (not inclusive)public static int getLayoutSetBranchsCount()
public static LayoutSetBranch getMasterLayoutSetBranch(long groupId, boolean privateLayout) throws PortalException
PortalException
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static LayoutSetBranch getUserLayoutSetBranch(long userId, long groupId, boolean privateLayout, long layoutSetId, long layoutSetBranchId) throws PortalException
PortalException
public static LayoutSetBranch mergeLayoutSetBranch(long layoutSetBranchId, long mergeLayoutSetBranchId, ServiceContext serviceContext) throws PortalException
PortalException
public static LayoutSetBranch updateLayoutSetBranch(LayoutSetBranch layoutSetBranch)
layoutSetBranch
- the layout set branchpublic static LayoutSetBranch updateLayoutSetBranch(long layoutSetBranchId, String name, String description, ServiceContext serviceContext) throws PortalException
PortalException
public static LayoutSetBranchLocalService getService()