|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.ws.server.HTMFAdminWSHelper
org.hardtokenmgmt.ws.server.HTMFManageAdminsHelper
public class HTMFManageAdminsHelper
Contains help methods for administrators etc.
| Field Summary |
|---|
| Fields inherited from class org.hardtokenmgmt.ws.server.HTMFAdminWSHelper |
|---|
intAdmin, softtokenids, softtokennames |
| Constructor Summary | |
|---|---|
HTMFManageAdminsHelper()
|
|
| Method Summary | |
|---|---|
static boolean |
existsCertSNInAdminGroup(org.ejbca.core.model.log.Admin caller,
AdminGroupVO agvo,
java.lang.String certSN,
int caId)
Return if the administrators unique Id exists in the specified administration group. |
static boolean |
existsUniqueIdInAdminGroup(org.ejbca.core.model.log.Admin caller,
AdminGroupVO agvo,
java.lang.String uniqueId)
Return if the administrators unique Id exists in the specified administration group. |
static java.util.List<AdminDataVO> |
filterSuperAdmins(java.util.List<AdminDataVO> admins,
java.util.Set<AdminDataVO> superAdmins,
java.lang.String orgId)
Method that filter out administrators belonging to the super admin group. |
static org.ejbca.core.model.authorization.AdminGroup |
findSuperAdminGroup()
|
static java.util.Set<AdminDataVO> |
findSuperAdmins(java.util.List<AdminDataVO> admins)
|
static java.util.List<AdminGroupVO> |
getAdminGroups(org.ejbca.core.model.log.Admin caller,
java.lang.String orgId)
Method that fetches all authorized administration groups belonging to the organization. |
static java.util.List<AdminDataVO> |
getAdministratorsInOrganization(org.ejbca.core.model.log.Admin caller,
java.lang.String orgId,
java.util.List<java.lang.Integer> caIDs)
Returns a list of AdminDataVO of all administrators belonging to an organization (a given set of caIds) The administration groups and CertSN aren't populated with this call, that have to be done separately. |
static java.util.Set<java.lang.String> |
getOrgsWithCertSNMatch()
|
static java.lang.String |
getUniqueIdFieldFromDN(java.lang.String dN)
Returns the unique id field from DN or null if not exists. |
static java.lang.String |
getUniqueIdFieldType()
|
static void |
modifyAdminGroup(org.ejbca.core.model.log.Admin caller,
AdminGroupVO agvo,
java.lang.String matchValue,
int caId,
boolean matchCertSN,
boolean add)
Modifies an administration group to add or remove an AdminEntity. |
| Methods inherited from class org.hardtokenmgmt.ws.server.HTMFAdminWSHelper |
|---|
convertUserDataVOWS, getBasicGlobalSettings, getCAIdsForOrganization, getCertificate, getOrganizationIdMapper, getTokenId, getUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMFManageAdminsHelper()
| Method Detail |
|---|
public static java.util.List<AdminDataVO> filterSuperAdmins(java.util.List<AdminDataVO> admins,
java.util.Set<AdminDataVO> superAdmins,
java.lang.String orgId)
admins - list of adminDataVOsorgId - of the organization
public static final org.ejbca.core.model.authorization.AdminGroup findSuperAdminGroup()
public static java.util.Set<AdminDataVO> findSuperAdmins(java.util.List<AdminDataVO> admins)
public static java.util.List<AdminGroupVO> getAdminGroups(org.ejbca.core.model.log.Admin caller,
java.lang.String orgId)
caller - calling administratororgId - orgId to search for
public static java.util.List<AdminDataVO> getAdministratorsInOrganization(org.ejbca.core.model.log.Admin caller,
java.lang.String orgId,
java.util.List<java.lang.Integer> caIDs)
throws org.ejbca.core.model.authorization.AuthorizationDeniedException
caller - the administrator performing the callorgId - the unique organization id.caIDs - belonging to the organization
org.ejbca.core.model.authorization.AuthorizationDeniedExceptionpublic static java.lang.String getUniqueIdFieldType()
public static java.lang.String getUniqueIdFieldFromDN(java.lang.String dN)
public static java.util.Set<java.lang.String> getOrgsWithCertSNMatch()
public static boolean existsUniqueIdInAdminGroup(org.ejbca.core.model.log.Admin caller,
AdminGroupVO agvo,
java.lang.String uniqueId)
caller - the administrator performing the callagvo - the administration groupuniqueId - the unique Id of the administrator.
public static boolean existsCertSNInAdminGroup(org.ejbca.core.model.log.Admin caller,
AdminGroupVO agvo,
java.lang.String certSN,
int caId)
caller - the administrator performing the callagvo - the administration groupcertSN - the certificate SN of the certificatecaId - of the certificate.
public static void modifyAdminGroup(org.ejbca.core.model.log.Admin caller,
AdminGroupVO agvo,
java.lang.String matchValue,
int caId,
boolean matchCertSN,
boolean add)
caller - the administrator performing the callagvo - the administration groupmatchValue - the certSN or unique ID to add or remove from administration groupcaId - of the certificate.matchCertSN - true if certificate SN should be used otherwise will unique id be used.add - true if the user should be added to the group if it doesn't exist, otherwise it will be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||