org.jboss.metadata.ejb.spec
Class MethodPermissionMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
          extended by org.jboss.metadata.ejb.spec.MethodPermissionMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData

public class MethodPermissionMetaData
extends IdMetaDataImplWithDescriptions

MethodPermissionMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
MethodPermissionMetaData()
          Create a new MethodPermissionMetaData.
 
Method Summary
 MethodPermissionMetaData clone()
           
 MethodPermissionMetaData getMethodPermissionByEjbName(String ejbName)
          Get the method permissions for an ejb
 MethodsMetaData getMethods()
          Get the methods.
 Set<String> getRoles()
          Get the roles.
 EmptyMetaData getUnchecked()
          Get the unchecked.
 boolean isNotChecked()
          Get the unchecked.
 boolean isNotChecked(String methodName, Class[] params, MethodInterfaceType interfaceType)
          Whether this is not checked
 boolean matches(String methodName, Class[] params, MethodInterfaceType interfaceType)
          Whether this matches
 void setMethods(MethodsMetaData methods)
          Set the methods.
 void setRoles(Set<String> roles)
          Set the roles.
 void setUnchecked(EmptyMetaData unchecked)
          Set the unchecked.
 String toString()
           
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
getDescriptions, merge, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
equals, getId, hashCode, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodPermissionMetaData

public MethodPermissionMetaData()
Create a new MethodPermissionMetaData.

Method Detail

isNotChecked

public boolean isNotChecked()
Get the unchecked.

Returns:
the unchecked.

getUnchecked

public EmptyMetaData getUnchecked()
Get the unchecked.

Returns:
the unchecked.

setUnchecked

public void setUnchecked(EmptyMetaData unchecked)
Set the unchecked.

Parameters:
unchecked - the unchecked.

getRoles

public Set<String> getRoles()
Get the roles.

Returns:
the roles.

setRoles

public void setRoles(Set<String> roles)
Set the roles.

Parameters:
roles - the roles.

getMethods

public MethodsMetaData getMethods()
Get the methods.

Returns:
the methods.

setMethods

public void setMethods(MethodsMetaData methods)
Set the methods.

Parameters:
methods - the methods.
Throws:
IllegalArgumentException - for a null methods

getMethodPermissionByEjbName

public MethodPermissionMetaData getMethodPermissionByEjbName(String ejbName)
Get the method permissions for an ejb

Parameters:
ejbName - the ejb name
Returns:
the method permission or null for no result
Throws:
IllegalArgumentException - for a null ejb name

clone

public MethodPermissionMetaData clone()
Overrides:
clone in class IdMetaDataImpl

matches

public boolean matches(String methodName,
                       Class[] params,
                       MethodInterfaceType interfaceType)
Whether this matches

Parameters:
methodName - the method name
params - the parameters
interfaceType - the interface type
Returns:
true when it matches

isNotChecked

public boolean isNotChecked(String methodName,
                            Class[] params,
                            MethodInterfaceType interfaceType)
Whether this is not checked

Parameters:
methodName - the method name
params - the parameters
interfaceType - the interface type
Returns:
true when it is not checked and it matches matches

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.