Class ProvisioningObjectsUtil
java.lang.Object
com.evolveum.midpoint.gui.impl.util.ProvisioningObjectsUtil
Util methods for working with shadows and resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactivationNotSupported(ResourceType resource) static ItemVisibilitycheckShadowActivationAndPasswordVisibility(ItemWrapper<?, ?> itemWrapper, ShadowType shadowType) static intstatic intstatic Stringstatic ObjectFiltercreateAssociationShadowRefFilter(ShadowReferenceAttributeDefinition shadowReferenceAttributeDefinition, PrismContext prismContext, String resourceOid) Creates a filter that provides all shadows eligible as the target value for this association.static @NotNull StringdetermineDisplayNameForDefinition(ShadowType shadow, PageBase pageBase) static StringfilterNonDeadProjections(List<ShadowWrapper> projectionWrappers) static Stringstatic Stringstatic ExpressionTypegetAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase) Deprecated.static ExpressionTypegetAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase) Deprecated.static @Nullable ItemNamegetAssociationForConstructionAndShadow(@NotNull ConstructionType construction, @NotNull ShadowType shadow, PageBase pageBase) static PrismObject<ResourceType>getConstructionResource(ConstructionType construction, String operation, PageBase pageBase) static CapabilityCollectionTypegetNativeCapabilities(ResourceType resource, PageBase pageBase) static List<ShadowRelationParticipantType>static StringgetPendingOperationLabel(PendingOperationType realValue, BasePanel<?> panel) static StringgetPendingOperationsLabels(ShadowType shadow, BasePanel panel) static List<ShadowAssociationDefinition>getReferenceAssociationDefinition(ConstructionType construction, PageBase pageBase) getReferenceAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent) static ShadowAssociationDefinitiongetRefinedAssociationDefinition(ItemName association, ConstructionType construction, PageBase pageBase) static List<ShadowAssociationDefinition>getRefinedAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent) static ResourceSchemagetRefinedSchema(ResourceType resource, PageBase pageBase) static org.apache.wicket.model.IModel<String>getResourceAttributesLabelModel(ShadowType shadow, PageBase pageBase) static org.apache.wicket.model.IModel<String>getResourceLabelModel(ShadowType shadow, PageBase pageBase) static ResourceObjectDefinitiongetResourceObjectDefinition(ConstructionType construction, PageBase pageBase) getShadowReferenceAttributeDefinitions(CompleteResourceSchema resourceSchema) static ObjectFiltergetShadowTypeFilterForAssociation(ResourceObjectDefinition oc, ItemName association) static ObjectFiltergetShadowTypeFilterForAssociation(ConstructionType construction, ItemName association, String operation, PageBase pageBase) static ObjectFiltergetShadowTypeFilterForAssociation(ConstructionType construction, String operation, PageBase pageBase) static booleanisActivationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) static booleanisAssociationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) static booleanisPasswordSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) static Collection<QName>loadResourceObjectClassValues(ResourceType resource, PageBase pageBase) static voidpartialConfigurationTest(@NotNull PrismObject<ResourceType> resource, PageBase pageBase, Task task, OperationResult result) static voidrefreshResourceSchema(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) static voidrefreshResourceSchema(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, OperationResult result) static ResourceTyperesolveResource(ShadowType shadowType, boolean isColumn, PageBase pageBase) static voidswitchResourceMaintenance(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, AdministrativeAvailabilityStatusType mode) static voidtoggleResourceMaintenance(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase)
-
Constructor Details
-
ProvisioningObjectsUtil
public ProvisioningObjectsUtil()
-
-
Method Details
-
determineDisplayNameForDefinition
@NotNull public static @NotNull String determineDisplayNameForDefinition(ShadowType shadow, PageBase pageBase) -
getRefinedSchema
public static ResourceSchema getRefinedSchema(ResourceType resource, PageBase pageBase) throws SchemaException, ConfigurationException -
getResourceLabelModel
public static org.apache.wicket.model.IModel<String> getResourceLabelModel(ShadowType shadow, PageBase pageBase) -
getResourceAttributesLabelModel
public static org.apache.wicket.model.IModel<String> getResourceAttributesLabelModel(ShadowType shadow, PageBase pageBase) -
getPendingOperationsLabels
-
getPendingOperationLabel
-
filterNonDeadProjections
-
countLinkFroNonDeadShadows
-
countLinkForNonDeadShadows
-
countLinkForDeadShadows
-
getShadowTypeFilterForAssociation
public static ObjectFilter getShadowTypeFilterForAssociation(ConstructionType construction, String operation, PageBase pageBase) -
getShadowTypeFilterForAssociation
public static ObjectFilter getShadowTypeFilterForAssociation(ConstructionType construction, ItemName association, String operation, PageBase pageBase) -
getShadowTypeFilterForAssociation
public static ObjectFilter getShadowTypeFilterForAssociation(ResourceObjectDefinition oc, ItemName association) -
createAssociationShadowRefFilter
public static ObjectFilter createAssociationShadowRefFilter(ShadowReferenceAttributeDefinition shadowReferenceAttributeDefinition, PrismContext prismContext, String resourceOid) Creates a filter that provides all shadows eligible as the target value for this association. -
checkShadowActivationAndPasswordVisibility
public static ItemVisibility checkShadowActivationAndPasswordVisibility(ItemWrapper<?, ?> itemWrapper, ShadowType shadowType) -
isActivationSupported
public static boolean isActivationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) -
isPasswordSupported
public static boolean isPasswordSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) -
isAssociationSupported
public static boolean isAssociationSupported(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) -
toggleResourceMaintenance
public static void toggleResourceMaintenance(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) -
switchResourceMaintenance
public static void switchResourceMaintenance(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, AdministrativeAvailabilityStatusType mode) -
refreshResourceSchema
public static void refreshResourceSchema(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) -
refreshResourceSchema
public static void refreshResourceSchema(@NotNull @NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, OperationResult result) -
partialConfigurationTest
public static void partialConfigurationTest(@NotNull @NotNull PrismObject<ResourceType> resource, PageBase pageBase, Task task, OperationResult result) -
getNativeCapabilities
public static CapabilityCollectionType getNativeCapabilities(ResourceType resource, PageBase pageBase) -
loadResourceObjectClassValues
public static Collection<QName> loadResourceObjectClassValues(ResourceType resource, PageBase pageBase) -
getReferenceAssociationDefinition
public static List<ShadowAssociationDefinition> getReferenceAssociationDefinition(ConstructionType construction, PageBase pageBase) -
getResourceObjectDefinition
public static ResourceObjectDefinition getResourceObjectDefinition(ConstructionType construction, PageBase pageBase) throws CommonException - Throws:
CommonException
-
getReferenceAssociationDefinition
public static List<ShadowReferenceAttributeDefinition> getReferenceAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent) -
getRefinedAssociationDefinition
public static List<ShadowAssociationDefinition> getRefinedAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent) -
getRefinedAssociationDefinition
public static ShadowAssociationDefinition getRefinedAssociationDefinition(ItemName association, ConstructionType construction, PageBase pageBase) -
getAssociationDisplayName
-
getAssociationDisplayName
-
getAssociationExpression
@Deprecated public static ExpressionType getAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase) Deprecated. -
getAssociationExpression
@Deprecated public static ExpressionType getAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase) Deprecated. -
getConstructionResource
public static PrismObject<ResourceType> getConstructionResource(ConstructionType construction, String operation, PageBase pageBase) -
activationNotSupported
-
resolveResource
public static ResourceType resolveResource(ShadowType shadowType, boolean isColumn, PageBase pageBase) -
getObjectsOfSubject
public static List<ShadowRelationParticipantType> getObjectsOfSubject(ShadowReferenceAttributeDefinition refAttrDef) -
getShadowReferenceAttributeDefinitions
public static List<ShadowReferenceAttributeDefinition> getShadowReferenceAttributeDefinitions(CompleteResourceSchema resourceSchema) -
getAssociationForConstructionAndShadow
@Nullable public static @Nullable ItemName getAssociationForConstructionAndShadow(@NotNull @NotNull ConstructionType construction, @NotNull @NotNull ShadowType shadow, PageBase pageBase)
-