org.tigris.scarab.services.security
Class ScarabSecurity

java.lang.Object
  extended byorg.apache.fulcrum.BaseService
      extended byorg.tigris.scarab.services.security.ScarabSecurity
All Implemented Interfaces:
org.apache.fulcrum.Service

public class ScarabSecurity
extends org.apache.fulcrum.BaseService
implements org.apache.fulcrum.Service

This class provides access to security properties

Version:
$Id: ScarabSecurity.java 10023 2006-03-21 15:37:06Z jorgeuriarte $
Author:
John McNally

Field Summary
static java.lang.String DOMAIN__ADMIN
          Specifies that a User is allowed to administer a domain.
static java.lang.String DOMAIN__EDIT
          Specifies that a User is allowed to edit a domain.
static java.lang.String ISSUE__ASSIGN
          Specifies that a User is allowed to search for issues.
static java.lang.String ISSUE__ATTACH
          Specifies that a User is allowed to search for issues.
static java.lang.String ISSUE__COMMENT
          Specifies that a User is allowed to add comments to issues.
static java.lang.String ISSUE__DELETE
          Specifies that a User is able to mark an issue as 'deleted'
static java.lang.String ISSUE__EDIT
          Specifies that a User is valid as an assignee for an issue.
static java.lang.String ISSUE__ENTER
          Specifies that a User is allowed to enter an issue.
static java.lang.String ISSUE__MOVE
          Specifies that a User is allowed to move or copy an issue.
static java.lang.String ISSUE__SEARCH
          Specifies that a User is allowed to search for issues.
static java.lang.String ISSUE__VIEW
          Specifies that a User is allowed to view an issue.
static java.lang.String ITEM__APPROVE
          Specifies that a User is allowed to approve a query.
static java.lang.String ITEM__DELETE
          Specifies that a User is allowed to delete a query.
protected static java.lang.String MAP_PREFIX
           
static java.lang.String MODULE__ADD
          Specifies that a User is allowed to add a project.
static java.lang.String MODULE__CONFIGURE
          Specifies that a User is allowed to configure a project.
static java.lang.String MODULE__EDIT
          Specifies that a User is allowed to modify a project.
static java.lang.String NONE
          String used to indicate that an Action module does not require a permission.
static java.lang.String SERVICE_NAME
          The name of the service
static java.lang.String TOOL_KEY
           
static java.lang.String USER__APPROVE_ROLES
          User with this permission is allowed to approve roles requested by other users.
static java.lang.String USER__CHANGE_PASSWORD
          Specifies that a User can change its password.
static java.lang.String USER__EDIT_PREFERENCES
          Specifies that a User is allowed to edit preferences.
static java.lang.String VOTE__MANAGE
          Specifies that a User is allowed to set up voting policies.
 
Fields inherited from class org.apache.fulcrum.BaseService
configuration, isInitialized, name, serviceBroker
 
Constructor Summary
ScarabSecurity()
           
 
Method Summary
static java.lang.String getActionPermission(java.lang.String action)
           
protected  java.lang.String getActionPermissionImpl(java.lang.String action)
           
static java.util.List getAllPermissions()
           
protected  java.util.List getAllPermissionsImpl()
           
protected  java.lang.String getPermissionImpl(java.lang.String permConstant)
           
static java.lang.String getScreenPermission(java.lang.String screen)
           
protected  java.lang.String getScreenPermissionImpl(java.lang.String screen)
           
protected static ScarabSecurity getService()
          Gets the ScarabSecurity implementation.
 void init()
           
 
Methods inherited from class org.apache.fulcrum.BaseService
getCategory, getConfiguration, getInit, getName, getRealPath, getServiceBroker, getServiceObject, getStatus, isInitialized, setInit, setName, setServiceBroker, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.fulcrum.Service
getCategory, getConfiguration, getRealPath, getStatus, isInitialized, setName, setServiceBroker, shutdown
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
The name of the service

See Also:
Constant Field Values

TOOL_KEY

public static final java.lang.String TOOL_KEY
See Also:
Constant Field Values

MAP_PREFIX

protected static final java.lang.String MAP_PREFIX
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
String used to indicate that an Action module does not require a permission.

See Also:
Constant Field Values

ISSUE__EDIT

public static final java.lang.String ISSUE__EDIT
Specifies that a User is valid as an assignee for an issue.


ISSUE__DELETE

public static final java.lang.String ISSUE__DELETE
Specifies that a User is able to mark an issue as 'deleted'


ISSUE__ENTER

public static final java.lang.String ISSUE__ENTER
Specifies that a User is allowed to enter an issue.


ISSUE__VIEW

public static final java.lang.String ISSUE__VIEW
Specifies that a User is allowed to view an issue.


ISSUE__SEARCH

public static final java.lang.String ISSUE__SEARCH
Specifies that a User is allowed to search for issues.


ISSUE__MOVE

public static final java.lang.String ISSUE__MOVE
Specifies that a User is allowed to move or copy an issue.


ISSUE__ATTACH

public static final java.lang.String ISSUE__ATTACH
Specifies that a User is allowed to search for issues.


ISSUE__COMMENT

public static final java.lang.String ISSUE__COMMENT
Specifies that a User is allowed to add comments to issues.


ISSUE__ASSIGN

public static final java.lang.String ISSUE__ASSIGN
Specifies that a User is allowed to search for issues.


ITEM__APPROVE

public static final java.lang.String ITEM__APPROVE
Specifies that a User is allowed to approve a query.


ITEM__DELETE

public static final java.lang.String ITEM__DELETE
Specifies that a User is allowed to delete a query.


USER__EDIT_PREFERENCES

public static final java.lang.String USER__EDIT_PREFERENCES
Specifies that a User is allowed to edit preferences.


DOMAIN__ADMIN

public static final java.lang.String DOMAIN__ADMIN
Specifies that a User is allowed to administer a domain.


DOMAIN__EDIT

public static final java.lang.String DOMAIN__EDIT
Specifies that a User is allowed to edit a domain.


MODULE__EDIT

public static final java.lang.String MODULE__EDIT
Specifies that a User is allowed to modify a project.


MODULE__CONFIGURE

public static final java.lang.String MODULE__CONFIGURE
Specifies that a User is allowed to configure a project.


MODULE__ADD

public static final java.lang.String MODULE__ADD
Specifies that a User is allowed to add a project.


USER__APPROVE_ROLES

public static final java.lang.String USER__APPROVE_ROLES
User with this permission is allowed to approve roles requested by other users.


VOTE__MANAGE

public static final java.lang.String VOTE__MANAGE
Specifies that a User is allowed to set up voting policies.


USER__CHANGE_PASSWORD

public static final java.lang.String USER__CHANGE_PASSWORD
Specifies that a User can change its password. This permission is not stored in the database, and not shown in GUI, but rather is managed by properties file.

Constructor Detail

ScarabSecurity

public ScarabSecurity()
Method Detail

init

public void init()
Specified by:
init in interface org.apache.fulcrum.Service

getAllPermissionsImpl

protected java.util.List getAllPermissionsImpl()

getScreenPermissionImpl

protected java.lang.String getScreenPermissionImpl(java.lang.String screen)

getActionPermissionImpl

protected java.lang.String getActionPermissionImpl(java.lang.String action)

getPermissionImpl

protected java.lang.String getPermissionImpl(java.lang.String permConstant)

getAllPermissions

public static java.util.List getAllPermissions()

getScreenPermission

public static java.lang.String getScreenPermission(java.lang.String screen)

getActionPermission

public static java.lang.String getActionPermission(java.lang.String action)

getService

protected static final ScarabSecurity getService()
Gets the ScarabSecurity implementation.

Returns:
the ScarabSecurity implementation.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.