|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.AbstractSessionBean
gov.nih.nci.caarray.services.security.ejb.SecurityManagerEJB
public class SecurityManagerEJB
This class contains the implemention of the SecurityManager EJB.
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean |
---|
logger_, sessionCtx_ |
Constructor Summary | |
---|---|
SecurityManagerEJB()
|
Method Summary | |
---|---|
SecuredElementItf[] |
canUserAccessElement(SecuredElementItf[] objectIds,
java.lang.String[] roleIds)
Checks if the user can access the securedElement for this Object. |
SecuredElementItf[] |
canUserAccessElement(SecuredElementItf[] objectIds,
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 securedElement for this Object. |
SecuredElementItf[] |
canUserAccessElement(java.lang.String userId,
SecuredElementItf[] objectIds,
java.lang.String[] roleIds)
Checks if the user can access the securedElemet for this Object. |
boolean |
canUserAccessElement(java.lang.String userId,
java.lang.String objectId,
java.lang.String[] roleIds)
Deprecated. |
SecuredElementItf[] |
canUserAccessOwnerElement(SecuredElementItf[] objectIds)
Checks if the user can access the securedElement for this Object. |
SecuredElementItf[] |
canUserAccessOwnerElementOnly(SecuredElementItf[] objectIds)
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 |
void |
ejbCreate()
|
void |
ejbRemove()
called when remove method is called. |
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 specified object. |
ProtectionGroupData[] |
getProtectionGroups()
Gets all the protection Groups in the system |
UserDesc[] |
getSystemUsers()
Gets all the active Users of 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. |
boolean |
isUserAuthenticated(java.lang.String userName,
java.lang.String password)
Authenticates the user |
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 Element Owner |
void |
updateElementProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
updateProtectionGroups for a securedElement/Object |
Methods inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean |
---|
disableAndRememberPreviousValueForCollectionDescriptorCascadeRetrieve, disableAndRememberPreviousValueForObjectDescriptorCascadeRetrieve, ejbActivate, ejbPassivate, getUserTransaction, resetCollectionDescriptorCascadeToPreviousValue, resetObjectDescriptorCascadeToPreviousValue, setSessionContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
---|
ejbActivate, ejbPassivate, setSessionContext |
Constructor Detail |
---|
public SecurityManagerEJB()
Method Detail |
---|
public void ejbCreate()
ejbCreate
in class AbstractSessionBean
javax.ejb.CreateException
java.rmi.RemoteException
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
ejbRemove
in class AbstractSessionBean
javax.ejb.EJBException
java.rmi.RemoteException
public boolean isUserAuthenticated(java.lang.String userName, java.lang.String password) throws GeneralException
userName
- - The name to be authenticatedpassword
- - Password
GeneralException
public UserDesc[] getSystemUsers() throws GeneralException
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 java.lang.Exception
java.lang.Exception
public java.lang.String getUserEmail(java.lang.String userName) throws java.lang.Exception
userName
- - The name of the user whose email
to be retrieved.
java.lang.Exception
public java.lang.String getOwnersEmail(java.lang.String objectId) throws java.lang.Exception
objectId
- - The id of the object whose owners email
to be retrieved.
java.lang.Exception
public boolean isUserElementOwner(java.lang.String userName, java.lang.String objectId) throws SecurityException
userName
- - The name of the user who is to be checked for ownershipobjectId
- - Object for which the ownership is to be checked
SecurityException
public boolean isUserElementOwner(java.lang.String objectId) throws SecurityException
userName
- - The name of the user who is to be checked for ownershipobjectId
- - Object for which the ownership is to be cheked
SecurityException
public boolean canUserAccessElement(java.lang.String userId, java.lang.String objectId, java.lang.String[] roleIds) throws SecurityException
userName
- - The name of the user whose roles are
to be retrieved.
SecurityException
public SecuredElementItf canUserAccessElement(SecuredElementItf object, java.lang.String[] roleIds) throws SecurityException
userName
- - The name of the user whose roles are
to be retrieved.
SecurityException
public SecuredElementItf[] canUserAccessElement(java.lang.String userId, SecuredElementItf[] objectIds, java.lang.String[] roleIds) throws SecurityException
userName
- - The name of the user whose roles are
to be retrieved.
SecurityException
public SecuredElementItf[] canUserAccessElement(SecuredElementItf[] objectIds, java.lang.String[] roleIds) throws SecurityException
SecurityException
public SecuredElementItf[] canUserAccessElement(SecuredElementItf[] objectIds, java.lang.String[] roleIds, ProtectionGroupData[] protectionGroups) throws SecurityException
SecurityException
public SecuredElementItf[] canUserAccessOwnerElement(SecuredElementItf[] objectIds) throws SecurityException
SecurityException
public SecuredElementItf[] canUserAccessOwnerElementOnly(SecuredElementItf[] objectIds) throws SecurityException
SecurityException
public int createSecuredElement(SecuredElementData secElemData) throws SecurityException
SecuredElementData
- - Contains the attributes need to make a securedElement
SecurityException
public ProtectionGroupData[] getProtectionGroups() throws SecurityException
SecurityException
public ProtectionGroupData[] getElementProtectionGroups(java.lang.String objectId) throws SecurityException
objectId
- - Id of object for which protection groups are to be found.
SecurityException
public void setSecuredElementOwner(java.lang.String objectId, java.lang.String userName) throws SecurityException
objectId
- - ID for object to which new owner is being assigned.userName
- - Name for new owner
SecurityException
public void deassignSecuredElementOwner(java.lang.String objectId) throws SecurityException
objectId
- - ID for object to which owner is being deassigned.
SecurityException
public void setElementProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws SecurityException
objectId
- - ID for object.protectionGroups
- - protectionGroups to which the object needs to be assigned.
SecurityException
public void updateElementProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws SecurityException
objectId
- - ID for object.protectionGroups
- - protectionGroups to which the object needs to be assigned.
SecurityException
public void removeSecuredElement(java.lang.String objectId) throws SecurityException
objectId
- - The name of the user whose roles are
to be retrieved.
SecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |