Methods used in method permission element of the deployment descriptor
must be methods defined in the enterprise bean's remote and/or home
interface.
result = getInitializedResult();
compName = getVerifierContext().getComponentNameConstructor();
if ((descriptor instanceof EjbSessionDescriptor) ||
(descriptor instanceof EjbEntityDescriptor)) {
Map<MethodPermission,
Collection<MethodDescriptor>> permissionedMethods = descriptor.getMethodPermissionsFromDD();
if (permissionedMethods!=null) {
for (MethodPermission methodPermission : permissionedMethods.keySet())
for (MethodDescriptor methodDescriptor : permissionedMethods.get(methodPermission))
checkMethodStyles(methodDescriptor, descriptor);
}
}
if(result.getStatus() != Result.FAILED) {
addGoodDetails(result, compName);
result.passed(smh.getLocalString
(getClass().getName() + ".passed",
"Valid method permission method(s) found."));
}
return result;