|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.portal.security.AbstractPortalPermissionChecker
public abstract class AbstractPortalPermissionChecker
The Class AbstractPortalPermissionChecker.
Provides a basic Permission Check functionality for Portlets.
This class should be Implemented for dedicated portal environments.
There can be specified cms groups for editing and viewing content and
navigation elements (folders).
Group Ids for view and edit rights have to be set in the properties file.
![]() |
![]() |
Field Summary | |
---|---|
protected static Integer |
CMS_ANONYMOUS_GROUP
The cms anonymous group. |
private com.gentics.cr.CRConfigFileLoader |
crConf
The configuration file loader. |
private Map<String,List<Integer>> |
editRoleMap
The role map. |
private org.apache.log4j.Logger |
log
The log. |
private static String |
PREFIX_EDIT_GROUP
The edit group prefix. |
private static String |
PREFIX_VIEW_GROUP
The view group prefix. |
protected static String |
PROPERTY_CMS_ANONYMOUS_GROUP
The cms anonymous group property string . |
private static String |
PROPERTY_FILENAME
The Constant Property Filename. |
private static String |
SUFIX_CMS
The cms suffix. |
private static String |
SUFIX_PORTAL
The portal suffix. |
private Map<String,List<Integer>> |
viewRoleMap
The role map. |
Constructor Summary | |
---|---|
AbstractPortalPermissionChecker()
|
Method Summary | |
---|---|
abstract Boolean |
checkEditPermission(javax.portlet.PortletRequest request,
com.gentics.cr.CRResolvableBean bean)
Checks the write permission for the given crBean. |
abstract Boolean |
checkViewPermission(javax.portlet.PortletRequest request,
com.gentics.cr.CRResolvableBean bean)
Check the view permissions for the given crBean. |
private void |
fillRoleMap()
Fill the role maps with the given permission groups. |
protected Map<String,List<Integer>> |
getEditRoleMap()
Getter method for editRoleMap. |
abstract Subject |
getSubject(javax.portlet.PortletRequest request)
Returns the User Subject. |
protected Map<String,List<Integer>> |
getViewRoleMap()
Getter method for viewRoleMap. |
void |
init()
Initialize the PortalPermissionChecker and builds the role map. |
abstract Boolean |
isLoggedIn(javax.portlet.PortletRequest request)
Checks if a user is logged in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.log4j.Logger log
private static final String PROPERTY_FILENAME
protected static Integer CMS_ANONYMOUS_GROUP
protected static String PROPERTY_CMS_ANONYMOUS_GROUP
private static String PREFIX_VIEW_GROUP
private static String PREFIX_EDIT_GROUP
private static String SUFIX_PORTAL
private static String SUFIX_CMS
private Map<String,List<Integer>> viewRoleMap
private Map<String,List<Integer>> editRoleMap
private com.gentics.cr.CRConfigFileLoader crConf
Constructor Detail |
---|
public AbstractPortalPermissionChecker()
Method Detail |
---|
public void init()
private void fillRoleMap()
protected Map<String,List<Integer>> getViewRoleMap()
protected Map<String,List<Integer>> getEditRoleMap()
public abstract Boolean checkViewPermission(javax.portlet.PortletRequest request, com.gentics.cr.CRResolvableBean bean)
request
- the requestbean
- the bean
public abstract Boolean checkEditPermission(javax.portlet.PortletRequest request, com.gentics.cr.CRResolvableBean bean)
request
- the requestbean
- the bean
public abstract Boolean isLoggedIn(javax.portlet.PortletRequest request)
request
- the request
public abstract Subject getSubject(javax.portlet.PortletRequest request) throws NamingException
request
- the request
NamingException
- the naming exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |