org.objectweb.jonas_web.deployment.api
Class MethodsDesc

java.lang.Object
  extended byorg.objectweb.jonas_web.deployment.api.MethodsDesc

public class MethodsDesc
extends java.lang.Object

Defines the methods class managing all http methods

Author:
Florent Benoit

Field Summary
static java.lang.String[] METHODS
          Available HTTP METHODS
 
Constructor Summary
MethodsDesc()
          Constructor Build new Http Methods
 
Method Summary
 void addMethods(java.lang.String[] methods, java.lang.String transportGuarantee, boolean isExcluded)
          Add Http methods (Excluded or Unchecked)
 void addMethodsOnRole(java.lang.String[] methods, java.lang.String role, java.lang.String transportGuarantee)
          Add pattern information for a given role
 java.lang.String getExcludedActions()
          Gets the excluded actions in order to build permissions
 java.util.Map getRoleMapActions()
          Gets the Map between roles and their actions
 java.lang.String getUncheckedActions()
          Gets the unchecked actions in order to build permissions
 java.util.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 java.lang.String[] METHODS
Available HTTP METHODS

Constructor Detail

MethodsDesc

public MethodsDesc()
Constructor Build new Http Methods

Method Detail

addMethods

public void addMethods(java.lang.String[] methods,
                       java.lang.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 else as unchecked

addMethodsOnRole

public void addMethodsOnRole(java.lang.String[] methods,
                             java.lang.String role,
                             java.lang.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 java.lang.String getExcludedActions()
Gets the excluded actions in order to build permissions

Returns:
actions in order to build permissions

getUncheckedActions

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

Returns:
actions in order to build permissions

getRoleMapActions

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

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

getUncheckedWebUserDataActionsRoleList

public java.util.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