Class DefaultLayoutTypeAccessPolicyImpl
Object
com.liferay.portal.kernel.model.impl.DefaultLayoutTypeAccessPolicyImpl
- All Implemented Interfaces:
LayoutTypeAccessPolicy
,Serializable
- Author:
- Adolfo Pérez
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAccessAllowedToPortlet
(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet) static LayoutTypeAccessPolicy
create()
protected boolean
hasAccessPermission
(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet) protected boolean
isAccessAllowedToLayoutPortlet
(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet) protected boolean
isAccessGrantedByPortletAuthenticationToken
(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet) protected boolean
isAccessGrantedByPortletOnPage
(Layout layout, Portlet portlet) protected boolean
isAccessGrantedByRuntimePortlet
(javax.servlet.http.HttpServletRequest httpServletRequest) boolean
isAddLayoutAllowed
(PermissionChecker permissionChecker, Layout layout) boolean
isCustomizeLayoutAllowed
(PermissionChecker permissionChecker, Layout layout) boolean
isDeleteLayoutAllowed
(PermissionChecker permissionChecker, Layout layout) protected boolean
isPanelSelectedPortlet
(Layout layout, String portletId) boolean
isUpdateLayoutAllowed
(PermissionChecker permissionChecker, Layout layout) boolean
isViewLayoutAllowed
(PermissionChecker permissionChecker, Layout layout)
-
Constructor Details
-
DefaultLayoutTypeAccessPolicyImpl
public DefaultLayoutTypeAccessPolicyImpl()
-
-
Method Details
-
create
-
checkAccessAllowedToPortlet
public void checkAccessAllowedToPortlet(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet) throws PortalException - Specified by:
checkAccessAllowedToPortlet
in interfaceLayoutTypeAccessPolicy
- Throws:
PortalException
-
isAddLayoutAllowed
public boolean isAddLayoutAllowed(PermissionChecker permissionChecker, Layout layout) throws PortalException - Specified by:
isAddLayoutAllowed
in interfaceLayoutTypeAccessPolicy
- Throws:
PortalException
-
isCustomizeLayoutAllowed
public boolean isCustomizeLayoutAllowed(PermissionChecker permissionChecker, Layout layout) throws PortalException - Specified by:
isCustomizeLayoutAllowed
in interfaceLayoutTypeAccessPolicy
- Throws:
PortalException
-
isDeleteLayoutAllowed
public boolean isDeleteLayoutAllowed(PermissionChecker permissionChecker, Layout layout) throws PortalException - Specified by:
isDeleteLayoutAllowed
in interfaceLayoutTypeAccessPolicy
- Throws:
PortalException
-
isUpdateLayoutAllowed
public boolean isUpdateLayoutAllowed(PermissionChecker permissionChecker, Layout layout) throws PortalException - Specified by:
isUpdateLayoutAllowed
in interfaceLayoutTypeAccessPolicy
- Throws:
PortalException
-
isViewLayoutAllowed
public boolean isViewLayoutAllowed(PermissionChecker permissionChecker, Layout layout) throws PortalException - Specified by:
isViewLayoutAllowed
in interfaceLayoutTypeAccessPolicy
- Throws:
PortalException
-
hasAccessPermission
protected boolean hasAccessPermission(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet) throws PortalException - Throws:
PortalException
-
isAccessAllowedToLayoutPortlet
-
isAccessGrantedByPortletAuthenticationToken
-
isAccessGrantedByPortletOnPage
-
isAccessGrantedByRuntimePortlet
protected boolean isAccessGrantedByRuntimePortlet(javax.servlet.http.HttpServletRequest httpServletRequest) -
isPanelSelectedPortlet
-