org.apache.cocoon.portal.tools.service
Class UserRightsService

java.lang.Object
  extended by org.apache.cocoon.portal.tools.service.UserRightsService

public class UserRightsService
extends Object

Service, that provides access to the user rights configuration.

Version:
CVS $Id: UserRightsService.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
UserRightsService()
           
 
Method Summary
 Source getLocation()
           
 boolean getReload()
           
 void initialize()
          Initialize the bean.
 void setLocation(Source location)
           
 void setReload(boolean reload)
           
 boolean userFunctionIsAllowed(String id, PortalUser user)
           
 boolean userIsAllowed(String url, PortalUser user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRightsService

public UserRightsService()
Method Detail

getLocation

public Source getLocation()
Returns:
The location

setLocation

public void setLocation(Source location)
Parameters:
location - The location to set

getReload

public boolean getReload()
Returns:
The reload

setReload

public void setReload(boolean reload)
Parameters:
reload - The reload to set

initialize

public void initialize()
Initialize the bean.


userIsAllowed

public boolean userIsAllowed(String url,
                             PortalUser user)
Returns:
Whether the current user is allowed to call the given url.

userFunctionIsAllowed

public boolean userFunctionIsAllowed(String id,
                                     PortalUser user)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.