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(ResourceAssociationDefinition resourceAssociationDefinition, PrismContext prismContext, String resourceOid) static @NotNull StringdetermineDisplayNameForDefinition(ShadowType shadow, PageBase pageBase) static StringfilterNonDeadProjections(List<ShadowWrapper> projectionWrappers) static Stringstatic ExpressionTypegetAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase) Deprecated.static ExpressionTypegetAssociationExpression(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase) Deprecated.static PrismObject<ResourceType>getConstructionResource(ConstructionType construction, String operation, PageBase pageBase) static CapabilityCollectionTypegetNativeCapabilities(ResourceType resource, PageBase pageBase) static StringgetPendingOperationLabel(PendingOperationType realValue, BasePanel<?> panel) static StringgetPendingOperationsLabels(ShadowType shadow, BasePanel panel) static List<ResourceAssociationDefinition>getRefinedAssociationDefinition(@NotNull ResourceObjectDefinition oc) static List<ResourceAssociationDefinition>getRefinedAssociationDefinition(ConstructionType construction, PageBase pageBase) static List<ResourceAssociationDefinition>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) 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, com.evolveum.midpoint.task.api.Task task, OperationResult result) static voidrefreshResourceSchema(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) 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(ResourceAssociationDefinition resourceAssociationDefinition, PrismContext prismContext, String resourceOid) -
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) -
partialConfigurationTest
public static void partialConfigurationTest(@NotNull @NotNull PrismObject<ResourceType> resource, PageBase pageBase, com.evolveum.midpoint.task.api.Task task, OperationResult result) -
getNativeCapabilities
public static CapabilityCollectionType getNativeCapabilities(ResourceType resource, PageBase pageBase) -
loadResourceObjectClassValues
public static Collection<QName> loadResourceObjectClassValues(ResourceType resource, PageBase pageBase) -
getRefinedAssociationDefinition
public static List<ResourceAssociationDefinition> getRefinedAssociationDefinition(ConstructionType construction, PageBase pageBase) -
getRefinedAssociationDefinition
public static List<ResourceAssociationDefinition> getRefinedAssociationDefinition(@NotNull @NotNull ResourceObjectDefinition oc) -
getResourceObjectDefinition
public static ResourceObjectDefinition getResourceObjectDefinition(ConstructionType construction, PageBase pageBase) throws CommonException - Throws:
CommonException
-
getRefinedAssociationDefinition
public static List<ResourceAssociationDefinition> getRefinedAssociationDefinition(ResourceType resource, ShadowKindType kind, String intent) -
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)
-