public class ResourceTypeUtil extends Object
Constructor and Description |
---|
ResourceTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType |
fillDefault(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind) |
static String |
fillDefault(String intent) |
static QName |
fillDefaultFocusType(QName focusType) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectSynchronizationType |
findObjectSynchronization(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType |
findObjectTypeDefinition(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resourceObject,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static List<Object> |
getAllCapabilities(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
Assumes that native capabilities are already cached.
|
static List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> |
getApproverRef(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorConfigurationType> |
getConfigurationContainer(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
static PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorConfigurationType> |
getConfigurationContainer(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
static PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType> |
getConnectorIfPresent(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
static String |
getConnectorOid(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
static String |
getConnectorOid(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType |
getConnectorType(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
ObjectResolver resolver,
OperationResult parentResult)
The usage of "resolver" is experimental.
|
static int |
getDependencyOrder(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType dependency) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyStrictnessType |
getDependencyStrictness(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType dependency) |
static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationLockoutStatusCapabilityType |
getEffectiveActivationLockoutStatusCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationStatusCapabilityType |
getEffectiveActivationStatusCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationValidityCapabilityType |
getEffectiveActivationValidFromCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationValidityCapabilityType |
getEffectiveActivationValidToCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static List<Object> |
getEffectiveCapabilities(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
Assumes that native capabilities are already cached.
|
static <T extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType> |
getEffectiveCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
Class<T> capabilityClass)
Assumes that native capabilities are already cached.
|
static <T extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType> |
getEffectiveCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType resourceObjectTypeDefinitionType,
Class<T> capabilityClass)
Assumes that native capabilities are already cached.
|
static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.PasswordCapabilityType |
getEffectivePasswordCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.AvailabilityStatusType |
getLastAvailabilityStatus(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static Collection<Object> |
getNativeCapabilitiesCollection(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
Returns collection of capabilities.
|
static Collection<Class<? extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType>> |
getNativeCapabilityClasses(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> |
getOwnerRef(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static String |
getResourceNamespace(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
static String |
getResourceNamespace(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType |
getResourceObjectTypeDefinitionType(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
static Element |
getResourceXsdSchema(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
static Element |
getResourceXsdSchema(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static List<QName> |
getSchemaGenerationConstraints(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
static List<QName> |
getSchemaGenerationConstraints(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static <T extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType> |
hasEffectiveCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
Class<T> capabilityClass) |
static boolean |
hasResourceConfiguredActivationCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
hasResourceNativeActivationCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
hasResourceNativeActivationLockoutCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
hasResourceNativeActivationStatusCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
hasSchemaGenerationConstraints(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isActivationCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isActivationLockoutStatusCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isActivationStatusCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isActivationValidityCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isAddRemoveAttributesValuesCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isAuxiliaryObjectClassCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isAvoidDuplicateValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isCaseIgnoreAttributeNames(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isCountObjectsCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isCreateCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isCredentialsCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isDeleteCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isDown(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isForceLoadDependentShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType dependency) |
static boolean |
isLiveSyncCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isPagedSearchCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isPasswordCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isReadCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isScriptCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isSynchronizationOpportunistic(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
static boolean |
isTestConnectionCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static boolean |
isUpdateCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
static void |
setResourceXsdSchema(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
Element xsdElement) |
static void |
setResourceXsdSchema(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
Element xsdElement) |
public static String getConnectorOid(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource)
public static String getConnectorOid(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType getConnectorType(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, ObjectResolver resolver, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
ObjectNotFoundException
SchemaException
ObjectResolver
public static PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType> getConnectorIfPresent(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource)
public static Element getResourceXsdSchema(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static Element getResourceXsdSchema(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource)
public static void setResourceXsdSchema(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, Element xsdElement)
public static void setResourceXsdSchema(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, Element xsdElement)
public static Collection<Object> getNativeCapabilitiesCollection(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean hasSchemaGenerationConstraints(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static List<QName> getSchemaGenerationConstraints(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static List<QName> getSchemaGenerationConstraints(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource)
@Nullable public static <T extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType> T getEffectiveCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, Class<T> capabilityClass)
public static <T extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType> T getEffectiveCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType resourceObjectTypeDefinitionType, Class<T> capabilityClass)
public static <T extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType> boolean hasEffectiveCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, Class<T> capabilityClass)
public static List<Object> getAllCapabilities(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) throws SchemaException
SchemaException
public static List<Object> getEffectiveCapabilities(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) throws SchemaException
SchemaException
public static boolean isActivationCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isActivationLockoutStatusCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationLockoutStatusCapabilityType getEffectiveActivationLockoutStatusCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationStatusCapabilityType getEffectiveActivationStatusCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isActivationStatusCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationValidityCapabilityType getEffectiveActivationValidFromCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationValidityCapabilityType getEffectiveActivationValidToCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isActivationValidityCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isCredentialsCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isCreateCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isCountObjectsCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isPasswordCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.PasswordCapabilityType getEffectivePasswordCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isLiveSyncCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isScriptCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isTestConnectionCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isAuxiliaryObjectClassCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isPagedSearchCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isReadCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isUpdateCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isAddRemoveAttributesValuesCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isDeleteCapabilityEnabled(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean hasResourceNativeActivationCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean hasResourceNativeActivationStatusCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean hasResourceNativeActivationLockoutCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean hasResourceConfiguredActivationCapability(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType getResourceObjectTypeDefinitionType(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent)
public static PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorConfigurationType> getConfigurationContainer(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
public static PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorConfigurationType> getConfigurationContainer(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource)
public static String getResourceNamespace(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource)
public static String getResourceNamespace(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
public static boolean isSynchronizationOpportunistic(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
public static int getDependencyOrder(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType dependency)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyStrictnessType getDependencyStrictness(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType dependency)
public static boolean isForceLoadDependentShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType dependency)
public static boolean isDown(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.AvailabilityStatusType getLastAvailabilityStatus(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isAvoidDuplicateValues(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static boolean isCaseIgnoreAttributeNames(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> getOwnerRef(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
public static List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> getApproverRef(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
@NotNull public static Collection<Class<? extends com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType>> getNativeCapabilityClasses(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource)
@NotNull public static com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType fillDefault(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType findObjectTypeDefinition(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resourceObject, @Nullable com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, @Nullable String intent)
@Nullable public static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectSynchronizationType findObjectSynchronization(@Nullable com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, @Nullable com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, @Nullable String intent)
Copyright © 2016 evolveum. All rights reserved.