com.evolveum.midpoint.schema.util
Class ResourceTypeUtil

java.lang.Object
  extended by com.evolveum.midpoint.schema.util.ResourceTypeUtil

public class ResourceTypeUtil
extends java.lang.Object

Methods that would belong to the ResourceType class but cannot go there because of JAXB.

Author:
Radovan Semancik

Constructor Summary
ResourceTypeUtil()
           
 
Method Summary
static boolean compareConfiguration(ResourceConfigurationType a, ResourceConfigurationType b)
           
static
<T> T
getCapability(java.util.Collection<java.lang.Object> capabilities, java.lang.Class<T> capabilityClass)
           
static java.lang.String getCapabilityDisplayName(java.lang.Object capability)
           
static java.lang.String getConnectorOid(ResourceType resource)
           
static ConnectorType getConnectorType(ResourceType resource, ObjectResolver resolver, OperationResult parentResult)
          The usage of "resolver" is experimental.
static CapabilitiesType getEffectiveCapabilities(ResourceType resource)
           
static
<T> T
getEffectiveCapability(ResourceType resource, java.lang.Class<T> capabilityClass)
           
static ResourceAccountTypeDefinitionType getResourceAccountTypeDefinitionType(ResourceType resource, java.lang.String accountType)
           
static org.w3c.dom.Element getResourceXsdSchema(ResourceType resource)
           
static boolean hasActivationCapability(ResourceType resource)
           
static boolean hasCredentialsCapability(ResourceType resource)
           
static boolean hasResourceNativeActivationCapability(ResourceType resource)
           
static java.util.List<java.lang.Object> listEffectiveCapabilities(ResourceType resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTypeUtil

public ResourceTypeUtil()
Method Detail

getConnectorOid

public static java.lang.String getConnectorOid(ResourceType resource)

getConnectorType

public static ConnectorType getConnectorType(ResourceType resource,
                                             ObjectResolver resolver,
                                             OperationResult parentResult)
                                      throws ObjectNotFoundException,
                                             SchemaException
The usage of "resolver" is experimental. Let's see if it will be practical ...

Throws:
ObjectNotFoundException
SchemaException
See Also:
ObjectResolver

getResourceXsdSchema

public static org.w3c.dom.Element getResourceXsdSchema(ResourceType resource)

compareConfiguration

public static boolean compareConfiguration(ResourceConfigurationType a,
                                           ResourceConfigurationType b)

getCapability

public static <T> T getCapability(java.util.Collection<java.lang.Object> capabilities,
                                  java.lang.Class<T> capabilityClass)

getEffectiveCapability

public static <T> T getEffectiveCapability(ResourceType resource,
                                           java.lang.Class<T> capabilityClass)

listEffectiveCapabilities

public static java.util.List<java.lang.Object> listEffectiveCapabilities(ResourceType resource)

getCapabilityDisplayName

public static java.lang.String getCapabilityDisplayName(java.lang.Object capability)

getEffectiveCapabilities

public static CapabilitiesType getEffectiveCapabilities(ResourceType resource)

hasActivationCapability

public static boolean hasActivationCapability(ResourceType resource)

hasCredentialsCapability

public static boolean hasCredentialsCapability(ResourceType resource)

hasResourceNativeActivationCapability

public static boolean hasResourceNativeActivationCapability(ResourceType resource)

getResourceAccountTypeDefinitionType

public static ResourceAccountTypeDefinitionType getResourceAccountTypeDefinitionType(ResourceType resource,
                                                                                     java.lang.String accountType)


Copyright © 2012 evolveum. All Rights Reserved.