|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
edu.internet2.middleware.ldappc.Ldappc
public final class Ldappc
Initiates provisioning.
| Field Summary | |
|---|---|
protected Name |
rootDn
The root DN used when calculating DNs. |
static int |
STATUS_MODIFIED
Indicates the group has been modified since the last modification date. |
static int |
STATUS_NEW
Indicates the group is new since the last modification date. |
static int |
STATUS_UNCHANGED
Indicates the group has not been modified since the last modification date. |
static int |
STATUS_UNKNOWN
Indicates a last modification date was not provided so the group's status is unknown. |
| Constructor Summary | |
|---|---|
Ldappc(LdappcOptions options)
|
|
Ldappc(LdappcOptions options,
LdappcConfig configuration,
edu.vt.middleware.ldap.Ldap ldap)
|
|
| Method Summary | |
|---|---|
protected Set<edu.internet2.middleware.grouper.Group> |
buildGroupSet()
This builds the set of Groups to be provisioned. |
File |
calculate()
Calculate provisioning and write to a file. |
Name |
calculateGroupDn(edu.internet2.middleware.grouper.Group group)
This calculates the DN of the given group. |
BasicAttributes |
calculateStemAttributes(Name stemDn)
Calculate a stem's attributes, essentially ou = stem name. |
Name |
calculateStemDn(edu.internet2.middleware.grouper.Group group)
Calculates the group's parent OU DN. |
List<Name> |
calculateStemDns(edu.internet2.middleware.grouper.Group group)
Calculates all parent OU DNs for the given group. |
int |
determineStatus(edu.internet2.middleware.grouper.Group group)
Determines the status of the group based on the lastModifyTime provided in the GrouperOptions. |
File |
dryRun()
Write changes that would be made during provisioning to a file. |
edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthority |
getAttributeAuthority()
Returns the AttributeAuthority if configured to use the attribute-resolver-mapping, otherwise null. |
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver |
getAttributeResolver()
Returns the ShibbolethAttributeResolver if configured to do so, otherwise null. |
LdappcConfig |
getConfig()
Get the Grouper provisioner configuration. |
edu.vt.middleware.ldap.Ldap |
getContext()
Get the Ldap context. |
static String |
getGroupData(edu.internet2.middleware.grouper.Group group)
Returns group data string. |
protected edu.internet2.middleware.grouper.GrouperSession |
getGrouperSession()
Get a Grouper session. |
static String |
getMemberData(edu.internet2.middleware.grouper.Member member)
Returns member data string. |
LdappcOptions |
getOptions()
Get the Grouper provisioner options. |
Name |
getRootDn()
|
SubjectCache |
getSubjectCache()
Gets the subject cache. |
BufferedWriter |
getWriter()
Get the private writer. |
void |
initialize()
Load configuration, connect to ldap, instantiate the subject cache, and start Grouper. |
static void |
main(String[] args)
|
void |
provision()
Provision Grouper data to a directory. |
void |
run()
|
protected void |
schedule()
Schedule ldappc as a time task. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Name rootDn
public static final int STATUS_NEW
public static final int STATUS_MODIFIED
public static final int STATUS_UNCHANGED
public static final int STATUS_UNKNOWN
| Constructor Detail |
|---|
public Ldappc(LdappcOptions options)
public Ldappc(LdappcOptions options,
LdappcConfig configuration,
edu.vt.middleware.ldap.Ldap ldap)
| Method Detail |
|---|
public static void main(String[] args)
public void run()
run in interface Runnablerun in class TimerTaskpublic void initialize()
public void provision()
throws LdappcException,
NamingException,
IOException
NamingException
LdappcException
IOException
public File dryRun()
throws LdappcException,
NamingException,
IOException
LdappcException
NamingException
IOException
public File calculate()
throws IOException,
ConfigurationException,
NamingException
IOException
ConfigurationException
NamingExceptionprotected Set<edu.internet2.middleware.grouper.Group> buildGroupSet()
Set of Groups, possibly empty, to be provisioned.public static String getMemberData(edu.internet2.middleware.grouper.Member member)
member - Member
public static String getGroupData(edu.internet2.middleware.grouper.Group group)
group - Group
public SubjectCache getSubjectCache()
public edu.vt.middleware.ldap.Ldap getContext()
public LdappcConfig getConfig()
public LdappcOptions getOptions()
public int determineStatus(edu.internet2.middleware.grouper.Group group)
group - Group
STATUS_NEW, STATUS_MODIFIED,
STATUS_UNCHANGED or STATUS_UNKNOWN.public Name getRootDn()
public Name calculateGroupDn(edu.internet2.middleware.grouper.Group group)
throws NamingException,
LdappcException
group - Group
NamingException - thrown if a Naming error occurs.
LdappcException - thrown if the RDN attribute is not defined for the group.
public Name calculateStemDn(edu.internet2.middleware.grouper.Group group)
throws NamingException
group - Group
NamingException - thrown if a Naming exception occured.
public List<Name> calculateStemDns(edu.internet2.middleware.grouper.Group group)
throws NamingException
group -
NamingException
public BasicAttributes calculateStemAttributes(Name stemDn)
throws InvalidNameException
stemDn - the DN of the stem
InvalidNameExceptionpublic BufferedWriter getWriter()
protected edu.internet2.middleware.grouper.GrouperSession getGrouperSession()
protected void schedule()
public edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthority getAttributeAuthority()
public edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver getAttributeResolver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||