public enum GrouperLoaderType extends Enum<GrouperLoaderType>
Enum Constant and Description |
---|
ATTR_SQL_SIMPLE
simple sql query where all results are all members of group.
|
CHANGE_LOG
various change log jobs on the system
|
LDAP_GROUP_LIST
ldap query where objects are group, and filter is for multi-valued object where all results are all members of group.
|
LDAP_GROUPS_FROM_ATTRIBUTES
ldap query where objects are users, and filter is for multi-valued object where all results are affiliations or
something that represents the groups of users.
|
LDAP_SIMPLE
simple ldap query where all results are all members of group.
|
MAINTENANCE
various maintenance jobs on the system
|
PSP_FULL_SYNC
Run a psp full sync.
|
SQL_GROUP_LIST
sql query where there is a column for group_name (which is the
extension of each stem, and the extension of the group, separated
by colons)
must have a subject_id col, and optionally a subject_source_id col.
|
SQL_SIMPLE
simple sql query where all results are all members of group.
|
Modifier and Type | Field and Description |
---|---|
static String |
GROUPER_CHANGE_LOG_CONSUMER_PREFIX
change log consumer prefix
|
static String |
GROUPER_CHANGE_LOG_TEMP_TO_CHANGE_LOG
change log temp to change log
|
static String |
GROUPER_ENABLED_DISABLED
maintenance enabledDisabled name
|
static String |
GROUPER_ESB_HTTP_LISTENER
esb http listener name
|
static String |
GROUPER_ESB_XMMP_LISTENER
esb xmpp listener name
|
static String |
GROUPER_EXTERNAL_SUBJ_CALC_FIELDS
maintenance, calculate enabled/disabled fields
|
static String |
GROUPER_GROUP_SYNC
group sync job name
|
static String |
GROUPER_REPORT
maintenance grouper report name
|
static String |
GROUPER_RULES
maintenance rules name
|
static String |
MAINTENANCE_CLEAN_LOGS
maintenance clean logs name
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
attributeOptional(String attributeName)
see if an attribute if optional or not (if not, then it is either required or forbidden)
|
abstract boolean |
attributeRequired(String attributeName)
/**
see if an attribute if required or not
|
static String |
attributeValueOrDefaultOrNull(AttributeAssign attributeAssign,
String attributeDefName)
get an attribute value, or null, or a default if exists
|
static String |
attributeValueOrDefaultOrNull(Group group,
String attributeName)
get an attribute value, or null, or a default if exists
|
static String |
attributeValueOrDefaultOrNullAttrDef(AttributeDef attributeDef,
String attributeName)
get an attribute value, or null, or a default if exists
|
boolean |
dayListContainsToday(String dayList) |
static void |
initPrivilegesForGroup(GrouperLoaderResultset grouperLoaderResultsetOverall,
Map<String,Map<Privilege,List<Subject>>> privsToAddForGroup,
Map<String,Subject> subjectCache,
Privilege privilege,
String subjectsWithPrivilege)
init the privilege for a group, add entries to the privsToAdd method
|
static List<Subject> |
lookupSubject(Map<String,Subject> subjectCache,
String subjectIdOrIdentifierList)
take in a subject list, comma separated
|
boolean |
nameForThisType(String jobName)
if this job name is for this type
|
abstract void |
runJob(LoaderJobBean loaderJobBean)
sync up a group membership based on query and db.
|
static void |
scheduleAttributeLoads()
for all attribute jobs in this loader type, schedule them with quartz
|
static void |
scheduleLdapLoads()
for all ldap jobs in this loader type, schedule them with quartz
|
static void |
scheduleLoads()
for all jobs in this loader type, schedule them with quartz
|
static void |
syncGroupList(GrouperLoaderResultset grouperLoaderResultsetOverall,
long startTime,
GrouperSession grouperSession,
List<Group> andGroups,
List<GroupType> groupTypes,
String groupLikeString,
String groupNameOverall,
Hib3GrouperLoaderLog hib3GrouploaderLogOverall,
GrouperLoaderStatus[] statusOverall,
GrouperLoaderDb grouperLoaderDb,
Map<String,String> groupNameToDisplayName,
Map<String,String> groupNameToDescription,
Map<String,Map<Privilege,List<Subject>>> privsToAdd,
Set<String> groupNamesFromGroupQuery)
sync a group list
|
protected static void |
syncOneAttributeDef(String attributeDefName,
Hib3GrouperLoaderLog hib3GrouploaderLog,
GrouperLoaderDb grouperLoaderDb,
long startTime,
GrouperSession grouperSession,
String attributeLoaderAttrsLike,
String attributeLoaderAttrQuery,
String attributeLoaderAttrSetQuery,
String attributeLoaderActionQuery,
String attributeLoaderActionSetQuery) |
protected static void |
syncOneGroupMembership(String groupName,
String groupDisplayNameForInsert,
String groupDescription,
Hib3GrouperLoaderLog hib3GrouploaderLog,
long startTime,
GrouperLoaderResultset grouperLoaderResultset,
boolean groupList,
GrouperSession grouperSession,
List<Group> andGroups,
List<GroupType> groupTypes,
Map<Privilege,List<Subject>> groupPrivsToAdd,
Set<org.apache.commons.collections.keyvalue.MultiKey> groupMembers) |
static GrouperLoaderType |
typeForThisName(String jobName)
return the type for this job name
|
static GrouperLoaderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrouperLoaderType |
valueOfIgnoreCase(String string,
boolean exceptionOnNull)
do a case-insensitive matching
|
static GrouperLoaderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrouperLoaderType SQL_SIMPLE
public static final GrouperLoaderType MAINTENANCE
public static final GrouperLoaderType SQL_GROUP_LIST
public static final GrouperLoaderType CHANGE_LOG
public static final GrouperLoaderType ATTR_SQL_SIMPLE
public static final GrouperLoaderType LDAP_SIMPLE
public static final GrouperLoaderType LDAP_GROUP_LIST
public static final GrouperLoaderType LDAP_GROUPS_FROM_ATTRIBUTES
public static final GrouperLoaderType PSP_FULL_SYNC
public static final String MAINTENANCE_CLEAN_LOGS
public static final String GROUPER_REPORT
public static final String GROUPER_ENABLED_DISABLED
public static final String GROUPER_EXTERNAL_SUBJ_CALC_FIELDS
public static final String GROUPER_RULES
public static final String GROUPER_GROUP_SYNC
public static final String GROUPER_CHANGE_LOG_TEMP_TO_CHANGE_LOG
public static final String GROUPER_CHANGE_LOG_CONSUMER_PREFIX
public static final String GROUPER_ESB_HTTP_LISTENER
public static final String GROUPER_ESB_XMMP_LISTENER
public static GrouperLoaderType[] values()
for (GrouperLoaderType c : GrouperLoaderType.values()) System.out.println(c);
public static GrouperLoaderType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void initPrivilegesForGroup(GrouperLoaderResultset grouperLoaderResultsetOverall, Map<String,Map<Privilege,List<Subject>>> privsToAddForGroup, Map<String,Subject> subjectCache, Privilege privilege, String subjectsWithPrivilege)
grouperLoaderResultsetOverall
- result set with groupsprivsToAddForGroup
- map to add results tosubjectCache
- to help with resolvingprivilege
- to addsubjectsWithPrivilege
- the subjects who have the privilegepublic static void syncGroupList(GrouperLoaderResultset grouperLoaderResultsetOverall, long startTime, GrouperSession grouperSession, List<Group> andGroups, List<GroupType> groupTypes, String groupLikeString, String groupNameOverall, Hib3GrouperLoaderLog hib3GrouploaderLogOverall, GrouperLoaderStatus[] statusOverall, GrouperLoaderDb grouperLoaderDb, Map<String,String> groupNameToDisplayName, Map<String,String> groupNameToDescription, Map<String,Map<Privilege,List<Subject>>> privsToAdd, Set<String> groupNamesFromGroupQuery)
grouperLoaderResultsetOverall
- startTime
- grouperSession
- andGroups
- groupTypes
- groupLikeString
- groupNameOverall
- hib3GrouploaderLogOverall
- statusOverall
- grouperLoaderDb
- groupNameToDisplayName
- groupNameToDescription
- privsToAdd
- groupNamesFromGroupQuery
- if not null, this is the list of groups to syncpublic boolean nameForThisType(String jobName)
jobName
- public static GrouperLoaderType typeForThisName(String jobName)
jobName
- public abstract boolean attributeRequired(String attributeName)
attributeName
- public abstract void runJob(LoaderJobBean loaderJobBean)
sync up a group membership based on query and db. Note, the first thing you should do is set the context type: GrouperContext.createNewDefaultContext(GrouperEngineBuiltin.LOADER, false, true);
loaderJobBean
- is the bean datapublic abstract boolean attributeOptional(String attributeName)
attributeName
- public static List<Subject> lookupSubject(Map<String,Subject> subjectCache, String subjectIdOrIdentifierList)
subjectCache
- subjectIdOrIdentifierList
- public static String attributeValueOrDefaultOrNull(Group group, String attributeName)
group
- attributeName
- public boolean dayListContainsToday(String dayList)
dayList
- public static void scheduleLoads()
protected static void syncOneGroupMembership(String groupName, String groupDisplayNameForInsert, String groupDescription, Hib3GrouperLoaderLog hib3GrouploaderLog, long startTime, GrouperLoaderResultset grouperLoaderResultset, boolean groupList, GrouperSession grouperSession, List<Group> andGroups, List<GroupType> groupTypes, Map<Privilege,List<Subject>> groupPrivsToAdd, Set<org.apache.commons.collections.keyvalue.MultiKey> groupMembers)
groupName
- groupDisplayNameForInsert
- can be null to default to group name or extension. This is display names
if a group needs to be created. But the display extension will be changed if differentgroupDescription
- can be null to default to generated description, or the description of the grouphib3GrouploaderLog
- startTime
- grouperLoaderResultset
- groupList
- if this is a list of groups, then do something else with group name and the resultsetgrouperSession
- andGroups
- groupTypes
- comma separated group typesgroupPrivsToAdd
- privgroupMembers
- if a grouplist, this is a pre-fetched list of group members, else this is null,
meaning get all members herepublic static String attributeValueOrDefaultOrNull(AttributeAssign attributeAssign, String attributeDefName)
attributeAssign
- attributeDefName
- public static String attributeValueOrDefaultOrNullAttrDef(AttributeDef attributeDef, String attributeName)
attributeDef
- attributeName
- protected static void syncOneAttributeDef(String attributeDefName, Hib3GrouperLoaderLog hib3GrouploaderLog, GrouperLoaderDb grouperLoaderDb, long startTime, GrouperSession grouperSession, String attributeLoaderAttrsLike, String attributeLoaderAttrQuery, String attributeLoaderAttrSetQuery, String attributeLoaderActionQuery, String attributeLoaderActionSetQuery)
attributeDefName
- hib3GrouploaderLog
- grouperLoaderDb
- startTime
- grouperSession
- attributeLoaderAttrsLike
- attributeLoaderAttrQuery
- attributeLoaderAttrSetQuery
- attributeLoaderActionQuery
- attributeLoaderActionSetQuery
- public static void scheduleAttributeLoads()
public static void scheduleLdapLoads()
public static GrouperLoaderType valueOfIgnoreCase(String string, boolean exceptionOnNull)
string
- exceptionOnNull
- will not allow null or blank entriesCopyright © 2016 Internet2. All rights reserved.