|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.db.ManagerDB
gov.nih.nci.caarray.services.security.SecurityAdminService
public class SecurityAdminService
This class provides the security admin services such as the creation/update/deletion of a protection element and assigning/de-assigning a protection element to a role.
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB |
---|
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT, ID_UNSET |
Constructor Summary | |
---|---|
SecurityAdminService()
Constructor for a new SecurityAdminService object. |
Method Summary | |
---|---|
void |
assignElementToRole(long protectElemId,
java.lang.String roleName)
Assign a protection element to a role. |
boolean |
checkAdminRole(java.lang.String userName)
|
int |
createProtectionElem_Refactored(java.lang.String applicationName,
java.lang.String objectId,
java.lang.String attrName,
java.lang.String elemName,
java.lang.String elemDesc,
java.lang.String ownerLoginName,
ProtectionGroupData[] protectionGroups)
Create a protection element. |
int |
createProtectionElem(java.lang.String applicationName,
java.lang.String objectId,
java.lang.String attrName,
java.lang.String elemName,
java.lang.String elemDesc,
java.lang.String ownerLoginName,
ProtectionGroupData[] protectionGroups)
Create a protection element. |
int |
deassignElementToRole(long protectElementId,
java.lang.String roleName)
Deprecated. Not used, marked for removal |
int |
deassignProtectionElementOwner(java.lang.String objectId)
Unset a Protected Element Owner as the data is public |
void |
deleteProtectionElem(long protectElemId)
Delete a protection element. |
java.lang.String |
getCaseSensitivityUserName(java.lang.String userName)
|
ProtectionGroupData[] |
getElementGroups(java.lang.String objectId)
Returns an array of ProtectionGroups with which the protectionElement is associated |
boolean |
getIsActiveUser(java.lang.String userName)
|
long |
getProtectionElementID(java.lang.String objectId,
java.lang.String applicationName)
Returns protection elementID based on object ID and the application name |
ProtectionGroupData[] |
getProtectionGroups()
Returns an array of ProtectionGroups which are present in the application. |
long[] |
getSequencesById(int numberOfSequences,
java.lang.Class classDesc)
|
UserDesc[] |
getUsers()
Returns an array of ProtectionGroups which are present in the application. |
static void |
main(java.lang.String[] args)
Used for test only. |
void |
removeSecuredElemProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
remove Protection/Group association from AS_PROTECTION_GROUP_ELEMENT table. |
int |
setProtectionElementOwner(java.lang.String objectId,
java.lang.String ownerLoginName)
Update a protection element owner. |
void |
setSecuredElemProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
Insert a protection element to AS_PROTECTION_GROUP_ELEMENT table. |
void |
updateProtectionElem(long protectElemId,
java.lang.String objectId,
java.lang.String attrName,
java.lang.String elemName,
java.lang.String elemDesc,
java.lang.String ownerLoginName)
Update a protection element. |
void |
updateSecuredElemProtectionGroups(java.lang.String objectId,
ProtectionGroupData[] protectionGroups)
Update ProtectionGroups associated with a protection element to AS_PROTECTION_GROUP_ELEMENT table. |
Methods inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB |
---|
clearCache, close, countObjects, countObjects, deleteByQuery, deleteMtoNRelation, deleteObject, deleteObject, deleteObject, deleteObjectByQuery, exists, getIdentifiable, getObject, getObject, getObject, getObject, getObject, getObject, getObjectIterator, getObjectIterator, getObjects, getObjects, getObjects, getPersistenceBroker, getSqlInLimit, insertMtoNRelation, insertMtoNRelation, insertObject, insertObject, link, link, removeFromCache, retrieveReference, retrieveReferences, setCascadeDelete, setCascadeRetrieve, setCascadeStore, storeObject, storeObject, unlink, unlink, updateObject, updateObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityAdminService()
SecurityAdminService object.
Method Detail |
---|
public UserDesc[] getUsers() throws DBException
DBException
public boolean checkAdminRole(java.lang.String userName) throws DBException
DBException
public boolean getIsActiveUser(java.lang.String userName) throws DBException
DBException
public long[] getSequencesById(int numberOfSequences, java.lang.Class classDesc)
public int createProtectionElem(java.lang.String applicationName, java.lang.String objectId, java.lang.String attrName, java.lang.String elemName, java.lang.String elemDesc, java.lang.String ownerLoginName, ProtectionGroupData[] protectionGroups) throws DBException
applicationName
- application nameobjectId
- object IDattrName
- attribute nameelemName
- element nameelemDesc
- element descriptionownerLoginName
- element owner's login name
DBException
public int createProtectionElem_Refactored(java.lang.String applicationName, java.lang.String objectId, java.lang.String attrName, java.lang.String elemName, java.lang.String elemDesc, java.lang.String ownerLoginName, ProtectionGroupData[] protectionGroups) throws DBException
applicationName
- application nameobjectId
- object IDattrName
- attribute nameelemName
- element nameelemDesc
- element descriptionownerLoginName
- element owner's login name
DBException
public void setSecuredElemProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws DBException
objectId
- object idprotectionGroups
- protection groups to which the object is associated
DBException
public void updateSecuredElemProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws DBException
objectId
- object idprotectionGroups
- protection groups to which the object is to be associated
DBException
public void removeSecuredElemProtectionGroups(java.lang.String objectId, ProtectionGroupData[] protectionGroups) throws DBException
objectId
- object idprotectionGroups
- protection groups from which the object is dissociated
DBException
public void updateProtectionElem(long protectElemId, java.lang.String objectId, java.lang.String attrName, java.lang.String elemName, java.lang.String elemDesc, java.lang.String ownerLoginName) throws DBException
protectElemId
- protection element Id, a required field.objectId
- object ID, set to null if there is no changeattrName
- attribute name, set to null if there is no changeelemName
- element name, set to null if there is no changeelemDesc
- element description, set to null if there is no changeownerLoginName
- element owner's login name, set to null if there is no change
DBException
public void deleteProtectionElem(long protectElemId) throws DBException
protectElemId
- protection element Id, a required field.
DBException
public void assignElementToRole(long protectElemId, java.lang.String roleName) throws DBException
protectElemId
- protection element IdroleName
- role name
DBException
public int deassignElementToRole(long protectElementId, java.lang.String roleName) throws DBException
protectElemId
- protection element IdroleName
- role name
DBException
public ProtectionGroupData[] getProtectionGroups() throws DBException
DBException
public ProtectionGroupData[] getElementGroups(java.lang.String objectId) throws DBException
objectId
- Id of the secured element
DBException
public int setProtectionElementOwner(java.lang.String objectId, java.lang.String ownerLoginName) throws DBException
objectId
- application Object IDownerLoginName
- element owner's login name,
DBException
public int deassignProtectionElementOwner(java.lang.String objectId) throws DBException
objectId
- application Object ID
DBException
public long getProtectionElementID(java.lang.String objectId, java.lang.String applicationName) throws DBException
objectId
- application Object IDapplicationName
- element owner's login name,
DBException
public static void main(java.lang.String[] args)
public java.lang.String getCaseSensitivityUserName(java.lang.String userName) throws DBException
DBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |