Package edu.vt.middleware.ldap.ed
Class EdId
- java.lang.Object
-
- edu.vt.middleware.ldap.ed.EdServiceTemplate
-
- edu.vt.middleware.ldap.ed.EdId
-
- All Implemented Interfaces:
EdOperation
,EdService
public final class EdId extends EdServiceTemplate
EdId provides for the common ED client operations acting on the ED-ID directory.- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.ed.EdServiceTemplate
MAPPER
-
-
Constructor Summary
Constructors Constructor Description EdId()
Creates a new instance of an ED client object that can perform operations on the production ED-ID directory.EdId(DirectoryEnv env)
Creates a new instance of an ED client object that can perform operations on an ED-ID directory of the given environment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VirginiaTechEntitlement>
getVirginiaTechEntitlementsByPid(String authId)
Gets a List of VirginiaTechEntitlement objects from a given authId.List<VirginiaTechEntitlement>
getVirginiaTechEntitlementsByViewerService(String uusidOrDn)
Gets a List of VirginiaTechEntitlement objects from a given viewer uusid.-
Methods inherited from class edu.vt.middleware.ldap.ed.EdServiceTemplate
close, getAttributes, getConnectionFactory, getDn, getEnvironment, getGroupMembership, getMemberOf, getMembers, getType, getVirginiaTechGroup, getVirginiaTechPerson, initialize, search, setEnvironment, setType, toGroupUugid, toUusidDn
-
-
-
-
Constructor Detail
-
EdId
public EdId()
Creates a new instance of an ED client object that can perform operations on the production ED-ID directory.
-
EdId
public EdId(DirectoryEnv env)
Creates a new instance of an ED client object that can perform operations on an ED-ID directory of the given environment.- Parameters:
env
- directory env
-
-
Method Detail
-
getVirginiaTechEntitlementsByViewerService
public List<VirginiaTechEntitlement> getVirginiaTechEntitlementsByViewerService(String uusidOrDn) throws org.ldaptive.LdapException
Gets a List of VirginiaTechEntitlement objects from a given viewer uusid.- Parameters:
uusidOrDn
- uusidOrDn can be the name of the viewer service directly or its full DN.- Returns:
List
<VirginiaTechEntitlement
> objects- Throws:
org.ldaptive.LdapException
- For any LDAP errors.
-
getVirginiaTechEntitlementsByPid
public List<VirginiaTechEntitlement> getVirginiaTechEntitlementsByPid(String authId) throws org.ldaptive.LdapException
Gets a List of VirginiaTechEntitlement objects from a given authId.- Parameters:
authId
- authId of the person whose entitlements will be retrieved.- Returns:
List
<VirginiaTechEntitlement
> objects- Throws:
org.ldaptive.LdapException
- For any LDAP errors.
-
-