Skip to content

Commit 4e287b6

Browse files
author
mchyzer
committed
ldap provisioning
1 parent a203524 commit 4e287b6

17 files changed

+2354
-0
lines changed

grouper/src/grouper/edu/internet2/middleware/grouper/app/ldapProvisioning/LdapSync.java

Lines changed: 536 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package edu.internet2.middleware.grouper.app.ldapProvisioning;
2+
3+
/**
4+
* special conditions of attributes
5+
* @author mchyzer
6+
*/
7+
public enum LdapSyncAttributeCondition {
8+
9+
/**
10+
* attribute doesnt exist
11+
*/
12+
ATTRIBUTE_NOT_EXIST,
13+
14+
/**
15+
* attribute exists with no value
16+
*/
17+
ATTRIBUTE_EXIST_WITH_NO_VALUE;
18+
19+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
package edu.internet2.middleware.grouper.app.ldapProvisioning;
2+
3+
4+
/**
5+
* information about an attribute in ldap
6+
* @author mchyzer
7+
*
8+
*/
9+
public class LdapSyncAttributeMetadata {
10+
11+
/**
12+
*
13+
*/
14+
@Override
15+
public String toString() {
16+
return this.attributeName;
17+
}
18+
19+
/**
20+
* metadata column index from zero
21+
*/
22+
private int columnIndexFromZero;
23+
24+
/**
25+
* metadata column index from zero
26+
* @return column index
27+
*/
28+
public int getColumnIndexFromZero() {
29+
return columnIndexFromZero;
30+
}
31+
32+
/**
33+
* metadata column index from zero
34+
* @param columnIndexFromZero1
35+
*/
36+
public void setColumnIndexFromZero(int columnIndexFromZero1) {
37+
this.columnIndexFromZero = columnIndexFromZero1;
38+
}
39+
40+
/**
41+
* name of attribute in ldap
42+
*/
43+
private String attributeName;
44+
45+
/**
46+
* name of attribute in ldap
47+
* @return attribute name
48+
*/
49+
public String getAttributeName() {
50+
return this.attributeName;
51+
}
52+
53+
/**
54+
* name of attribute in ldap
55+
* @param attributeName1
56+
*/
57+
public void setAttributeName(String attributeName1) {
58+
this.attributeName = attributeName1;
59+
}
60+
61+
/**
62+
* attribute type
63+
*/
64+
private LdapSyncAttributeType ldapSyncAttributeType;
65+
66+
/**
67+
* attribute type
68+
* @return attribute type
69+
*/
70+
public LdapSyncAttributeType getLdapSyncAttributeType() {
71+
return this.ldapSyncAttributeType;
72+
}
73+
74+
/**
75+
* attribute type
76+
* @param ldapSyncAttributeType1
77+
*/
78+
public void setLdapSyncAttributeType(LdapSyncAttributeType ldapSyncAttributeType1) {
79+
this.ldapSyncAttributeType = ldapSyncAttributeType1;
80+
}
81+
82+
83+
84+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package edu.internet2.middleware.grouper.app.ldapProvisioning;
2+
3+
4+
public enum LdapSyncAttributeType {
5+
6+
/**
7+
* object is a Boolean
8+
*/
9+
BOOLEAN,
10+
11+
/**
12+
* object is a string
13+
*/
14+
STRING,
15+
16+
/**
17+
* object is numeric, i.e. BigDecimal
18+
*/
19+
BIG_DECIMAL,
20+
21+
/**
22+
* object is an array of unordered strings
23+
*/
24+
STRING_ARRAY,
25+
26+
/**
27+
* object is a timestamp
28+
*/
29+
TIMESTAMP;
30+
31+
}

0 commit comments

Comments
 (0)