org.ow2.jonas.deployment.web
Class MethodsDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.web.MethodsDesc

public class MethodsDesc
extends Object

Defines the methods class managing all http methods

Author:
Florent Benoit

Field Summary
static String[] METHODS
          Available HTTP METHODS
 
Constructor Summary
MethodsDesc()
          Constructor Build new Http Methods
 
Method Summary
 void addMethods(String[] methods, String transportGuarantee, boolean isExcluded)
          Add Http methods (Excluded or Unchecked)
 void addMethodsOnRole(String[] methods, String role, String transportGuarantee)
          Add pattern information for a given role
 String getExcludedActions()
          Gets the excluded actions in order to build permissions
 Map getRoleMapActions()
          Gets the Map between roles and their actions
 String getUncheckedActions()
          Gets the unchecked actions in order to build permissions
 List getUncheckedWebUserDataActionsRoleList()
          Gets the list of unchecked permissions for all element that do not contain an excluding auth-constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHODS

public static final String[] METHODS
Available HTTP METHODS

Constructor Detail

MethodsDesc

public MethodsDesc()
Constructor Build new Http Methods

Method Detail

addMethods

public void addMethods(String[] methods,
                       String transportGuarantee,
                       boolean isExcluded)
Add Http methods (Excluded or Unchecked)

Parameters:
methods - array of methods to add
transportGuarantee - Transport Guarantee for these methods
isExcluded - if true add methods as excluded

addMethodsOnRole

public void addMethodsOnRole(String[] methods,
                             String role,
                             String transportGuarantee)
Add pattern information for a given role

Parameters:
methods - methods to add to the given role
role - role which have the given methods
transportGuarantee - Transport Guarantee for these methods

getExcludedActions

public String getExcludedActions()
Gets the excluded actions in order to build permissions

Returns:
actions in order to build permissions

getUncheckedActions

public String getUncheckedActions()
Gets the unchecked actions in order to build permissions

Returns:
actions in order to build permissions

getRoleMapActions

public Map getRoleMapActions()
Gets the Map between roles and their actions

Returns:
map between roles and their actions in order to build permissions

getUncheckedWebUserDataActionsRoleList

public List getUncheckedWebUserDataActionsRoleList()
Gets the list of unchecked permissions for all element that do not contain an excluding auth-constraint

Returns:
list of actions for WebUserData permissions
See Also:
WebUserDataPermission for excluding auth constraint


Copyright © 2010 OW2 Consortium. All Rights Reserved.