Skip navigation links


org.identityconnectors.framework.common
Class FrameworkUtil

java.lang.Object
  extended by org.identityconnectors.framework.common.FrameworkUtil


public final class FrameworkUtil
extends java.lang.Object

Method Summary
static java.util.Set<java.lang.Class<? extends APIOperation>> allAPIOperations()
          Return all the known APIOperations.
static java.util.Set<java.lang.Class<? extends SPIOperation>> allSPIOperations()
          Return all the known SPIOperations.
static void checkAttributeType(java.lang.Class<?> clazz)
          Determines if the class is a supported attribute type.
static void checkAttributeValue(java.lang.Object value)
          Determines if the class of the object is a supported attribute type.
static void checkOperationOptionType(java.lang.Class<?> clazz)
          Determines if the class is a supported type for an OperationOption.
static void checkOperationOptionValue(java.lang.Object value)
          Determines if the class of the object is a supported attribute type.
static java.util.Set<java.lang.Class<? extends java.lang.Object>> getAllSupportedAttributeTypes()
           
static java.util.Set<java.lang.Class<? extends java.lang.Object>> getAllSupportedConfigTypes()
           
static java.util.Set<java.lang.Class<? extends APIOperation>> getDefaultSupportedOperations(java.lang.Class<? extends Connector> connector)
          Determines the default set of operations that a Connector supports.
static Version getFrameworkVersion()
          Returns the version of the framework.
static java.util.Set<java.lang.Class<? extends APIOperation>> getUnconditionallySupportedOperations()
          Returns the set of operations that are always supported
static boolean isSupportedAttributeType(java.lang.Class<?> clazz)
          Determines if the class is a supported attribute type.
static boolean isSupportedConfigurationType(java.lang.Class<?> clazz)
          Determines if the class is a supported configuration type.
static java.util.Set<java.lang.Class<? extends APIOperation>> spi2apis(java.lang.Class<? extends SPIOperation> spi)
          Converts a SPIOperation to an set of APIOperation.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

spi2apis

public static java.util.Set<java.lang.Class<? extends APIOperation>> spi2apis(java.lang.Class<? extends SPIOperation> spi)
Converts a SPIOperation to an set of APIOperation.

allSPIOperations

public static java.util.Set<java.lang.Class<? extends SPIOperation>> allSPIOperations()
Return all the known SPIOperations.

allAPIOperations

public static java.util.Set<java.lang.Class<? extends APIOperation>> allAPIOperations()
Return all the known APIOperations.

getDefaultSupportedOperations

public static java.util.Set<java.lang.Class<? extends APIOperation>> getDefaultSupportedOperations(java.lang.Class<? extends Connector> connector)
Determines the default set of operations that a Connector supports.

getUnconditionallySupportedOperations

public static java.util.Set<java.lang.Class<? extends APIOperation>> getUnconditionallySupportedOperations()
Returns the set of operations that are always supported
Returns:
the set of operations that are always supported

getAllSupportedConfigTypes

public static java.util.Set<java.lang.Class<? extends java.lang.Object>> getAllSupportedConfigTypes()

isSupportedConfigurationType

public static boolean isSupportedConfigurationType(java.lang.Class<?> clazz)
Determines if the class is a supported configuration type.
Parameters:
clazz - the type to check against the list of supported types.
Returns:
true if the type is in the list otherwise false.

getAllSupportedAttributeTypes

public static java.util.Set<java.lang.Class<? extends java.lang.Object>> getAllSupportedAttributeTypes()

isSupportedAttributeType

public static boolean isSupportedAttributeType(java.lang.Class<?> clazz)
Determines if the class is a supported attribute type.
Parameters:
clazz - the type to check against a supported list of types.
Returns:
true if the type is on the supported list otherwise false.

checkAttributeType

public static void checkAttributeType(java.lang.Class<?> clazz)
Determines if the class is a supported attribute type. If not it throws an IllegalArgumentException.
Parameters:
clazz - type to check against the support list of types.
Throws:
java.lang.IllegalArgumentException - iff the type is not on the supported list.

checkAttributeValue

public static void checkAttributeValue(java.lang.Object value)
Determines if the class of the object is a supported attribute type. If not it throws an IllegalArgumentException.
Parameters:
value - The value to check or null.

checkOperationOptionType

public static void checkOperationOptionType(java.lang.Class<?> clazz)
Determines if the class is a supported type for an OperationOption. If not it throws an IllegalArgumentException.
Parameters:
clazz - type to check against the support list of types.
Throws:
java.lang.IllegalArgumentException - iff the type is not on the supported list.

checkOperationOptionValue

public static void checkOperationOptionValue(java.lang.Object value)
Determines if the class of the object is a supported attribute type. If not it throws an IllegalArgumentException.
Parameters:
value - The value to check or null.

getFrameworkVersion

public static Version getFrameworkVersion()
Returns the version of the framework.
Returns:
the framework version; never null.

Skip navigation links


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.