public class GrouperLoaderResultset extends Object
Modifier and Type | Class and Description |
---|---|
class |
GrouperLoaderResultset.Row
simple struct for subjects
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
static Map<String,List<String>> |
getLdapMembershipsForLdapGroupsFromAttributes(String ldapServerId,
String filter,
String searchDn,
String subjectAttributeName,
String groupAttributeName,
String sourceId,
String subjectIdType,
String ldapSearchScope,
Hib3GrouperLoaderLog hib3GrouperLoaderLog,
String overallGroupName,
String subjectExpression,
String extraAttributes,
String groupNameExpression,
String groupDisplayNameExpression,
String groupDescriptionExpression,
Map<String,String> groupNameToDisplayName,
Map<String,String> groupNameToDescription,
String ldapAttributeFilterExpression,
String subjectIdIfIncremental,
String resultsTransformationClass) |
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,
String resultsTransformationClass)
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
|
static void |
main(String[] args) |
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
|
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
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()
public static void main(String[] args)
args
- 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, String resultsTransformationClass)
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 falseresultsTransformationClass
- public static Map<String,List<String>> getLdapMembershipsForLdapGroupsFromAttributes(String ldapServerId, String filter, String searchDn, String subjectAttributeName, String groupAttributeName, String sourceId, String subjectIdType, String ldapSearchScope, Hib3GrouperLoaderLog hib3GrouperLoaderLog, String overallGroupName, String subjectExpression, String extraAttributes, String groupNameExpression, String groupDisplayNameExpression, String groupDescriptionExpression, Map<String,String> groupNameToDisplayName, Map<String,String> groupNameToDescription, String ldapAttributeFilterExpression, String subjectIdIfIncremental, String resultsTransformationClass)
ldapServerId
- filter
- searchDn
- subjectAttributeName
- groupAttributeName
- sourceId
- subjectIdType
- ldapSearchScope
- jobName
- hib3GrouperLoaderLog
- overallGroupName
- subjectExpression
- extraAttributes
- groupNameExpression
- groupDisplayNameExpression
- groupDescriptionExpression
- groupNameToDisplayName
- groupNameToDescription
- ldapAttributeFilterExpression
- subjectIdIfIncremental
- resultsTransformationClass
- public int columnIndex(String columnNameInput)
columnNameInput
- public int columnIndex(String columnNameInput, boolean throwErrorIfNotFound)
columnNameInput
- throwErrorIfNotFound
- if should throw error if not foundpublic 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
- Copyright © 2016 Internet2. All rights reserved.