|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.common.delegate.SecurityManagerDelegate
public final class SecurityManagerDelegate
Delegate class for security manager. Ony the getUserRole method is implemented which will authenticate the user and get his roles. The remaining methods in the security manager should only be accessed by other EJBs and hence are not supported in the delegate
Field Summary | |
---|---|
static int |
LOCAL
|
static int |
REMOTE
|
Constructor Summary | |
---|---|
SecurityManagerDelegate()
|
|
SecurityManagerDelegate(int localOrRemote)
Overloaded contructor to support Local/Remote EJB lookups. |
Method Summary | |
---|---|
SecuredElementItf[] |
canUserAccessElement(SecuredElementItf[] objects,
java.lang.String[] roleIds)
Checks if the user can access the securedElement for this Object. |
SecuredElementItf[] |
canUserAccessElement(SecuredElementItf[] objects,
java.lang.String[] roleIds,
ProtectionGroupData[] protectionGroups)
Checks if the user can access the securedElement for this Object. |
SecuredElementItf |
canUserAccessElement(SecuredElementItf object,
java.lang.String[] roleIds)
Checks if the user can access the securedElemet for this Object. |
SecuredElementItf[] |
canUserAccessElement(java.lang.String userId,
SecuredElementItf[] objectIds,
java.lang.String[] roleIds)
Deprecated. |
boolean |
canUserAccessElement(java.lang.String userId,
java.lang.String objectId,
java.lang.String[] roleIds)
Deprecated. |
SecuredElementItf[] |
canUserAccessOwnerElement(SecuredElementItf[] objects)
Checks if the user can access the securedElement for this Object. |
SecuredElementItf[] |
canUserAccessOwnerElementOnly(SecuredElementItf[] objects)
Checks if the user can access the securedElement for this Object. |
int |
createSecuredElement(SecuredElementData secElemData)
creates a secured element |
void |
deassignSecuredElementOwner(java.lang.String objectId)
Deassign Secured Element Owner |
ProtectionGroupData[] |
getElementProtectionGroups(java.lang.String objectId)
Gets Protection Groups associated with a Object |
java.lang.String |
getOwnersEmail(java.lang.String objectId)
Gets email information for the owner of an object. |
ProtectionGroupData[] |
getProtectionGroups()
Gets all the protection Groups in the system |
java.lang.String |
getUserEmail()
Gets email information for the current user. |
java.lang.String |
getUserEmail(java.lang.String userName)
Gets email information for the specified user. |
Role[] |
getUserRoleData(java.lang.String userName,
java.lang.String password)
Gets role information for the specified user. |
UserDesc[] |
getUsers()
Gets role information for the specified user. |
boolean |
isUserAuthenticated(java.lang.String userName,
java.lang.String password)
|
boolean |
isUserElementOwner(java.lang.String objectId)
Checks if the user is owner of the Object SecuredElement. |
boolean |
isUserElementOwner(java.lang.String userName,
java.lang.String objectId)
Deprecated. |
void |
removeSecuredElement(java.lang.String objectId)
remove a secured element from security database |
void |
setElementProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
set ProtectionGroups for a securedElement/Object |
void |
setSecuredElementOwner(java.lang.String objectId,
java.lang.String userName)
Set New Secured Elemetn Owner |
void |
setSecuredElementProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
update the protectionGroups associated with a Secured Element |
void |
updateSecuredElementProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
update the protectionGroups associated with a Secured Element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REMOTE
public static final int LOCAL
Constructor Detail |
---|
public SecurityManagerDelegate() throws GeneralException
GeneralException
public SecurityManagerDelegate(int localOrRemote) throws GeneralException
SecurityManagerDelegate.REMOTE
- or LOCAL
GeneralException
Method Detail |
---|
public boolean isUserAuthenticated(java.lang.String userName, java.lang.String password) throws GeneralException
GeneralException
public UserDesc[] getUsers() throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public Role[] getUserRoleData(java.lang.String userName, java.lang.String password) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public java.lang.String getUserEmail() throws GeneralException
GeneralException
public java.lang.String getOwnersEmail(java.lang.String objectId) throws GeneralException
objectId
- - The object id whose owners email
to be retrieved.
GeneralException
public java.lang.String getUserEmail(java.lang.String userName) throws GeneralException
userName
- - The name of the user whose email
to be retrieved.
GeneralException
public boolean isUserElementOwner(java.lang.String userName, java.lang.String objectId) throws GeneralException
userName
- - The name of the user who is to be checked for ownershipobjectId
- - Object for which the ownership is to be checked
GeneralException
public boolean isUserElementOwner(java.lang.String objectId) throws GeneralException
objectId
- - Object for which the ownership is to be checked
GeneralException
public boolean canUserAccessElement(java.lang.String userId, java.lang.String objectId, java.lang.String[] roleIds) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public SecuredElementItf canUserAccessElement(SecuredElementItf object, java.lang.String[] roleIds) throws GeneralException
GeneralException
public SecuredElementItf[] canUserAccessElement(java.lang.String userId, SecuredElementItf[] objectIds, java.lang.String[] roleIds) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public SecuredElementItf[] canUserAccessElement(SecuredElementItf[] objects, java.lang.String[] roleIds) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public SecuredElementItf[] canUserAccessOwnerElement(SecuredElementItf[] objects) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public SecuredElementItf[] canUserAccessOwnerElementOnly(SecuredElementItf[] objects) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public int createSecuredElement(SecuredElementData secElemData) throws GeneralException
SecuredElementData
- - Contains the attributes need to make a securedElement
GeneralException
public ProtectionGroupData[] getProtectionGroups() throws GeneralException
GeneralException
public ProtectionGroupData[] getElementProtectionGroups(java.lang.String objectId) throws GeneralException
objectId
- - Id of object for which protection groups are to be found.
GeneralException
public void setSecuredElementOwner(java.lang.String objectId, java.lang.String userName) throws GeneralException
objectId
- - ID for object to which new owner is being assigned.userName
- - Name for new owner
GeneralException
public void deassignSecuredElementOwner(java.lang.String objectId) throws GeneralException
objectId
- - ID for object to which new owner is being assigned.
GeneralException
public void setElementProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws GeneralException
userName
- - The name of the user whose roles are
to be retrieved.
GeneralException
public void removeSecuredElement(java.lang.String objectId) throws GeneralException
objectId
- - The name of the user whose roles are
to be retrieved.
GeneralException
public void updateSecuredElementProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws GeneralException
objectId
- - The name of the user whose roles are
to be retrieved.
GeneralException
public void setSecuredElementProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws GeneralException
objectId
- - The name of the user whose roles are
to be retrieved.
GeneralException
public SecuredElementItf[] canUserAccessElement(SecuredElementItf[] objects, java.lang.String[] roleIds, ProtectionGroupData[] protectionGroups) throws GeneralException
GeneralException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |