| |
|
| java.lang.Object org.ow2.easybeans.container.info.security.MethodSecurityInfo
MethodSecurityInfo | public class MethodSecurityInfo implements IMethodSecurityInfo(Code) | | Used to describe permission information for a given method.
author: Florent Benoit |
MethodSecurityInfo | public MethodSecurityInfo()(Code) | | Default constructor.
|
addRole | public void addRole(String roleName)(Code) | | Add the given role to the list of roles allowed to call this method.
Parameters: roleName - the name of the role. |
getPermission | public Permission getPermission()(Code) | | permissions for this method. |
getRoles | public List<String> getRoles()(Code) | | list of roles allowed to call this method. |
isExcluded | public boolean isExcluded()(Code) | | true if the method is excluded. |
isUnchecked | public boolean isUnchecked()(Code) | | true if the method is unchecked. |
setExcluded | public void setExcluded(boolean excluded)(Code) | | This method is excluded (no call allowed if true).
Parameters: excluded - boolean true/false. |
setPermission | public void setPermission(Permission permission)(Code) | | Sets the permission.
Parameters: permission - the permission to set. |
setUnchecked | public void setUnchecked(boolean unchecked)(Code) | | This method is unchecked (if true, all calls are allowed to this method).
Parameters: unchecked - boolean true/false. |
|
|
|