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

java.lang.Object
  extended byorg.apache.cocoon.portal.tools.service.UserRightsService

public class UserRightsService
extends Object

Service, that provides access to the user rights configuration.

Version:
$Id: UserRightsService.java 151233 2005-02-03 21:28:27Z cziegeler $

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-2005 The Apache Software Foundation. All Rights Reserved.