com.liferay.portlet.sites.util
Class SitesImpl
java.lang.Object
com.liferay.portlet.sites.util.SitesImpl
- All Implemented Interfaces:
- Sites
public class SitesImpl
- extends Object
- implements Sites
|
Method Summary |
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)
|
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)
|
protected void |
doResetPrototype(LayoutSet layoutSet)
|
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)
|
int |
getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
|
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 |
isLayoutDeleteable(Layout layout)
|
boolean |
isLayoutModifiedSinceLastMerge(Layout layout)
|
boolean |
isLayoutSetMergeable(Group group,
LayoutSet layoutSet)
|
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 |
resetPrototype(Layout layout)
|
void |
resetPrototype(LayoutSet layoutSet)
|
protected void |
setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
LayoutSet targetLayoutSet,
ServiceContext serviceContext)
|
void |
setMergeFailCount(LayoutPrototype layoutPrototype,
int newMergeFailCount)
|
void |
setMergeFailCount(LayoutSetPrototype layoutSetPrototype,
int newMergeFailCount)
|
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 |
SitesImpl
public SitesImpl()
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(Group group,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries in interface Sites
- Throws:
Exception
addPortletBreadcrumbEntries
public void addPortletBreadcrumbEntries(Group group,
String pagesName,
PortletURL redirectURL,
javax.servlet.http.HttpServletRequest request,
RenderResponse renderResponse)
throws Exception
- Specified by:
addPortletBreadcrumbEntries in interface Sites
- Throws:
Exception
applyLayoutPrototype
public void applyLayoutPrototype(LayoutPrototype layoutPrototype,
Layout targetLayout,
boolean linkEnabled)
throws Exception
- Specified by:
applyLayoutPrototype in interface Sites
- Throws:
Exception
copyLayout
public void copyLayout(long userId,
Layout sourceLayout,
Layout targetLayout,
ServiceContext serviceContext)
throws Exception
- Specified by:
copyLayout in interface Sites
- Throws:
Exception
copyLookAndFeel
public void copyLookAndFeel(Layout targetLayout,
Layout sourceLayout)
throws Exception
- Specified by:
copyLookAndFeel in interface Sites
- Throws:
Exception
copyPortletPermissions
public void copyPortletPermissions(Layout targetLayout,
Layout sourceLayout)
throws Exception
- Specified by:
copyPortletPermissions in interface Sites
- Throws:
Exception
copyPortletSetups
public void copyPortletSetups(Layout sourceLayout,
Layout targetLayout)
throws Exception
- Specified by:
copyPortletSetups in interface Sites
- Throws:
Exception
copyTypeSettings
public void copyTypeSettings(Group sourceGroup,
Group targetGroup)
throws Exception
- Specified by:
copyTypeSettings in interface Sites
- Throws:
Exception
deleteLayout
public Object[] deleteLayout(ActionRequest actionRequest,
ActionResponse actionResponse)
throws Exception
- Specified by:
deleteLayout in interface Sites
- Throws:
Exception
deleteLayout
public Object[] deleteLayout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Specified by:
deleteLayout in interface Sites
- Throws:
Exception
deleteLayout
public void deleteLayout(RenderRequest renderRequest,
RenderResponse renderResponse)
throws Exception
- Specified by:
deleteLayout in interface Sites
- Throws:
Exception
exportLayoutSetPrototype
public File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
exportLayoutSetPrototype in interface Sites
- Throws:
PortalException
SystemException
filterGroups
public Long[] filterGroups(List<Group> groups,
String[] names)
- Specified by:
filterGroups in interface Sites
getLayoutSetPrototypeLayout
public Layout getLayoutSetPrototypeLayout(Layout layout)
- Specified by:
getLayoutSetPrototypeLayout in interface Sites
getLayoutSetPrototypeParameters
public Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
- Specified by:
getLayoutSetPrototypeParameters in interface Sites
getMergeFailCount
public int getMergeFailCount(LayoutPrototype layoutPrototype)
throws PortalException,
SystemException
- Specified by:
getMergeFailCount in interface Sites
- Throws:
PortalException
SystemException
getMergeFailCount
public int getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
throws PortalException,
SystemException
- Specified by:
getMergeFailCount in interface Sites
- Throws:
PortalException
SystemException
importLayoutSetPrototype
public void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
InputStream inputStream,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
importLayoutSetPrototype in interface Sites
- Throws:
PortalException
SystemException
isContentSharingWithChildrenEnabled
public boolean isContentSharingWithChildrenEnabled(Group group)
throws SystemException
- Specified by:
isContentSharingWithChildrenEnabled in interface Sites
- Throws:
SystemException
isLayoutDeleteable
public boolean isLayoutDeleteable(Layout layout)
- Specified by:
isLayoutDeleteable in interface Sites
isLayoutModifiedSinceLastMerge
public boolean isLayoutModifiedSinceLastMerge(Layout layout)
- Specified by:
isLayoutModifiedSinceLastMerge in interface Sites
isLayoutSetMergeable
public boolean isLayoutSetMergeable(Group group,
LayoutSet layoutSet)
throws PortalException,
SystemException
- Specified by:
isLayoutSetMergeable in interface Sites
- Throws:
PortalException
SystemException
isLayoutSetPrototypeUpdateable
public boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
- Specified by:
isLayoutSetPrototypeUpdateable in interface Sites
isLayoutSortable
public boolean isLayoutSortable(Layout layout)
- Specified by:
isLayoutSortable in interface Sites
isLayoutUpdateable
public boolean isLayoutUpdateable(Layout layout)
- Specified by:
isLayoutUpdateable in interface Sites
isOrganizationUser
public boolean isOrganizationUser(long companyId,
Group group,
User user,
List<String> organizationNames)
throws Exception
- Specified by:
isOrganizationUser in interface Sites
- Throws:
Exception
isUserGroupLayoutSetViewable
public boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
throws PortalException,
SystemException
- Specified by:
isUserGroupLayoutSetViewable in interface Sites
- Throws:
PortalException
SystemException
isUserGroupUser
public boolean isUserGroupUser(long companyId,
Group group,
User user,
List<String> userGroupNames)
throws Exception
- Specified by:
isUserGroupUser in interface Sites
- Throws:
Exception
mergeLayoutPrototypeLayout
public void mergeLayoutPrototypeLayout(Group group,
Layout layout)
throws Exception
- Specified by:
mergeLayoutPrototypeLayout in interface Sites
- Throws:
Exception
mergeLayoutProtypeLayout
public void mergeLayoutProtypeLayout(Group group,
Layout layout)
throws Exception
- Deprecated. As of 6.2.0, replaced by
mergeLayoutPrototypeLayout(Group, Layout)
- Specified by:
mergeLayoutProtypeLayout in interface Sites
- Throws:
Exception
mergeLayoutSetPrototypeLayouts
public void mergeLayoutSetPrototypeLayouts(Group group,
LayoutSet layoutSet)
throws Exception
- Specified by:
mergeLayoutSetPrototypeLayouts in interface Sites
- Throws:
Exception
mergeLayoutSetProtypeLayouts
public void mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
throws Exception
- Deprecated. As of 6.2.0, replaced by
mergeLayoutSetPrototypeLayouts(Group, LayoutSet)
- Specified by:
mergeLayoutSetProtypeLayouts in interface Sites
- Throws:
Exception
resetPrototype
public void resetPrototype(Layout layout)
throws PortalException,
SystemException
- Specified by:
resetPrototype in interface Sites
- Throws:
PortalException
SystemException
resetPrototype
public void resetPrototype(LayoutSet layoutSet)
throws PortalException,
SystemException
- Specified by:
resetPrototype in interface Sites
- Throws:
PortalException
SystemException
setMergeFailCount
public void setMergeFailCount(LayoutPrototype layoutPrototype,
int newMergeFailCount)
throws PortalException,
SystemException
- Specified by:
setMergeFailCount in interface Sites
- Throws:
PortalException
SystemException
setMergeFailCount
public void setMergeFailCount(LayoutSetPrototype layoutSetPrototype,
int newMergeFailCount)
throws PortalException,
SystemException
- Specified by:
setMergeFailCount in interface Sites
- Throws:
PortalException
SystemException
updateLayoutScopes
public void updateLayoutScopes(long userId,
Layout sourceLayout,
Layout targetLayout,
PortletPreferences sourcePreferences,
PortletPreferences targetPreferences,
String sourcePortletId,
String languageId)
throws Exception
- Specified by:
updateLayoutScopes in interface Sites
- Throws:
Exception
updateLayoutSetPrototypesLinks
public void updateLayoutSetPrototypesLinks(Group group,
long publicLayoutSetPrototypeId,
long privateLayoutSetPrototypeId,
boolean publicLayoutSetPrototypeLinkEnabled,
boolean privateLayoutSetPrototypeLinkEnabled)
throws Exception
- Specified by:
updateLayoutSetPrototypesLinks in interface Sites
- Throws:
Exception
checkResetPrototypePermissions
protected void checkResetPrototypePermissions(Group group,
Layout layout)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
doMergeLayoutPrototypeLayout
protected void doMergeLayoutPrototypeLayout(Group group,
Layout layout)
throws Exception
- Throws:
Exception
doResetPrototype
protected void doResetPrototype(Layout layout)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
doResetPrototype
protected void doResetPrototype(LayoutSet layoutSet)
throws SystemException
- Throws:
SystemException
getLayoutSetPrototypesParameters
protected Map<String,String[]> getLayoutSetPrototypesParameters(boolean importData)
importLayoutSetPrototype
protected void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
boolean importData)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setLayoutSetPrototypeLinkEnabledParameter
protected void setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
LayoutSet targetLayoutSet,
ServiceContext serviceContext)
updateLayoutSetPrototypeLink
protected void updateLayoutSetPrototypeLink(long groupId,
boolean privateLayout,
long layoutSetPrototypeId,
boolean layoutSetPrototypeLinkEnabled)
throws Exception
- Throws:
Exception