|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.LayoutLocalServiceWrapper
public class LayoutLocalServiceWrapper
This class is a wrapper for LayoutLocalService
.
LayoutLocalService
Constructor Summary | |
---|---|
LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService)
|
Method Summary | |
---|---|
Layout |
addLayout(Layout layout)
Adds the layout to the database. |
Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
Map<Locale,String> nameMap,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
Map<Locale,String> keywordsMap,
Map<Locale,String> robotsMap,
String type,
boolean hidden,
String friendlyURL,
ServiceContext serviceContext)
Adds a layout with additional parameters. |
Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
String name,
String title,
String description,
String type,
boolean hidden,
String friendlyURL,
ServiceContext serviceContext)
Adds a layout. |
Layout |
createLayout(long plid)
Creates a new layout with the primary key. |
Layout |
deleteLayout(Layout layout)
Deletes the layout from the database. |
void |
deleteLayout(Layout layout,
boolean updateLayoutSet,
ServiceContext serviceContext)
Deletes the layout, its child layouts, and its associated resources. |
Layout |
deleteLayout(long plid)
Deletes the layout with the primary key from the database. |
void |
deleteLayout(long groupId,
boolean privateLayout,
long layoutId,
ServiceContext serviceContext)
Deletes the layout with the primary key, also deleting the layout's child layouts, and associated resources. |
void |
deleteLayout(long plid,
ServiceContext serviceContext)
Deletes the layout with the plid, also deleting the layout's child layouts, and associated resources. |
void |
deleteLayouts(long groupId,
boolean privateLayout,
ServiceContext serviceContext)
Deletes the group's private or non-private layouts, also deleting the layouts' child layouts, and associated resources. |
DynamicQuery |
dynamicQuery()
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Exports layouts with the primary keys and criteria as a byte array. |
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Exports all layouts that match the criteria as a byte array. |
File |
exportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Exports the layouts that match the primary keys and criteria as a file. |
byte[] |
exportPortletInfo(long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Exports the portlet information (categories, permissions, ... etc.) as a byte array. |
File |
exportPortletInfoAsFile(long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Exports the portlet information (categories, permissions, ... etc.) as a file. |
Layout |
fetchFirstLayout(long groupId,
boolean privateLayout,
long parentLayoutId)
|
Layout |
fetchLayout(long plid)
|
Layout |
fetchLayoutByUuidAndGroupId(String uuid,
long groupId,
boolean privateLayout)
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
long |
getDefaultPlid(long groupId)
Returns the primary key of the default layout for the group |
long |
getDefaultPlid(long groupId,
boolean privateLayout)
Returns primary key of the matching default layout for the group |
long |
getDefaultPlid(long groupId,
boolean privateLayout,
String portletId)
Returns primary key of the default portlet layout for the group |
Layout |
getFriendlyURLLayout(long groupId,
boolean privateLayout,
String friendlyURL)
Returns the layout for the friendly URL |
Layout |
getLayout(long plid)
Returns the layout with the primary key. |
Layout |
getLayout(long groupId,
boolean privateLayout,
long layoutId)
Returns the layout matching the primary key, group, and privacy; throws a NoSuchLayoutException otherwise. |
Layout |
getLayoutByIconImageId(long iconImageId)
Returns the layout for the icon image; throws a NoSuchLayoutException otherwise. |
Layout |
getLayoutByUuidAndGroupId(String uuid,
long groupId,
boolean privateLayout)
|
List<Layout> |
getLayouts(int start,
int end)
Returns a range of all the layouts. |
List<Layout> |
getLayouts(long groupId,
boolean privateLayout)
Returns all the layouts belonging to the group. |
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
Returns all the layouts belonging to the group that are children of the parent layout. |
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
long[] layoutIds)
Returns all the layouts that match the layout IDs and belong to the group. |
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
boolean incomplete,
int start,
int end)
Returns a range of all the layouts belonging to the group that are children of the parent layout. |
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
String type)
Returns all the layouts that match the type and belong to the group. |
LayoutReference[] |
getLayouts(long companyId,
String portletId,
String preferencesKey,
String preferencesValue)
Returns the layout references for all the layouts that belong to the company and belong to the portlet that matches the preferences. |
int |
getLayoutsByLayoutPrototypeUuidCount(String layoutPrototypeUuid)
|
int |
getLayoutsCount()
Returns the number of layouts. |
int |
getLayoutsCount(Group group,
boolean privateLayout)
|
int |
getLayoutsCount(Group group,
boolean privateLayout,
boolean includeUserGroups)
|
int |
getLayoutsCount(User user,
boolean privateLayout)
|
int |
getLayoutsCount(User user,
boolean privateLayout,
boolean includeUserGroups)
|
long |
getNextLayoutId(long groupId,
boolean privateLayout)
Returns the primary key to use for the next layout. |
List<Layout> |
getNullFriendlyURLLayouts()
Returns all the layouts whose friendly URLs are null |
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
List<Layout> |
getScopeGroupLayouts(long groupId,
boolean privateLayout)
Returns all the layouts within scope of the group |
LayoutLocalService |
getWrappedLayoutLocalService()
Deprecated. Renamed to getWrappedService() |
LayoutLocalService |
getWrappedService()
|
boolean |
hasLayouts(Group group,
boolean privateLayout)
|
boolean |
hasLayouts(Group group,
boolean privateLayout,
boolean includeUserGroups)
|
boolean |
hasLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
Returns true if the group has any layouts;
false otherwise. |
boolean |
hasLayouts(User user,
boolean privateLayout)
|
boolean |
hasLayouts(User user,
boolean privateLayout,
boolean includeUserGroups)
|
boolean |
hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
String layoutUuid)
|
boolean |
hasLayoutSetPrototypeLayout(String layoutSetPrototypeUuid,
String layoutUuid)
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
byte[] bytes)
Imports the layouts from the byte array. |
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
Imports the layouts from the file. |
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
InputStream is)
Imports the layouts from the input stream. |
void |
importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
Imports the portlet information (categories, permissions, ... etc.) from the file. |
void |
importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
InputStream is)
Imports the portlet information (categories, permissions, ... etc.) from the input stream. |
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds,
ServiceContext serviceContext)
Sets the layouts for the group, replacing and prioritizing all layouts of the parent layout. |
void |
setWrappedLayoutLocalService(LayoutLocalService layoutLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portal.service.LayoutLocalService) |
void |
setWrappedService(LayoutLocalService layoutLocalService)
|
Layout |
updateFriendlyURL(long plid,
String friendlyURL)
Updates the friendly URL of the layout. |
Layout |
updateLayout(Layout layout)
Updates the layout in the database or adds it if it does not yet exist. |
Layout |
updateLayout(Layout layout,
boolean merge)
Updates the layout in the database or adds it if it does not yet exist. |
Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
Map<Locale,String> nameMap,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
Map<Locale,String> keywordsMap,
Map<Locale,String> robotsMap,
String type,
boolean hidden,
String friendlyURL,
Boolean iconImage,
byte[] iconBytes,
ServiceContext serviceContext)
Updates the layout. |
Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
String typeSettings)
Updates the layout replacing its type settings. |
Layout |
updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
String themeId,
String colorSchemeId,
String css,
boolean wapTheme)
Updates the look and feel of the layout. |
Layout |
updateName(Layout layout,
String name,
String languageId)
Updates the name of the layout. |
Layout |
updateName(long groupId,
boolean privateLayout,
long layoutId,
String name,
String languageId)
Updates the name of the layout matching the group, layout ID, and privacy. |
Layout |
updateName(long plid,
String name,
String languageId)
Updates the name of the layout matching the primary key. |
Layout |
updateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId)
Updates the parent layout ID of the layout matching the group, layout ID, and privacy. |
Layout |
updateParentLayoutId(long plid,
long parentPlid)
Updates the parent layout ID of the layout matching the primary key. |
void |
updatePriorities(long groupId,
boolean privateLayout)
Updates the priorities of the layouts. |
Layout |
updatePriority(Layout layout,
int priority)
Updates the priority of the layout. |
Layout |
updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
Updates the priority of the layout matching the group, layout ID, and privacy. |
Layout |
updatePriority(long plid,
int priority)
Updates the priority of the layout matching the primary key. |
void |
updateScopedPortletNames(long groupId,
boolean privateLayout,
long layoutId,
Map<Locale,String> nameMap,
List<Locale> nameMapModifiedLocales)
Deprecated. As of 6.2.0, with no direct replacement |
void |
updateScopedPortletNames(long groupId,
boolean privateLayout,
long layoutId,
String name,
String languageId)
Deprecated. As of 6.2.0, with no direct replacement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService)
Method Detail |
---|
public Layout addLayout(Layout layout) throws SystemException
addLayout
in interface LayoutLocalService
layout
- the layout
SystemException
- if a system exception occurredpublic Layout createLayout(long plid)
createLayout
in interface LayoutLocalService
plid
- the primary key for the new layout
public Layout deleteLayout(long plid) throws PortalException, SystemException
deleteLayout
in interface LayoutLocalService
plid
- the primary key of the layout
PortalException
- if a layout with the primary key could not be found
SystemException
- if a system exception occurredpublic Layout deleteLayout(Layout layout) throws SystemException
deleteLayout
in interface LayoutLocalService
layout
- the layout
SystemException
- if a system exception occurredpublic DynamicQuery dynamicQuery()
dynamicQuery
in interface LayoutLocalService
public List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface LayoutLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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 QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
in interface LayoutLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
in interface LayoutLocalService
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
)
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface LayoutLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic Layout fetchLayout(long plid) throws SystemException
fetchLayout
in interface LayoutLocalService
SystemException
public Layout getLayout(long plid) throws PortalException, SystemException
getLayout
in interface LayoutLocalService
plid
- the primary key of the layout
PortalException
- if a layout with the primary key could not be found
SystemException
- if a system exception occurredpublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface LayoutLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
SystemException
public Layout getLayoutByUuidAndGroupId(String uuid, long groupId, boolean privateLayout) throws PortalException, SystemException
getLayoutByUuidAndGroupId
in interface LayoutLocalService
uuid
- the UUID of layoutgroupId
- the group id of the layoutprivateLayout
- whether the layout is private to the group
PortalException
- if a layout with the UUID in the group and privateLayout could not be found
SystemException
- if a system exception occurredpublic List<Layout> getLayouts(int start, int end) throws SystemException
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 QueryUtil.ALL_POS
will return the full result set.
getLayouts
in interface LayoutLocalService
start
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)
SystemException
- if a system exception occurredpublic int getLayoutsCount() throws SystemException
getLayoutsCount
in interface LayoutLocalService
SystemException
- if a system exception occurredpublic Layout updateLayout(Layout layout) throws SystemException
updateLayout
in interface LayoutLocalService
layout
- the layout
SystemException
- if a system exception occurredpublic Layout updateLayout(Layout layout, boolean merge) throws SystemException
updateLayout
in interface LayoutLocalService
layout
- the layoutmerge
- whether to merge the layout with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic String getBeanIdentifier()
getBeanIdentifier
in interface LayoutLocalService
public void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier
in interface LayoutLocalService
beanIdentifier
- the Spring bean ID for this beanpublic Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale,String> nameMap, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, Map<Locale,String> keywordsMap, Map<Locale,String> robotsMap, String type, boolean hidden, String friendlyURL, ServiceContext serviceContext) throws PortalException, SystemException
This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.
addLayout
in interface LayoutLocalService
userId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the primary key of the parent layout (optionally
LayoutConstants.DEFAULT_PARENT_LAYOUT_ID
)nameMap
- the layout's locales and localized namestitleMap
- the layout's locales and localized titlesdescriptionMap
- the layout's locales and localized descriptionskeywordsMap
- the layout's locales and localized keywordsrobotsMap
- the layout's locales and localized robotstype
- the layout's type (optionally LayoutConstants.TYPE_PORTLET
). The
possible types can be found in LayoutConstants
.hidden
- whether the layout is hiddenfriendlyURL
- the layout's friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL
).
The default values can be overridden in
portal-ext.properties
by specifying new values for
the corresponding properties defined in PropsValues
. To see how the URL is
normalized when accessed see FriendlyURLNormalizerUtil.normalize(
String)
.serviceContext
- the service context. Must set the universally
unique identifier (UUID) for the layout. Can set the creation
date, modification date and the expando bridge attributes for the
layout. For layouts that belong to a layout set prototype, an
attribute named 'layoutUpdateable' can be set to specify whether
site administrators can modify this page within their site. For
layouts that are created from a layout prototype, attributes
named 'layoutPrototypeUuid' and 'layoutPrototypeLinkedEnabled'
can be specified to provide the unique identifier of the source
prototype and a boolean to determined whether a link to it should
be enabled to activate propagation of changes made to the linked
page in the prototype.
PortalException
- if a group or user with the primary key could not
be found, or if layout values were invalid
SystemException
- if a system exception occurredpublic Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, String friendlyURL, ServiceContext serviceContext) throws PortalException, SystemException
This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.
addLayout
in interface LayoutLocalService
userId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the primary key of the parent layout (optionally
LayoutConstants.DEFAULT_PARENT_LAYOUT_ID
).
The possible values can be found in LayoutConstants
.name
- the layout's name (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_NAME
or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_NAME
).
The default values can be overridden in
portal-ext.properties
by specifying new values for
the corresponding properties defined in PropsValues
title
- the layout's titledescription
- the layout's descriptiontype
- the layout's type (optionally LayoutConstants.TYPE_PORTLET
). The
possible types can be found in LayoutConstants
.hidden
- whether the layout is hiddenfriendlyURL
- the friendly URL of the layout (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL
).
The default values can be overridden in
portal-ext.properties
by specifying new values for
the corresponding properties defined in PropsValues
. To see how the URL is
normalized when accessed see FriendlyURLNormalizerUtil.normalize(
String)
.serviceContext
- the service context. Must set the universally
unique identifier (UUID) for the layout. Can set the creation
date and modification date for the layout. For layouts that
belong to a layout set prototype, an attribute named
'layoutUpdateable' can be set to specify whether site
administrators can modify this page within their site.
PortalException
- if a group or user with the primary key could not
be found
SystemException
- if a system exception occurredpublic void deleteLayout(Layout layout, boolean updateLayoutSet, ServiceContext serviceContext) throws PortalException, SystemException
deleteLayout
in interface LayoutLocalService
layout
- the layoutupdateLayoutSet
- whether the layout set's page counter needs to be
updatedserviceContext
- the service context
PortalException
- if a portal exception occurred
SystemException
- if a system exception occurredpublic void deleteLayout(long groupId, boolean privateLayout, long layoutId, ServiceContext serviceContext) throws PortalException, SystemException
deleteLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutserviceContext
- the service context
PortalException
- if a matching layout could not be found , or if
some other portal exception occurred
SystemException
- if a system exception occurredpublic void deleteLayout(long plid, ServiceContext serviceContext) throws PortalException, SystemException
deleteLayout
in interface LayoutLocalService
plid
- the primary key of the layoutserviceContext
- the service context
PortalException
- if a layout with the primary key could not be
found , or if some other portal exception occurred
SystemException
- if a system exception occurredpublic void deleteLayouts(long groupId, boolean privateLayout, ServiceContext serviceContext) throws PortalException, SystemException
deleteLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupserviceContext
- the service context
PortalException
- if a group with the primary key could not be
found or if a layout set for the group and privacy could not be
found
SystemException
- if a system exception occurredpublic byte[] exportLayouts(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
exportLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutIds
- the primary keys of the layouts to be exportedparameterMap
- the mapping of parameters indicating which
information to export. For information on the keys used in the
map see PortletDataHandlerKeys
.startDate
- the export's start dateendDate
- the export's end date
PortalException
- if a group or any layout with the primary key
could not be found, or if some other portal exception occurred
SystemException
- if a system exception occurredpublic byte[] exportLayouts(long groupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
exportLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparameterMap
- the mapping of parameters indicating which
information to export. For information on the keys used in the
map see PortletDataHandlerKeys
.startDate
- the export's start dateendDate
- the export's end date
PortalException
- if a group with the primary key could not be
found or if some other portal exception occurred
SystemException
- if a system exception occurredpublic File exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
exportLayoutsAsFile
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutIds
- the primary keys of the layouts to be exported
(optionally null
)parameterMap
- the mapping of parameters indicating which
information to export. For information on the keys used in the
map see PortletDataHandlerKeys
.startDate
- the export's start dateendDate
- the export's end date
PortalException
- if a group or any layout with the primary key
could not be found, or if some other portal exception occurred
SystemException
- if a system exception occurredpublic byte[] exportPortletInfo(long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
exportPortletInfo
in interface LayoutLocalService
plid
- the primary key of the layoutgroupId
- the primary key of the groupportletId
- the primary key of the portletparameterMap
- the mapping of parameters indicating which
information to export. For information on the keys used in the
map see PortletDataHandlerKeys
.startDate
- the export's start dateendDate
- the export's end date
PortalException
- if a group or portlet with the primary key could
not be found, or if some other portal exception occurred
SystemException
- if a system exception occurredpublic File exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
exportPortletInfoAsFile
in interface LayoutLocalService
plid
- the primary key of the layoutgroupId
- the primary key of the groupportletId
- the primary key of the portletparameterMap
- the mapping of parameters indicating which
information to export. For information on the keys used in the
map see PortletDataHandlerKeys
.startDate
- the export's start dateendDate
- the export's end date
PortalException
- if a group or portlet with the primary key could
not be found, or if some other portal exception occurred
SystemException
- if a system exception occurredpublic Layout fetchFirstLayout(long groupId, boolean privateLayout, long parentLayoutId) throws SystemException
fetchFirstLayout
in interface LayoutLocalService
SystemException
public Layout fetchLayoutByUuidAndGroupId(String uuid, long groupId, boolean privateLayout) throws SystemException
fetchLayoutByUuidAndGroupId
in interface LayoutLocalService
uuid
- the universally unique identifier of the scope layoutgroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group
null
if a matching layout could not
be found
SystemException
- if a system exception occurredpublic long getDefaultPlid(long groupId) throws SystemException
getDefaultPlid
in interface LayoutLocalService
groupId
- the primary key of the group
LayoutConstants.DEFAULT_PLID
)
SystemException
- if a system exception occurredpublic long getDefaultPlid(long groupId, boolean privateLayout) throws SystemException
getDefaultPlid
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group
LayoutConstants.DEFAULT_PLID
) otherwise
SystemException
- if a system exception occurredpublic long getDefaultPlid(long groupId, boolean privateLayout, String portletId) throws PortalException, SystemException
getDefaultPlid
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupportletId
- the primary key of the portlet
LayoutConstants.DEFAULT_PLID
otherwise
PortalException
- if a portlet with the primary key could not be
found
SystemException
- if a system exception occurredpublic Layout getFriendlyURLLayout(long groupId, boolean privateLayout, String friendlyURL) throws PortalException, SystemException
getFriendlyURLLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupfriendlyURL
- the friendly URL of the layout
PortalException
- if the friendly URL is null
or a
matching layout could not be found
SystemException
- if a system exception occurredpublic Layout getLayout(long groupId, boolean privateLayout, long layoutId) throws PortalException, SystemException
NoSuchLayoutException
otherwise.
getLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layout
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout getLayoutByIconImageId(long iconImageId) throws PortalException, SystemException
NoSuchLayoutException
otherwise.
getLayoutByIconImageId
in interface LayoutLocalService
iconImageId
- the primary key of the icon image
PortalException
- if an icon image with the primary key could not
be found
SystemException
- if a system exception occurredpublic List<Layout> getLayouts(long groupId, boolean privateLayout) throws SystemException
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group
null
if no matches were
found
SystemException
- if a system exception occurredpublic List<Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId) throws SystemException
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the primary key of the parent layout
null
if no matches were
found
SystemException
- if a system exception occurredpublic List<Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end) throws SystemException
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 QueryUtil.ALL_POS
will return the full
result set.
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the primary key of the parent layoutincomplete
- whether the layout is incompletestart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)
null
if no matches were
found
SystemException
- if a system exception occurredpublic List<Layout> getLayouts(long groupId, boolean privateLayout, long[] layoutIds) throws PortalException, SystemException
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutIds
- the primary keys of the layouts
null
if no matches were
found
PortalException
- if a group or layout with the primary key could
not be found
SystemException
- if a system exception occurredpublic List<Layout> getLayouts(long groupId, boolean privateLayout, String type) throws SystemException
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouptype
- the type of the layouts (optionally LayoutConstants.TYPE_PORTLET
)
null
if no matches were
found
SystemException
- if a system exception occurredpublic LayoutReference[] getLayouts(long companyId, String portletId, String preferencesKey, String preferencesValue) throws SystemException
getLayouts
in interface LayoutLocalService
companyId
- the primary key of the companyportletId
- the primary key of the portletpreferencesKey
- the portlet's preference keypreferencesValue
- the portlet's preference value
SystemException
- if a system exception occurredpublic int getLayoutsByLayoutPrototypeUuidCount(String layoutPrototypeUuid) throws SystemException
getLayoutsByLayoutPrototypeUuidCount
in interface LayoutLocalService
SystemException
public int getLayoutsCount(Group group, boolean privateLayout) throws PortalException, SystemException
getLayoutsCount
in interface LayoutLocalService
PortalException
SystemException
public int getLayoutsCount(Group group, boolean privateLayout, boolean includeUserGroups) throws PortalException, SystemException
getLayoutsCount
in interface LayoutLocalService
PortalException
SystemException
public int getLayoutsCount(User user, boolean privateLayout) throws PortalException, SystemException
getLayoutsCount
in interface LayoutLocalService
PortalException
SystemException
public int getLayoutsCount(User user, boolean privateLayout, boolean includeUserGroups) throws PortalException, SystemException
getLayoutsCount
in interface LayoutLocalService
PortalException
SystemException
public long getNextLayoutId(long groupId, boolean privateLayout) throws SystemException
getNextLayoutId
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group
SystemException
- if a system exception occurredpublic List<Layout> getNullFriendlyURLLayouts() throws SystemException
null
getNullFriendlyURLLayouts
in interface LayoutLocalService
null
SystemException
- if a system exception occurredpublic List<Layout> getScopeGroupLayouts(long groupId, boolean privateLayout) throws SystemException
getScopeGroupLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group
SystemException
- if a system exception occurredpublic boolean hasLayouts(Group group, boolean privateLayout) throws PortalException, SystemException
hasLayouts
in interface LayoutLocalService
PortalException
SystemException
public boolean hasLayouts(Group group, boolean privateLayout, boolean includeUserGroups) throws PortalException, SystemException
hasLayouts
in interface LayoutLocalService
PortalException
SystemException
public boolean hasLayouts(long groupId, boolean privateLayout, long parentLayoutId) throws SystemException
true
if the group has any layouts;
false
otherwise.
hasLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the primary key of the parent layout
true
if the group has any layouts;
false
otherwise
SystemException
- if a system exception occurredpublic boolean hasLayouts(User user, boolean privateLayout) throws PortalException, SystemException
hasLayouts
in interface LayoutLocalService
PortalException
SystemException
public boolean hasLayouts(User user, boolean privateLayout, boolean includeUserGroups) throws PortalException, SystemException
hasLayouts
in interface LayoutLocalService
PortalException
SystemException
public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId, String layoutUuid) throws PortalException, SystemException
hasLayoutSetPrototypeLayout
in interface LayoutLocalService
PortalException
SystemException
public boolean hasLayoutSetPrototypeLayout(String layoutSetPrototypeUuid, String layoutUuid) throws PortalException, SystemException
hasLayoutSetPrototypeLayout
in interface LayoutLocalService
PortalException
SystemException
public void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, byte[] bytes) throws PortalException, SystemException
importLayouts
in interface LayoutLocalService
userId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparameterMap
- the mapping of parameters indicating which
information will be imported. For information on the keys used in
the map see PortletDataHandlerKeys
.bytes
- the byte array with the data
PortalException
- if a group or user with the primary key could not
be found, or if some other portal exception occurred
SystemException
- if a system exception occurredLayoutImporter
public void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file) throws PortalException, SystemException
importLayouts
in interface LayoutLocalService
userId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparameterMap
- the mapping of parameters indicating which
information will be imported. For information on the keys used in
the map see PortletDataHandlerKeys
.file
- the LAR file with the data
PortalException
- if a group or user with the primary key could not
be found, or if some other portal exception occurred
SystemException
- if a system exception occurredLayoutImporter
public void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, InputStream is) throws PortalException, SystemException
importLayouts
in interface LayoutLocalService
userId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparameterMap
- the mapping of parameters indicating which
information will be imported. For information on the keys used in
the map see PortletDataHandlerKeys
.is
- the input stream
PortalException
- if a group or user with the primary key could not
be found, or if some other portal exception occurred
SystemException
- if a system exception occurredLayoutImporter
public void importPortletInfo(long userId, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, File file) throws PortalException, SystemException
importPortletInfo
in interface LayoutLocalService
userId
- the primary key of the userplid
- the primary key of the target layoutgroupId
- the primary key of the target groupportletId
- the primary key of the portletparameterMap
- the mapping of parameters indicating which
information will be imported. For information on the keys used in
the map see PortletDataHandlerKeys
.file
- the LAR file with the data
PortalException
- if a group, layout, portlet or user with the
primary key could not be found
SystemException
- if a system exception occurredpublic void importPortletInfo(long userId, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, InputStream is) throws PortalException, SystemException
importPortletInfo
in interface LayoutLocalService
userId
- the primary key of the userplid
- the primary key of the layoutgroupId
- the primary key of the groupportletId
- the primary key of the portletparameterMap
- the mapping of parameters indicating which
information will be imported. For information on the keys used in
the map see PortletDataHandlerKeys
.is
- the input stream
PortalException
- if a group, portlet, layout or user with the
primary key could not be found
SystemException
- if a system exception occurredpublic void setLayouts(long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds, ServiceContext serviceContext) throws PortalException, SystemException
setLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the primary key of the parent layoutlayoutIds
- the primary keys of the layoutsserviceContext
- the service context
PortalException
- if a group or layout with the primary key could
not be found, if no layouts were specified, if the first layout
was not page-able, if the first layout was hidden, or if some
other portal exception occurred
SystemException
- if a system exception occurredpublic Layout updateFriendlyURL(long plid, String friendlyURL) throws PortalException, SystemException
updateFriendlyURL
in interface LayoutLocalService
plid
- the primary key of the layoutfriendlyURL
- the friendly URL to be assigned
PortalException
- if a group or layout with the primary key could
not be found
SystemException
- if a system exception occurredpublic Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, Map<Locale,String> nameMap, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, Map<Locale,String> keywordsMap, Map<Locale,String> robotsMap, String type, boolean hidden, String friendlyURL, Boolean iconImage, byte[] iconBytes, ServiceContext serviceContext) throws PortalException, SystemException
updateLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutparentLayoutId
- the primary key of the layout's new parent layoutnameMap
- the locales and localized names to merge (optionally
null
)titleMap
- the locales and localized titles to merge (optionally
null
)descriptionMap
- the locales and localized descriptions to merge
(optionally null
)keywordsMap
- the locales and localized keywords to merge
(optionally null
)robotsMap
- the locales and localized robots to merge (optionally
null
)type
- the layout's new type (optionally LayoutConstants.TYPE_PORTLET
)hidden
- whether the layout is hiddenfriendlyURL
- the layout's new friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
or PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
).
The default values can be overridden in
portal-ext.properties
by specifying new values for
the corresponding properties defined in PropsValues
. To see how the URL is
normalized when accessed see FriendlyURLNormalizerUtil.normalize(
String)
.iconImage
- whether the icon image will be updatediconBytes
- the byte array of the layout's new icon imageserviceContext
- the service context. Can set the modification date
and expando bridge attributes for the layout. For layouts that
are linked to a layout prototype, attributes named
'layoutPrototypeUuid' and 'layoutPrototypeLinkedEnabled' can be
specified to provide the unique identifier of the source
prototype and a boolean to determined whether a link to it should
be enabled to activate propagation of changes made to the linked
page in the prototype.
PortalException
- if a group or layout with the primary key could
not be found, if a unique friendly URL could not be generated, if
a valid parent layout ID to use could not be found, or if the
layout parameters were invalid
SystemException
- if a system exception occurredpublic Layout updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings) throws PortalException, SystemException
updateLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layouttypeSettings
- the settings to load the unicode properties object.
See #fastLoad(String)
.
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updateLookAndFeel(long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css, boolean wapTheme) throws PortalException, SystemException
updateLookAndFeel
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutthemeId
- the primary key of the layout's new themecolorSchemeId
- the primary key of the layout's new color schemecss
- the layout's new CSSwapTheme
- whether the theme is for WAP browsers
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updateName(Layout layout, String name, String languageId) throws PortalException, SystemException
updateName
in interface LayoutLocalService
layout
- the layout to be updatedname
- the layout's new namelanguageId
- the primary key of the language. For more information
see Locale
.
PortalException
- if the new name was null
SystemException
- if a system exception occurredpublic Layout updateName(long groupId, boolean privateLayout, long layoutId, String name, String languageId) throws PortalException, SystemException
updateName
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutname
- the layout's new namelanguageId
- the primary key of the language. For more information
see Locale
.
PortalException
- if a matching layout could not be found or if the
new name was null
SystemException
- if a system exception occurredpublic Layout updateName(long plid, String name, String languageId) throws PortalException, SystemException
updateName
in interface LayoutLocalService
plid
- the primary key of the layoutname
- the name to be assignedlanguageId
- the primary key of the language. For more information
see Locale
.
PortalException
- if a layout with the primary key could not be
found or if the name was null
SystemException
- if a system exception occurredpublic Layout updateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId) throws PortalException, SystemException
updateParentLayoutId
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutparentLayoutId
- the primary key to be assigned to the parent
layout
PortalException
- if a valid parent layout ID to use could not be
found or if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updateParentLayoutId(long plid, long parentPlid) throws PortalException, SystemException
LayoutConstants.DEFAULT_PARENT_LAYOUT_ID
is
assigned.
updateParentLayoutId
in interface LayoutLocalService
plid
- the primary key of the layoutparentPlid
- the primary key of the parent layout
PortalException
- if a layout with the primary key could not be
found or if a valid parent layout ID to use could not be found
SystemException
- if a system exception occurredpublic void updatePriorities(long groupId, boolean privateLayout) throws PortalException, SystemException
updatePriorities
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updatePriority(Layout layout, int priority) throws SystemException
updatePriority
in interface LayoutLocalService
layout
- the layout to be updatedpriority
- the layout's new priority
SystemException
- if a system exception occurredpublic Layout updatePriority(long groupId, boolean privateLayout, long layoutId, int priority) throws PortalException, SystemException
updatePriority
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutpriority
- the layout's new priority
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updatePriority(long plid, int priority) throws PortalException, SystemException
updatePriority
in interface LayoutLocalService
plid
- the primary key of the layoutpriority
- the layout's new priority
PortalException
- if a layout with the primary key could not be
found
SystemException
- if a system exception occurredpublic void updateScopedPortletNames(long groupId, boolean privateLayout, long layoutId, Map<Locale,String> nameMap, List<Locale> nameMapModifiedLocales) throws PortalException, SystemException
updateScopedPortletNames
in interface LayoutLocalService
PortalException
SystemException
public void updateScopedPortletNames(long groupId, boolean privateLayout, long layoutId, String name, String languageId) throws PortalException, SystemException
updateScopedPortletNames
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layout whose universally
unique identifier to matchname
- the new name for the portletslanguageId
- the primary key of the language
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredEditScopeAction
public LayoutLocalService getWrappedLayoutLocalService()
getWrappedService()
public void setWrappedLayoutLocalService(LayoutLocalService layoutLocalService)
setWrappedService(com.liferay.portal.service.LayoutLocalService)
public LayoutLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<LayoutLocalService>
public void setWrappedService(LayoutLocalService layoutLocalService)
setWrappedService
in interface ServiceWrapper<LayoutLocalService>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |