|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portlet.sites.util.SitesImpl
public class SitesImpl
Field Summary | |
---|---|
static boolean |
LAYOUT_SET_PROTOTYPE_PROPAGATE_LOGO
|
Fields inherited from interface com.liferay.portlet.sites.util.Sites |
---|
ANALYTICS_PREFIX, CONTENT_SHARING_WITH_CHILDREN_DEFAULT_VALUE, CONTENT_SHARING_WITH_CHILDREN_DISABLED, CONTENT_SHARING_WITH_CHILDREN_DISABLED_BY_DEFAULT, CONTENT_SHARING_WITH_CHILDREN_ENABLED, CONTENT_SHARING_WITH_CHILDREN_ENABLED_BY_DEFAULT, LAST_MERGE_TIME, LAST_RESET_TIME, LAYOUT_UPDATEABLE, MERGE_FAIL_COUNT, MERGE_FAIL_FRIENDLY_URL_LAYOUTS |
Constructor Summary | |
---|---|
SitesImpl()
|
Method Summary | |
---|---|
void |
addMergeFailFriendlyURLLayout(Layout layout)
|
void |
addPortletBreadcrumbEntries(Group group,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
void |
addPortletBreadcrumbEntries(Group group,
String pagesName,
PortletURL redirectURL,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
|
void |
applyLayoutPrototype(LayoutPrototype layoutPrototype,
Layout targetLayout,
boolean linkEnabled)
|
protected void |
checkResetPrototypePermissions(Group group,
Layout layout)
Checks the permissions necessary for resetting the layout or site. |
void |
copyLayout(long userId,
Layout sourceLayout,
Layout targetLayout,
ServiceContext serviceContext)
|
void |
copyLookAndFeel(Layout targetLayout,
Layout sourceLayout)
|
void |
copyPortletPermissions(Layout targetLayout,
Layout sourceLayout)
|
void |
copyPortletSetups(Layout sourceLayout,
Layout targetLayout)
|
void |
copyTypeSettings(Group sourceGroup,
Group targetGroup)
|
Object[] |
deleteLayout(ActionRequest actionRequest,
ActionResponse actionResponse)
|
Object[] |
deleteLayout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
deleteLayout(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doMergeLayoutPrototypeLayout(Group group,
Layout layout)
|
protected void |
doResetPrototype(Layout layout)
Resets the modified timestamp on the layout, and then calls doResetPrototype(LayoutSet) to reset the modified timestamp on the
layout's site. |
protected void |
doResetPrototype(LayoutSet layoutSet)
Resets the modified timestamp on the layout set. |
File |
exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
ServiceContext serviceContext)
|
Long[] |
filterGroups(List<Group> groups,
String[] names)
|
Layout |
getLayoutSetPrototypeLayout(Layout layout)
|
Map<String,String[]> |
getLayoutSetPrototypeParameters(ServiceContext serviceContext)
|
protected Map<String,String[]> |
getLayoutSetPrototypesParameters(boolean importData)
|
int |
getMergeFailCount(LayoutPrototype layoutPrototype)
Returns the number of failed merge attempts for the layout prototype since its last reset or update. |
int |
getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
Returns the number of failed merge attempts for the layout set prototype since its last reset or update. |
List<Layout> |
getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
|
void |
importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
InputStream inputStream,
ServiceContext serviceContext)
|
protected void |
importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
boolean importData)
|
boolean |
isContentSharingWithChildrenEnabled(Group group)
|
boolean |
isFirstLayout(long groupId,
boolean privateLayout,
long layoutId)
|
boolean |
isLayoutDeleteable(Layout layout)
|
boolean |
isLayoutModifiedSinceLastMerge(Layout layout)
|
boolean |
isLayoutSetMergeable(Group group,
LayoutSet layoutSet)
Returns true if the linked site template can be merged into
the layout set. |
boolean |
isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
|
boolean |
isLayoutSortable(Layout layout)
|
boolean |
isLayoutUpdateable(Layout layout)
|
boolean |
isOrganizationUser(long companyId,
Group group,
User user,
List<String> organizationNames)
|
boolean |
isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
|
boolean |
isUserGroupUser(long companyId,
Group group,
User user,
List<String> userGroupNames)
|
void |
mergeLayoutPrototypeLayout(Group group,
Layout layout)
|
void |
mergeLayoutProtypeLayout(Group group,
Layout layout)
Deprecated. As of 6.2.0, replaced by mergeLayoutPrototypeLayout(Group, Layout) |
void |
mergeLayoutSetPrototypeLayouts(Group group,
LayoutSet layoutSet)
|
void |
mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
Deprecated. As of 6.2.0, replaced by mergeLayoutSetPrototypeLayouts(Group, LayoutSet) |
void |
removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
|
void |
resetPrototype(Layout layout)
Checks the permissions necessary for resetting the layout. |
void |
resetPrototype(LayoutSet layoutSet)
Checks the permissions necessary for resetting the layout set. |
protected void |
setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
LayoutSet targetLayoutSet,
ServiceContext serviceContext)
|
void |
setMergeFailCount(LayoutPrototype layoutPrototype,
int newMergeFailCount)
Sets the number of failed merge attempts for the layout prototype to a new value. |
void |
setMergeFailCount(LayoutSetPrototype layoutSetPrototype,
int newMergeFailCount)
Sets the number of failed merge attempts for the layout set prototype to a new value. |
void |
updateLayoutScopes(long userId,
Layout sourceLayout,
Layout targetLayout,
PortletPreferences sourcePreferences,
PortletPreferences targetPreferences,
String sourcePortletId,
String languageId)
|
protected void |
updateLayoutSetPrototypeLink(long groupId,
boolean privateLayout,
long layoutSetPrototypeId,
boolean layoutSetPrototypeLinkEnabled)
|
void |
updateLayoutSetPrototypesLinks(Group group,
long publicLayoutSetPrototypeId,
long privateLayoutSetPrototypeId,
boolean publicLayoutSetPrototypeLinkEnabled,
boolean privateLayoutSetPrototypeLinkEnabled)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean LAYOUT_SET_PROTOTYPE_PROPAGATE_LOGO
Constructor Detail |
---|
public SitesImpl()
Method Detail |
---|
public void addMergeFailFriendlyURLLayout(Layout layout) throws PortalException, SystemException
addMergeFailFriendlyURLLayout
in interface Sites
PortalException
SystemException
public void addPortletBreadcrumbEntries(Group group, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse) throws Exception
addPortletBreadcrumbEntries
in interface Sites
Exception
public void addPortletBreadcrumbEntries(Group group, String pagesName, PortletURL redirectURL, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse) throws Exception
addPortletBreadcrumbEntries
in interface Sites
Exception
public void applyLayoutPrototype(LayoutPrototype layoutPrototype, Layout targetLayout, boolean linkEnabled) throws Exception
applyLayoutPrototype
in interface Sites
Exception
public void copyLayout(long userId, Layout sourceLayout, Layout targetLayout, ServiceContext serviceContext) throws Exception
copyLayout
in interface Sites
Exception
public void copyLookAndFeel(Layout targetLayout, Layout sourceLayout) throws Exception
copyLookAndFeel
in interface Sites
Exception
public void copyPortletPermissions(Layout targetLayout, Layout sourceLayout) throws Exception
copyPortletPermissions
in interface Sites
Exception
public void copyPortletSetups(Layout sourceLayout, Layout targetLayout) throws Exception
copyPortletSetups
in interface Sites
Exception
public void copyTypeSettings(Group sourceGroup, Group targetGroup) throws Exception
copyTypeSettings
in interface Sites
Exception
public Object[] deleteLayout(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception
deleteLayout
in interface Sites
Exception
public Object[] deleteLayout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
deleteLayout
in interface Sites
Exception
public void deleteLayout(RenderRequest renderRequest, RenderResponse renderResponse) throws Exception
deleteLayout
in interface Sites
Exception
public File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, ServiceContext serviceContext) throws PortalException, SystemException
exportLayoutSetPrototype
in interface Sites
PortalException
SystemException
public Long[] filterGroups(List<Group> groups, String[] names)
filterGroups
in interface Sites
public Layout getLayoutSetPrototypeLayout(Layout layout)
getLayoutSetPrototypeLayout
in interface Sites
public Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
getLayoutSetPrototypeParameters
in interface Sites
public int getMergeFailCount(LayoutPrototype layoutPrototype) throws PortalException, SystemException
getMergeFailCount
in interface Sites
layoutPrototype
- the page template being checked for failed merge
attempts
PortalException
- if no page was associated with the layout
prototype or if a portal exception occurred
SystemException
- if a system exception occurredpublic int getMergeFailCount(LayoutSetPrototype layoutSetPrototype) throws PortalException, SystemException
getMergeFailCount
in interface Sites
layoutSetPrototype
- the site template being checked for failed
merge attempts
PortalException
- if no site was associated with the layout set
prototype or if a portal exception occurred
SystemException
- if a system exception occurredpublic List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet) throws PortalException, SystemException
getMergeFailFriendlyURLLayouts
in interface Sites
PortalException
SystemException
public void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, InputStream inputStream, ServiceContext serviceContext) throws PortalException, SystemException
importLayoutSetPrototype
in interface Sites
PortalException
SystemException
public boolean isContentSharingWithChildrenEnabled(Group group) throws SystemException
isContentSharingWithChildrenEnabled
in interface Sites
SystemException
public boolean isFirstLayout(long groupId, boolean privateLayout, long layoutId) throws SystemException
isFirstLayout
in interface Sites
SystemException
public boolean isLayoutDeleteable(Layout layout)
isLayoutDeleteable
in interface Sites
public boolean isLayoutModifiedSinceLastMerge(Layout layout)
isLayoutModifiedSinceLastMerge
in interface Sites
public boolean isLayoutSetMergeable(Group group, LayoutSet layoutSet) throws PortalException, SystemException
true
if the linked site template can be merged into
the layout set. This method checks the current number of merge fail
attempts stored for the linked site template and, if greater than the
merge fail threshold, will return false
.
isLayoutSetMergeable
in interface Sites
group
- the site template's group, which is about to be merged into
the layout setlayoutSet
- the site in which the site template is attempting to
merge into
true
if the linked site template can be merged into
the layout set; false
otherwise
PortalException
- if no site template was associated with the
layout set or if a portal exception occurred
SystemException
- if a system exception occurredpublic boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
isLayoutSetPrototypeUpdateable
in interface Sites
public boolean isLayoutSortable(Layout layout)
isLayoutSortable
in interface Sites
public boolean isLayoutUpdateable(Layout layout)
isLayoutUpdateable
in interface Sites
public boolean isOrganizationUser(long companyId, Group group, User user, List<String> organizationNames) throws Exception
isOrganizationUser
in interface Sites
Exception
public boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker, Group userGroupGroup) throws PortalException, SystemException
isUserGroupLayoutSetViewable
in interface Sites
PortalException
SystemException
public boolean isUserGroupUser(long companyId, Group group, User user, List<String> userGroupNames) throws Exception
isUserGroupUser
in interface Sites
Exception
public void mergeLayoutPrototypeLayout(Group group, Layout layout) throws Exception
mergeLayoutPrototypeLayout
in interface Sites
Exception
public void mergeLayoutProtypeLayout(Group group, Layout layout) throws Exception
mergeLayoutPrototypeLayout(Group, Layout)
mergeLayoutProtypeLayout
in interface Sites
Exception
public void mergeLayoutSetPrototypeLayouts(Group group, LayoutSet layoutSet) throws Exception
mergeLayoutSetPrototypeLayouts
in interface Sites
Exception
public void mergeLayoutSetProtypeLayouts(Group group, LayoutSet layoutSet) throws Exception
mergeLayoutSetPrototypeLayouts(Group, LayoutSet)
mergeLayoutSetProtypeLayouts
in interface Sites
Exception
public void removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet) throws SystemException
removeMergeFailFriendlyURLLayouts
in interface Sites
SystemException
public void resetPrototype(Layout layout) throws PortalException, SystemException
doResetPrototype(Layout)
.
resetPrototype
in interface Sites
layout
- the page being checked for sufficient permissions
PortalException
- if no site was associated with the layout, if the
user did not have permission to update the layout or the layout's
site, or if a portal exception occurred
SystemException
- if a system exception occurredpublic void resetPrototype(LayoutSet layoutSet) throws PortalException, SystemException
doResetPrototype(LayoutSet)
.
resetPrototype
in interface Sites
layoutSet
- the site being checked for sufficient permissions
PortalException
- if the user did not have permission to update the
site or if a portal exception occurred
SystemException
- if a system exception occurredpublic void setMergeFailCount(LayoutPrototype layoutPrototype, int newMergeFailCount) throws PortalException, SystemException
setMergeFailCount
in interface Sites
layoutPrototype
- the page template of the counter being updatednewMergeFailCount
- the new value of the counter
PortalException
- if no page was associated with the layout
prototype, if the user did not have permission to update the
page, or if a portal exception occurred
SystemException
- if a system exception occurredpublic void setMergeFailCount(LayoutSetPrototype layoutSetPrototype, int newMergeFailCount) throws PortalException, SystemException
setMergeFailCount
in interface Sites
layoutSetPrototype
- the site template of the counter being updatednewMergeFailCount
- the new value of the counter
PortalException
- if no site was associated with the layout set
prototype, if the user did not have permission to update the
layout set prototype, or if a portal exception occurred
SystemException
- if a system exception occurredpublic void updateLayoutScopes(long userId, Layout sourceLayout, Layout targetLayout, PortletPreferences sourcePreferences, PortletPreferences targetPreferences, String sourcePortletId, String languageId) throws Exception
updateLayoutScopes
in interface Sites
Exception
public void updateLayoutSetPrototypesLinks(Group group, long publicLayoutSetPrototypeId, long privateLayoutSetPrototypeId, boolean publicLayoutSetPrototypeLinkEnabled, boolean privateLayoutSetPrototypeLinkEnabled) throws Exception
updateLayoutSetPrototypesLinks
in interface Sites
Exception
protected void checkResetPrototypePermissions(Group group, Layout layout) throws PortalException, SystemException
PortalException
is thrown.
group
- the site being checked for sufficient permissionslayout
- the page being checked for sufficient permissions
(optionally null
). If null
, the
permissions are only checked for resetting the site.
PortalException
- if the user did not have permission to update the
layout or site, or if a portal exception occurred
SystemException
- if a system exception occurredprotected void doMergeLayoutPrototypeLayout(Group group, Layout layout) throws Exception
Exception
protected void doResetPrototype(Layout layout) throws PortalException, SystemException
doResetPrototype(LayoutSet)
to reset the modified timestamp on the
layout's site.
After the timestamps are reset, the modified page template and site template are merged into their linked layout and site when they are first accessed.
layout
- the page having its timestamp reset
PortalException
- if no site was associated with the layout or if a
portal exception occurred
SystemException
- if a system exception occurredprotected void doResetPrototype(LayoutSet layoutSet) throws SystemException
After the timestamp is reset, the modified site template is merged into its linked layout set when it is first accessed.
layoutSet
- the site having its timestamp reset
SystemException
- if a system exception occurredprotected Map<String,String[]> getLayoutSetPrototypesParameters(boolean importData)
protected void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, boolean importData) throws PortalException, SystemException
PortalException
SystemException
protected void setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap, LayoutSet targetLayoutSet, ServiceContext serviceContext)
protected void updateLayoutSetPrototypeLink(long groupId, boolean privateLayout, long layoutSetPrototypeId, boolean layoutSetPrototypeLinkEnabled) throws Exception
Exception
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |