info.magnolia.module.admininterface.pages
Class PermissionPage

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
              extended by info.magnolia.module.admininterface.TemplatedMVCHandler
                  extended by info.magnolia.module.admininterface.pages.PermissionPage
All Implemented Interfaces:
MVCServletHandler

public class PermissionPage
extends TemplatedMVCHandler

Tools for simple show of all groups, roles or permissions assigned to user.

Version:
$Id$

Field Summary
static org.slf4j.Logger log
           
 
Fields inherited from class info.magnolia.module.admininterface.PageMVCHandler
COMMAND_PARAMETER_NAME, COMMAND_SHOW, VIEW_SHOW
 
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
exception, request, response, VIEW_SUCCESS
 
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler
VIEW_NOTHING
 
Constructor Summary
PermissionPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String createpermissionlist()
          Creation of permission list as such.
 Messages getMessages()
           
 String getMgnlGroup()
          Getter for mgnlGroup.
 String getMgnlUser()
          Getter for mgnlUser.
 String getPermissionAsName(String repoName, Permission permission)
          Mapping permission to name.
 Collection<String> getPermissionList()
          Getter for permissionList.
 boolean isCreatePermissionList()
          Getter for createPermissionList.
 Boolean isMgnlACLs()
          Getter for mgnlACLs.
 void setCreatePermissionList(boolean createPermissionList)
          Setter for createPermissionList.
 void setMgnlACLs(Boolean mgnlACLs)
          Setter for mgnlACLs.
 void setMgnlGroup(String mgnlGroup)
          Setter for mgnlGroup.
 void setMgnlUser(String mgnlUser)
          Setter for mgnlUser.
 
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler
getTemplateName, renderHtml
 
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams, show
 
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler
execute, findCommand, getCatalogueName, getCommandContext, getViewNameAfterExecution, setCatalogueName
 
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
getCommand, getException, getExceptionStackTrace, getName, getRequest, getResponse, populateFromRequest, setCommand, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.slf4j.Logger log
Constructor Detail

PermissionPage

public PermissionPage(String name,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
Parameters:
name -
request -
response -
Method Detail

getMgnlUser

public String getMgnlUser()
Getter for mgnlUser.

Returns:
Returns the mgnlUser.

setMgnlUser

public void setMgnlUser(String mgnlUser)
Setter for mgnlUser.

Parameters:
mgnlUser - The mgnlUser to set.

getMgnlGroup

public String getMgnlGroup()
Getter for mgnlGroup.

Returns:
Returns the mgnlGroup.

setMgnlGroup

public void setMgnlGroup(String mgnlGroup)
Setter for mgnlGroup.

Parameters:
mgnlGroup - The mgnlGroup to set.

isMgnlACLs

public Boolean isMgnlACLs()
Getter for mgnlACLs.

Returns:
Returns the mgnlACLs.

setMgnlACLs

public void setMgnlACLs(Boolean mgnlACLs)
Setter for mgnlACLs.

Parameters:
mgnlACLs - The mgnlACLs to set.

getPermissionList

public Collection<String> getPermissionList()
Getter for permissionList.

Returns:
Returns the permissionList.

isCreatePermissionList

public boolean isCreatePermissionList()
Getter for createPermissionList.

Returns:
Returns the createPermissionList.

setCreatePermissionList

public void setCreatePermissionList(boolean createPermissionList)
Setter for createPermissionList.

Parameters:
createPermissionList - The createPermissionList to set.

createpermissionlist

public String createpermissionlist()
                            throws Exception
Creation of permission list as such.

Throws:
Exception

getPermissionAsName

public String getPermissionAsName(String repoName,
                                  Permission permission)
Mapping permission to name.

Throws:
Exception

getMessages

public Messages getMessages()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.