org.objectweb.easybeans.api.bean.info
Interface IMethodSecurityInfo

All Known Implementing Classes:
MethodSecurityInfo

public interface IMethodSecurityInfo

Used to describe permission information for a given method.

Author:
Florent Benoit

Method Summary
 void addRole(java.lang.String roleName)
          Add the given role to the list of roles allowed to call this method.
 java.security.Permission getPermission()
           
 java.util.List<java.lang.String> getRoles()
           
 boolean isExcluded()
           
 boolean isUnchecked()
           
 void setExcluded(boolean excluded)
          This method is excluded (no call allowed if true).
 void setPermission(java.security.Permission permission)
          Sets the permission.
 void setUnchecked(boolean unchecked)
          This method is unchecked (if true, all calls are allowed to this method).
 

Method Detail

setExcluded

void setExcluded(boolean excluded)
This method is excluded (no call allowed if true).

Parameters:
excluded - boolean true/false.

isExcluded

boolean isExcluded()
Returns:
true if the method is excluded.

setUnchecked

void setUnchecked(boolean unchecked)
This method is unchecked (if true, all calls are allowed to this method).

Parameters:
unchecked - boolean true/false.

isUnchecked

boolean isUnchecked()
Returns:
true if the method is unchecked.

addRole

void addRole(java.lang.String roleName)
Add the given role to the list of roles allowed to call this method.

Parameters:
roleName - the name of the role.

getRoles

java.util.List<java.lang.String> getRoles()
Returns:
list of roles allowed to call this method.

setPermission

void setPermission(java.security.Permission permission)
Sets the permission.

Parameters:
permission - the permission to set.

getPermission

java.security.Permission getPermission()
Returns:
permissions for this method.