org.jboss.shrinkwrap.descriptor.api.ejbjar31
Interface MethodPermissionType<T>

All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
All Known Implementing Classes:
MethodPermissionTypeImpl

public interface MethodPermissionType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>

This interface defines the contract for the method-permissionType xsd type

Original Documentation:



The method-permissionType specifies that one or more
security roles are allowed to invoke one or more enterprise
bean methods. The method-permissionType consists of an
optional description, a list of security role names or an
indicator to state that the method is unchecked for
authorization, and a list of method elements.

The security roles used in the method-permissionType
must be defined in the security-role elements of the
deployment descriptor, and the methods must be methods
defined in the enterprise bean's business, home, component
and/or web service endpoint interfaces.


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Method Summary
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.util.List<MethodType<MethodPermissionType<T>>> getMethodList()
          Returns all method elements
 java.util.List<java.lang.String> getRoleNameList()
          Returns all role-name elements
 java.lang.Boolean isUnchecked()
           
 MethodType<MethodPermissionType<T>> method()
          Returns the method element
 MethodPermissionType<T> removeAllDescription()
          Removes the description element
 MethodPermissionType<T> removeAllMethod()
          Removes all method elements
 MethodPermissionType<T> removeAllRoleName()
          Removes the role-name element
 MethodPermissionType<T> setDescription(java.lang.String description)
          Creates a new description element
 MethodPermissionType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 MethodPermissionType<T> setRoleName(java.lang.String roleName)
          Creates a new role-name element
 MethodPermissionType<T> setRoleNameList(java.lang.String... values)
          Creates for all String objects representing role-name elements, a new role-name element
 MethodPermissionType<T> unchecked()
           
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

setDescription

MethodPermissionType<T> setDescription(java.lang.String description)
Creates a new description element

Returns:
the current instance of MethodPermissionType

setDescriptionList

MethodPermissionType<T> setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
list - of description objects
Returns:
the current instance of MethodPermissionType

removeAllDescription

MethodPermissionType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of MethodPermissionType

getDescriptionList

java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Returns:
list of description

removeAllMethod

MethodPermissionType<T> removeAllMethod()
Removes all method elements

Returns:
the current instance of MethodPermissionType

method

MethodType<MethodPermissionType<T>> method()
Returns the method element

Returns:
the node defined for the element method

getMethodList

java.util.List<MethodType<MethodPermissionType<T>>> getMethodList()
Returns all method elements

Returns:
list of method

setRoleName

MethodPermissionType<T> setRoleName(java.lang.String roleName)
Creates a new role-name element

Returns:
the current instance of MethodPermissionType

setRoleNameList

MethodPermissionType<T> setRoleNameList(java.lang.String... values)
Creates for all String objects representing role-name elements, a new role-name element

Parameters:
list - of role-name objects
Returns:
the current instance of MethodPermissionType

removeAllRoleName

MethodPermissionType<T> removeAllRoleName()
Removes the role-name element

Returns:
the current instance of MethodPermissionType

getRoleNameList

java.util.List<java.lang.String> getRoleNameList()
Returns all role-name elements

Returns:
list of role-name

unchecked

MethodPermissionType<T> unchecked()

isUnchecked

java.lang.Boolean isUnchecked()