|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.ebxml.registry.security.authorization.AuthorizationServiceImpl
AuthorizationService implementation for the ebxml Registry.
Field Summary | |
static java.lang.String |
ACTION_APPROVE
The approve action from V3 spec. |
static java.lang.String |
ACTION_ATTRIBUTE_ID
The action-id action attribute from V3 spec. |
static java.lang.String |
ACTION_CREATE
The create action from V3 spec. |
static java.lang.String |
ACTION_DELETE
The delete action from V3 spec. |
static java.lang.String |
ACTION_DEPRECATE
The deprecate action from V3 spec. |
static java.lang.String |
ACTION_READ
The read action from V3 spec. |
static java.lang.String |
ACTION_REFERENCE
The reference action from V3 spec. |
static java.lang.String |
ACTION_UNDEPRECATE
The undeprecate action from V3 spec. |
static java.lang.String |
ACTION_UPDATE
The update action from V3 spec. |
static int |
ADD_SLOTS_REQUEST
|
static int |
ADHOC_QUERY_REQUEST
|
static int |
APPROVE_OBJECTS_REQUEST
|
static java.lang.String |
CANONICAL_ID_NODE_REGISTRY_ADMINISTRATOR
|
static java.lang.String |
CANONICAL_ID_NODE_SUBJECT_GROUP
|
static java.lang.String |
CANONICAL_ID_NODE_SUBJECT_ROLE
|
static int |
DEPRECATE_OBJECTS_REQUEST
|
static java.lang.String |
FUNCTION_NS
The standard namespace where all the ebRIM spec-defined functions live |
static int |
GET_CONTENT_REQUEST
|
static java.lang.String |
PROP_REGISTRY_REQUEST
|
static int |
REMOVE_OBJECTS_REQUEST
|
static int |
REMOVE_SLOTS_REQUEST
|
static java.lang.String |
RESOURCE_ATTRIBUTE_OWNER
The owner resource attribute from V3 spec. |
static java.lang.String |
RESOURCE_ATTRIBUTE_REQUEST
The user subject attribute specific to ebxmlrr (not from V3 spec). |
static java.lang.String |
SUBJECT_ATTRIBUTE_GROUPS
The role subject attribute from V3 spec. |
static java.lang.String |
SUBJECT_ATTRIBUTE_ID
The subject-id subject attribute from XACML 1.0 spec. |
static java.lang.String |
SUBJECT_ATTRIBUTE_ROLES
The role subject attribute from V3 spec. |
static java.lang.String |
SUBJECT_ATTRIBUTE_USER
The user subject attribute specific to ebxmlrr (not from V3 spec). |
static int |
SUBMIT_OBJECTS_REQUEST
|
static int |
UPDATE_OBJECTS_REQUEST
|
Constructor Summary | |
protected |
AuthorizationServiceImpl()
Class Constructor. |
Method Summary | |
void |
checkAuthorization(org.oasis.ebxml.registry.bindings.rim.User user,
java.util.ArrayList ids,
int requestType)
Check whether the user is authorised to make requests on the RegistryObjects |
void |
checkAuthorization(org.oasis.ebxml.registry.bindings.rim.User user,
java.lang.Object registryRequest)
Check if user is authorized to perform specified request. |
void |
checkAuthorizationV2(org.oasis.ebxml.registry.bindings.rim.User user,
java.lang.Object registryRequest)
Check if user is authorized to perform specified request using V2 specification. |
void |
checkAuthorizationV3(org.oasis.ebxml.registry.bindings.rim.User user,
java.lang.Object registryRequest)
Check if user is authorized to perform specified request using V3 specification. |
static AuthorizationServiceImpl |
getInstance()
Gets the singleton instance as defined by Singleton pattern. |
boolean |
isRegistryAdministrator(org.oasis.ebxml.registry.bindings.rim.User user)
|
static void |
main(java.lang.String[] args)
Minimal unit test code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SUBMIT_OBJECTS_REQUEST
public static final int UPDATE_OBJECTS_REQUEST
public static final int REMOVE_OBJECTS_REQUEST
public static final int APPROVE_OBJECTS_REQUEST
public static final int DEPRECATE_OBJECTS_REQUEST
public static final int ADD_SLOTS_REQUEST
public static final int REMOVE_SLOTS_REQUEST
public static final int ADHOC_QUERY_REQUEST
public static final int GET_CONTENT_REQUEST
public static final java.lang.String ACTION_ATTRIBUTE_ID
public static final java.lang.String RESOURCE_ATTRIBUTE_OWNER
public static final java.lang.String RESOURCE_ATTRIBUTE_REQUEST
public static final java.lang.String SUBJECT_ATTRIBUTE_ID
public static final java.lang.String SUBJECT_ATTRIBUTE_ROLES
public static final java.lang.String SUBJECT_ATTRIBUTE_GROUPS
public static final java.lang.String SUBJECT_ATTRIBUTE_USER
public static final java.lang.String ACTION_CREATE
public static final java.lang.String ACTION_READ
public static final java.lang.String ACTION_UPDATE
public static final java.lang.String ACTION_DELETE
public static final java.lang.String ACTION_APPROVE
public static final java.lang.String ACTION_DEPRECATE
public static final java.lang.String ACTION_UNDEPRECATE
public static final java.lang.String ACTION_REFERENCE
public static final java.lang.String CANONICAL_ID_NODE_REGISTRY_ADMINISTRATOR
public static final java.lang.String CANONICAL_ID_NODE_SUBJECT_ROLE
public static final java.lang.String CANONICAL_ID_NODE_SUBJECT_GROUP
public static final java.lang.String PROP_REGISTRY_REQUEST
public static final java.lang.String FUNCTION_NS
Constructor Detail |
protected AuthorizationServiceImpl()
Method Detail |
public static AuthorizationServiceImpl getInstance()
public void checkAuthorization(org.oasis.ebxml.registry.bindings.rim.User user, java.util.ArrayList ids, int requestType) throws RegistryException
UnauthorizedRequestException
- if the user is not authorized to make the requests on the objects
RegistryException
public void checkAuthorizationV3(org.oasis.ebxml.registry.bindings.rim.User user, java.lang.Object registryRequest) throws RegistryException
UnauthorizedRequestException
- if the user is not authorized to make the requests on the objects
RegistryException
public void checkAuthorization(org.oasis.ebxml.registry.bindings.rim.User user, java.lang.Object registryRequest) throws RegistryException
RegistryException
public void checkAuthorizationV2(org.oasis.ebxml.registry.bindings.rim.User user, java.lang.Object registryRequest) throws RegistryException
RegistryException
public boolean isRegistryAdministrator(org.oasis.ebxml.registry.bindings.rim.User user) throws RegistryException
RegistryException
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |