|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.app.loader.db.GrouperLoaderResultset
public class GrouperLoaderResultset
encapsulate a resultset into this resultset to be case-insensitive and column-order insensitive
Nested Class Summary | |
---|---|
class |
GrouperLoaderResultset.Row
simple struct for subjects |
Field Summary | |
---|---|
static String |
ACTION_NAME_COL
|
static String |
ATTR_DESCRIPTION_COL
|
static String |
ATTR_DISPLAY_NAME_COL
|
static String |
ATTR_NAME_COL
|
static String |
GROUP_ADMINS_COL
|
static String |
GROUP_ATTR_READERS_COL
|
static String |
GROUP_ATTR_UPDATERS_COL
|
static String |
GROUP_DESCRIPTION_COL
|
static String |
GROUP_DISPLAY_NAME_COL
|
static String |
GROUP_NAME_COL
|
static String |
GROUP_OPTINS_COL
|
static String |
GROUP_OPTOUTS_COL
|
static String |
GROUP_READERS_COL
|
static String |
GROUP_UPDATERS_COL
|
static String |
GROUP_VIEWERS_COL
|
static String |
IF_HAS_ACTION_NAME_COL
|
static String |
IF_HAS_ATTR_NAME_COL
|
static String |
SUBJECT_ID_COL
|
static String |
SUBJECT_ID_OR_IDENTIFIER_COL
|
static String |
SUBJECT_IDENTIFIER_COL
|
static String |
SUBJECT_SOURCE_ID_COL
|
static String |
THEN_HAS_ACTION_NAME_COL
|
static String |
THEN_HAS_ATTR_NAME_COL
|
Constructor Summary | |
---|---|
GrouperLoaderResultset()
|
|
GrouperLoaderResultset(GrouperLoaderDb grouperLoaderDb,
String query,
String jobName,
Hib3GrouperLoaderLog hib3GrouperLoaderLog)
get a resultset based on a db and query |
|
GrouperLoaderResultset(GrouperLoaderResultset parentResultSet,
String groupName)
get a resultset on another resultset and a group name |
|
GrouperLoaderResultset(String ldapServerId,
String filter,
String searchDn,
String subjectAttribute,
String sourceId,
String subjectIdType,
String ldapSearchScope,
String jobName,
Hib3GrouperLoaderLog hib3GrouperLoaderLog,
String ldapSubjectExpression)
get a resultset based on an ldap server and filter |
Method Summary | |
---|---|
void |
assertColumnName(String columnName)
make sure this column name is here |
void |
bulkLookupSubjects()
if we should bulk lookup subjects to add/remove |
int |
columnIndex(String columnNameInput)
find a column index in the resultset |
int |
columnIndex(String columnNameInput,
boolean throwErrorIfNotFound)
find a column index in the resultset |
GrouperLoaderResultset.Row |
find(String subjectId,
String subjectSourceId,
String subjectIdentifier0)
find a row and return |
Object |
getCell(int rowIndex,
String columnName,
boolean exceptionOnColNotFound)
get a cell in the data structure |
List<String> |
getColumnNames()
return the column names |
Set<String> |
groupNames()
get a set of group names |
boolean |
hasColumnName(String columnName)
make sure this column name is here |
void |
initForLdapGroupsFromAttributes(String ldapServerId,
String filter,
String searchDn,
String subjectAttributeName,
String groupAttributeName,
String sourceId,
String subjectIdType,
String ldapSearchScope,
String jobName,
Hib3GrouperLoaderLog hib3GrouperLoaderLog,
String subjectExpression,
String extraAttributes,
String groupNameExpression,
String groupDisplayNameExpression,
String groupDescriptionExpression,
Map<String,String> groupNameToDisplayName,
Map<String,String> groupNameToDescription,
String ldapAttributeFilterExpression)
get a resultset based on an ldap server and filter for ldap list of groups |
void |
initForLdapListOfGroups(String ldapServerId,
String filter,
String searchDn,
String subjectAttributeName,
String sourceId,
String subjectIdType,
String ldapSearchScope,
String jobName,
Hib3GrouperLoaderLog hib3GrouperLoaderLog,
String subjectExpression,
String extraAttributes,
String groupNameExpression,
String groupDisplayNameExpression,
String groupDescriptionExpression,
Map<String,String> groupNameToDisplayName,
Map<String,String> groupNameToDescription,
Set<String> groupNames)
get a resultset based on an ldap server and filter for ldap list of groups |
int |
numberOfRows()
return the number of rows |
void |
remove(GrouperLoaderResultset.Row row)
remove by row |
void |
remove(int i)
remove by row index |
GrouperLoaderResultset.Row |
retrieveRow(int i)
find a certain row |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SUBJECT_ID_COL
public static final String SUBJECT_IDENTIFIER_COL
public static final String SUBJECT_ID_OR_IDENTIFIER_COL
public static final String ACTION_NAME_COL
public static final String GROUP_NAME_COL
public static final String GROUP_DISPLAY_NAME_COL
public static final String GROUP_DESCRIPTION_COL
public static final String GROUP_VIEWERS_COL
public static final String GROUP_READERS_COL
public static final String GROUP_UPDATERS_COL
public static final String GROUP_ADMINS_COL
public static final String ATTR_NAME_COL
public static final String ATTR_DISPLAY_NAME_COL
public static final String ATTR_DESCRIPTION_COL
public static final String IF_HAS_ATTR_NAME_COL
public static final String THEN_HAS_ATTR_NAME_COL
public static final String IF_HAS_ACTION_NAME_COL
public static final String THEN_HAS_ACTION_NAME_COL
public static final String GROUP_OPTINS_COL
public static final String GROUP_OPTOUTS_COL
public static final String GROUP_ATTR_READERS_COL
public static final String GROUP_ATTR_UPDATERS_COL
public static final String SUBJECT_SOURCE_ID_COL
Constructor Detail |
---|
public GrouperLoaderResultset(GrouperLoaderResultset parentResultSet, String groupName)
parentResultSet
- groupName
- public GrouperLoaderResultset(GrouperLoaderDb grouperLoaderDb, String query, String jobName, Hib3GrouperLoaderLog hib3GrouperLoaderLog)
grouperLoaderDb
- query
- jobName
- hib3GrouperLoaderLog
- public GrouperLoaderResultset(String ldapServerId, String filter, String searchDn, String subjectAttribute, String sourceId, String subjectIdType, String ldapSearchScope, String jobName, Hib3GrouperLoaderLog hib3GrouperLoaderLog, String ldapSubjectExpression)
ldapServerId
- server id in grouper-loader.propertiesfilter
- ldap filter querysearchDn
- place in ldap where search starts fromsubjectAttribute
- attribute where the subjectId, or subjectIdentifier, or subjectIdOrIdentifier issourceId
- if all subjects come from one source, put the sourceId heresubjectIdType
- the type of the subjectId, either: subjectId, subjectIdentifier, or subjectIdOrIdentifierldapSearchScope
- either OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEjobName
- for logging if problemhib3GrouperLoaderLog
- ldapSubjectExpression
- public GrouperLoaderResultset()
Method Detail |
---|
public void bulkLookupSubjects()
public Set<String> groupNames()
public void initForLdapListOfGroups(String ldapServerId, String filter, String searchDn, String subjectAttributeName, String sourceId, String subjectIdType, String ldapSearchScope, String jobName, Hib3GrouperLoaderLog hib3GrouperLoaderLog, String subjectExpression, String extraAttributes, String groupNameExpression, String groupDisplayNameExpression, String groupDescriptionExpression, Map<String,String> groupNameToDisplayName, Map<String,String> groupNameToDescription, Set<String> groupNames)
ldapServerId
- server id in grouper-loader.propertiesfilter
- ldap filter querysearchDn
- place in ldap where search starts fromsubjectAttributeName
- attribute where the subjectId, or subjectIdentifier, or subjectIdOrIdentifier issourceId
- if all subjects come from one source, put the sourceId heresubjectIdType
- the type of the subjectId, either: subjectId, subjectIdentifier, or subjectIdOrIdentifierldapSearchScope
- either OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEjobName
- for logging if problemhib3GrouperLoaderLog
- subjectExpression
- extraAttributes
- groupNameExpression
- groupDisplayNameExpression
- groupDescriptionExpression
- groupNameToDisplayName
- map to translate group name to display namegroupNameToDescription
- map to translate group name to descriptiongroupNames
- keep track of which group names there arepublic void initForLdapGroupsFromAttributes(String ldapServerId, String filter, String searchDn, String subjectAttributeName, String groupAttributeName, String sourceId, String subjectIdType, String ldapSearchScope, String jobName, Hib3GrouperLoaderLog hib3GrouperLoaderLog, String subjectExpression, String extraAttributes, String groupNameExpression, String groupDisplayNameExpression, String groupDescriptionExpression, Map<String,String> groupNameToDisplayName, Map<String,String> groupNameToDescription, String ldapAttributeFilterExpression)
ldapServerId
- server id in grouper-loader.propertiesfilter
- ldap filter querysearchDn
- place in ldap where search starts fromsubjectAttributeName
- attribute where the subjectId, or subjectIdentifier, or subjectIdOrIdentifier isgroupAttributeName
- attribute (e.g. affiliation) of subject which holds link to groupsourceId
- if all subjects come from one source, put the sourceId heresubjectIdType
- the type of the subjectId, either: subjectId, subjectIdentifier, or subjectIdOrIdentifierldapSearchScope
- either OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEjobName
- for logging if problemhib3GrouperLoaderLog
- subjectExpression
- extraAttributes
- groupNameExpression
- groupDisplayNameExpression
- groupDescriptionExpression
- groupNameToDisplayName
- map to translate group name to display namegroupNameToDescription
- map to translate group name to descriptionldapAttributeFilterExpression
- if specified, this will filter the attributes that are turned into
groups, should return true or falsepublic int columnIndex(String columnNameInput)
columnNameInput
-
public int columnIndex(String columnNameInput, boolean throwErrorIfNotFound)
columnNameInput
- throwErrorIfNotFound
- if should throw error if not found
public GrouperLoaderResultset.Row retrieveRow(int i)
i
-
public int numberOfRows()
public List<String> getColumnNames()
public Object getCell(int rowIndex, String columnName, boolean exceptionOnColNotFound)
rowIndex
- columnName
- exceptionOnColNotFound
-
public void assertColumnName(String columnName)
columnName
- public boolean hasColumnName(String columnName)
columnName
-
public void remove(GrouperLoaderResultset.Row row)
row
- public void remove(int i)
i
- public GrouperLoaderResultset.Row find(String subjectId, String subjectSourceId, String subjectIdentifier0)
subjectId
- subjectSourceId
- subjectIdentifier0
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |