public class FieldFinder extends Object
Constructor and Description |
---|
FieldFinder() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
clear cache (e.g.
|
static GrouperCache<Boolean,Map<String,Field>> |
fieldGrouperCache()
return the field cache.
|
static Field |
find(String name)
Deprecated.
|
static Field |
find(String name,
boolean exceptionIfNotFound)
Get the specified field.
|
static Field |
find(String name,
boolean exceptionIfNotFound,
boolean includePrivilegeSearch)
Get the specified field.
|
static Set |
findAll()
Find all fields.
|
static Set<Field> |
findAllByGroupType(GroupType groupType) |
static Set<Field> |
findAllByGroupType(String groupTypeId) |
static Set<Field> |
findAllByType(FieldType type)
Find all fields of the specified type.
|
static List<String> |
findAllIdsByType(FieldType type)
find all ids by type
|
static Field |
findById(String fieldId)
Deprecated.
use the overload
|
static Field |
findById(String fieldId,
boolean exceptionIfNull)
Get the specified field by id.
|
static String |
findFieldId(String name,
String type)
Deprecated.
|
static String |
findFieldId(String name,
String type,
boolean exceptionIfNull) |
static Map<String,Field> |
internal_updateKnownFields() |
static void |
main(String[] args) |
public static GrouperCache<Boolean,Map<String,Field>> fieldGrouperCache()
return the field cache. Customize with: <cache name="edu.internet2.middleware.grouper.FieldFinder.fieldCache" maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="86400" timeToLiveSeconds="86400" overflowToDisk="false" />
@Deprecated public static String findFieldId(String name, String type)
name
- type
- public static String findFieldId(String name, String type, boolean exceptionIfNull)
name
- type
- exceptionIfNull
- public static List<String> findAllIdsByType(FieldType type)
type
- @Deprecated public static Field find(String name) throws SchemaException
Field f = FieldFinder.find(field);
name
- Name of Field
to return.SchemaException
public static Field find(String name, boolean exceptionIfNotFound)
Field f = FieldFinder.find(field);
name
- Name of Field
to return.exceptionIfNotFound
- true if exception if not found, otherwise nullSchemaException
public static Field find(String name, boolean exceptionIfNotFound, boolean includePrivilegeSearch) throws SchemaException
Field f = FieldFinder.find(field);
name
- Name of Field
to return.exceptionIfNotFound
- true if exception if not found, otherwise nullincludePrivilegeSearch
- if should also use name as privilegeSchemaException
@Deprecated public static Field findById(String fieldId)
fieldId
- fieldIdpublic static Field findById(String fieldId, boolean exceptionIfNull)
fieldId
- fieldIdexceptionIfNull
- public static Set findAll() throws GrouperException
Set fields = FieldFinder.findAll();
Set
of Field
objects.GrouperException
public static Set<Field> findAllByGroupType(GroupType groupType) throws GrouperDAOException
groupType
- GrouperDAOException
public static Set<Field> findAllByGroupType(String groupTypeId) throws GrouperDAOException
groupTypeId
- GrouperDAOException
public static Set<Field> findAllByType(FieldType type) throws SchemaException
Set types = FieldFinder.findAllByType(type);
type
- SchemaException
public static Map<String,Field> internal_updateKnownFields()
public static void clearCache()
Copyright © 2016 Internet2. All rights reserved.