|
Liferay 7.0-ce-b4 | |||||||||
| 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 |
|---|
| Fields inherited from interface com.liferay.sites.kernel.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[] groupKeys)
|
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)
|
List<String> |
getOrganizationNames(Group group,
User user)
|
List<String> |
getUserGroupNames(Group group,
User user)
|
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 |
isUserGroupLayout(Layout layout)
|
boolean |
isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
|
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 |
| Constructor Detail |
|---|
public SitesImpl()
| Method Detail |
|---|
public void addMergeFailFriendlyURLLayout(Layout layout)
throws PortalException
addMergeFailFriendlyURLLayout in interface SitesPortalException
public void addPortletBreadcrumbEntries(Group group,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
addPortletBreadcrumbEntries in interface SitesException
public void addPortletBreadcrumbEntries(Group group,
String pagesName,
PortletURL redirectURL,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
addPortletBreadcrumbEntries in interface SitesException
public void applyLayoutPrototype(LayoutPrototype layoutPrototype,
Layout targetLayout,
boolean linkEnabled)
throws Exception
applyLayoutPrototype in interface SitesException
public void copyLayout(long userId,
Layout sourceLayout,
Layout targetLayout,
ServiceContext serviceContext)
throws Exception
copyLayout in interface SitesException
public void copyLookAndFeel(Layout targetLayout,
Layout sourceLayout)
throws Exception
copyLookAndFeel in interface SitesException
public void copyPortletPermissions(Layout targetLayout,
Layout sourceLayout)
throws Exception
copyPortletPermissions in interface SitesException
public void copyPortletSetups(Layout sourceLayout,
Layout targetLayout)
throws Exception
copyPortletSetups in interface SitesException
public void copyTypeSettings(Group sourceGroup,
Group targetGroup)
throws Exception
copyTypeSettings in interface SitesException
public Object[] deleteLayout(ActionRequest actionRequest,
ActionResponse actionResponse)
throws Exception
deleteLayout in interface SitesException
public Object[] deleteLayout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
deleteLayout in interface SitesException
public void deleteLayout(RenderRequest renderRequest,
RenderResponse renderResponse)
throws Exception
deleteLayout in interface SitesException
public File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
ServiceContext serviceContext)
throws PortalException
exportLayoutSetPrototype in interface SitesPortalException
public Long[] filterGroups(List<Group> groups,
String[] groupKeys)
filterGroups in interface Sitespublic Layout getLayoutSetPrototypeLayout(Layout layout)
getLayoutSetPrototypeLayout in interface Sitespublic Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
getLayoutSetPrototypeParameters in interface Sites
public int getMergeFailCount(LayoutPrototype layoutPrototype)
throws PortalException
getMergeFailCount in interface SiteslayoutPrototype - the page template being checked for failed merge
attempts
PortalException
public int getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
throws PortalException
getMergeFailCount in interface SiteslayoutSetPrototype - the site template being checked for failed
merge attempts
PortalException
public List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
throws PortalException
getMergeFailFriendlyURLLayouts in interface SitesPortalException
public List<String> getOrganizationNames(Group group,
User user)
throws Exception
getOrganizationNames in interface SitesException
public List<String> getUserGroupNames(Group group,
User user)
throws Exception
getUserGroupNames in interface SitesException
public void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
InputStream inputStream,
ServiceContext serviceContext)
throws PortalException
importLayoutSetPrototype in interface SitesPortalExceptionpublic boolean isContentSharingWithChildrenEnabled(Group group)
isContentSharingWithChildrenEnabled in interface Sites
public boolean isFirstLayout(long groupId,
boolean privateLayout,
long layoutId)
isFirstLayout in interface Sitespublic boolean isLayoutDeleteable(Layout layout)
isLayoutDeleteable in interface Sitespublic boolean isLayoutModifiedSinceLastMerge(Layout layout)
isLayoutModifiedSinceLastMerge in interface Sites
public boolean isLayoutSetMergeable(Group group,
LayoutSet layoutSet)
throws PortalException
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 Sitesgroup - 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
PortalExceptionpublic boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
isLayoutSetPrototypeUpdateable in interface Sitespublic boolean isLayoutSortable(Layout layout)
isLayoutSortable in interface Sitespublic boolean isLayoutUpdateable(Layout layout)
isLayoutUpdateable in interface Sites
public boolean isUserGroupLayout(Layout layout)
throws PortalException
isUserGroupLayout in interface SitesPortalException
public boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
throws PortalException
isUserGroupLayoutSetViewable in interface SitesPortalException
public void mergeLayoutPrototypeLayout(Group group,
Layout layout)
throws Exception
mergeLayoutPrototypeLayout in interface SitesException
@Deprecated
public void mergeLayoutProtypeLayout(Group group,
Layout layout)
throws Exception
mergeLayoutPrototypeLayout(Group, Layout)
mergeLayoutProtypeLayout in interface SitesException
public void mergeLayoutSetPrototypeLayouts(Group group,
LayoutSet layoutSet)
throws Exception
mergeLayoutSetPrototypeLayouts in interface SitesException
@Deprecated
public void mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
throws Exception
mergeLayoutSetPrototypeLayouts(Group, LayoutSet)
mergeLayoutSetProtypeLayouts in interface SitesExceptionpublic void removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
removeMergeFailFriendlyURLLayouts in interface Sites
public void resetPrototype(Layout layout)
throws PortalException
doResetPrototype(Layout).
resetPrototype in interface Siteslayout - the page being checked for sufficient permissions
PortalException
public void resetPrototype(LayoutSet layoutSet)
throws PortalException
doResetPrototype(LayoutSet).
resetPrototype in interface SiteslayoutSet - the site being checked for sufficient permissions
PortalException
public void setMergeFailCount(LayoutPrototype layoutPrototype,
int newMergeFailCount)
throws PortalException
setMergeFailCount in interface SiteslayoutPrototype - the page template of the counter being updatednewMergeFailCount - the new value of the counter
PortalException
public void setMergeFailCount(LayoutSetPrototype layoutSetPrototype,
int newMergeFailCount)
throws PortalException
setMergeFailCount in interface SiteslayoutSetPrototype - the site template of the counter being updatednewMergeFailCount - the new value of the counter
PortalException
public void updateLayoutScopes(long userId,
Layout sourceLayout,
Layout targetLayout,
PortletPreferences sourcePreferences,
PortletPreferences targetPreferences,
String sourcePortletId,
String languageId)
throws Exception
updateLayoutScopes in interface SitesException
public void updateLayoutSetPrototypesLinks(Group group,
long publicLayoutSetPrototypeId,
long privateLayoutSetPrototypeId,
boolean publicLayoutSetPrototypeLinkEnabled,
boolean privateLayoutSetPrototypeLinkEnabled)
throws Exception
updateLayoutSetPrototypesLinks in interface SitesException
protected void checkResetPrototypePermissions(Group group,
Layout layout)
throws PortalException
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
protected void doMergeLayoutPrototypeLayout(Group group,
Layout layout)
throws Exception
Exception
protected void doResetPrototype(Layout layout)
throws PortalException
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
PortalExceptionprotected void doResetPrototype(LayoutSet layoutSet)
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 resetprotected Map<String,String[]> getLayoutSetPrototypesParameters(boolean importData)
protected void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
boolean importData)
throws PortalException
PortalException
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 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||