gluu
|
静的公開メンバ関数 | |
static Field | findFieldFromPath (Class<?> initcls, String path) |
static Map< String, Object > | strObjMap (Object obj) |
static< T extends Annotation > T | getFieldAnnotation (String path, Class resourceClass, Class< T > annotationClass) |
static List< Object > | getAttributeValues (BaseScimResource bean, final List< Method > getters) |
static Method | getSetter (String fieldName, Class clazz) throws Exception |
static Method | getGetter (String fieldName, Class clazz) throws Exception |
static boolean | isCollection (Class clazz) |
static List< String > | getPathsInExtension (Extension extension) |
静的公開変数類 | |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | defaultCoreAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | requestCoreAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | alwaysCoreAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | neverCoreAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | requiredCoreAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | validableCoreAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | canonicalCoreAttrs |
static Map< Class<? extends BaseScimResource >, SortedSet< String > > | allAttrs |
static Map< Class<? extends BaseScimResource >, Map< String, String > > | storeRefs |
静的関数 | |
[static initializer] | |
非公開メンバ関数 | |
IntrospectUtil () | |
静的非公開メンバ関数 | |
static Field | findField (final Class<?> cls, final String fieldName) |
static Map< Class<? extends BaseScimResource >, Map< String, List< Method > > > | newEmptyMap () |
static void | resetAttrNames () |
static void | resetMaps () |
static void | freezeMaps () |
static void | traverseClassForNames (Class clazz, String prefix, List< Field > extraFields, boolean prune) throws Exception |
static Map< String, List< Method > > | computeGettersMap (List< String > attrNames, Class baseClass) throws Exception |
静的非公開変数類 | |
static Logger | log = LogManager.getLogger(IntrospectUtil.class) |
static List< String > | requiredAttrsNames |
static List< String > | defaultAttrsNames |
static List< String > | alwaysAttrsNames |
static List< String > | neverAttrsNames |
static List< String > | requestAttrsNames |
static List< String > | validableAttrsNames |
static List< String > | canonicalizedAttrsNames |
Provides miscelaneous routines to query classes/objects properties using reflection mechanisms. Additionally, this class exposes some static members that contain useful information about SCIM resources that is collected upon class loading.
|
inlinestaticpackage |
|
inlinestaticprivate |
|
inlinestaticprivate |
This method will find a java Field with a particular name. If needed, this method will search through super classes. The field does not need to be public. Adapted from https://github.com/pingidentity/scim2/blob/master/scim2-sdk-common/src/main/java/com/unboundid/scim2/common/utils/SchemaUtils.java
cls | the java Class to search. |
fieldName | the name of the field to find. |
|
inlinestatic |
Inspects a class to search for a field that corresponds to the path passed using dot notation. Every piece of the path (separated by the a dot '.') is expected to have a field with the same name in the class inspected. When such a field is found, the remainder of the path is processed using the class associated to the field, until the path is fully consumed.
This method starts from an initial class and visits ascendingly the class hierarchy with a route determined by the components found in the path parameter.
initcls | Class to start the search from |
path | A string denoting a path to a target attribute. Examples of valid paths can be: displayName, name.givenName, addresses.locality |
|
inlinestaticprivate |
|
inlinestatic |
Traverses the contents of a SCIM resource and applies a set of getter methods to collect a list of values. For example, if passing a UserResource object and list of getters such as [getAdresses(), getStreetAddress()]
, it will return a list with all "street addresses" that can be found inside user object.
bean | A SCIM resource object |
getters | A list of getters methods |
|
inlinestatic |
Searches for a Field
that corresponds to the path passed (using findFieldFromPath) and tries to find an annotation attached to such field that matches the annotationClass
parameter.
path | A string denoting a path to a target attribute. Examples of valid paths can be: displayName, name.givenName, addresses.locality when UserResource class is used for resourceClass . |
resourceClass | Class to start the search from |
annotationClass | Class annotation to be inspected for the field |
<T> | Type parameter for annotationClass |
T
, or null if no annotation was found or the field itself couldn't be found
|
inlinestatic |
Inspects a class that represents a Java Bean and tries to find the getter Method
associated to the class field whose name is passed as parameter.
fieldName | The name of the field whose getter needs to be found |
clazz | The Class to introspect |
Exception | Upon introspection error |
|
inlinestatic |
Returns a list with the names of the attributes that belong to an extension, so that every name is prefixed with the urn
of the extension, like this: urn:attribute_name
extension | An Extension object |
|
inlinestatic |
Inspects a class that represents a Java Bean and tries to find the setter Method
associated to the class field whose name is passed as parameter.
fieldName | The name of the field whose setter needs to be found |
clazz | The Class to introspect |
Exception | Upon introspection error |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestaticprivate |
|
static |
An unmodifiable map that stores for every possible subclass of BaseScimResource a SortedSet
with the paths that lead to every single attribute/subattribute part of that resource.
As an example, a set for the UserResource includes elements such as schemas, id, name, name.givenName, emails, emails.value, emails.type, ...
|
staticprivate |
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when its returnability is "always"
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when the attribute has canonical values associated
|
staticprivate |
|
staticprivate |
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when its returnability is "default"
|
staticprivate |
|
staticprivate |
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when its returnability is "never"
|
staticprivate |
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when its returnability is "request"
|
staticprivate |
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when the attribute is annotated as "required" in the resource
|
static |
An unmodifiable map that stores for every possible subclass of BaseScimResource a Map
that stores paths (as stored in allAttrs) vs. LDAP attribute names corresponding to such paths.
As an example, for UserResource this map will contain pairs like (userName, uid); (displayName, displayName); (meta.created, oxCreationTimestamp); (addresses, oxTrustAddresses); (addresses.value, oxTrustAddresses)...
|
staticprivate |
|
static |
An unmodifiable map that provides access to the sequence of getter methods that allow to get the actual value(s) for every possible attribute (or sub-atribute) of a SCIM resource when the attribute is annotated with some validation