Class ProvisioningObjectsUtil
java.lang.Object
com.evolveum.midpoint.gui.impl.util.ProvisioningObjectsUtil
Util methods for working with shadows and resources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
activationNotSupported
(ResourceType resource) static ItemVisibility
checkShadowActivationAndPasswordVisibility
(ItemWrapper<?, ?> itemWrapper, ShadowType shadowType) static int
static int
static String
static ObjectFilter
createAssociationShadowRefFilter
(ShadowReferenceAttributeDefinition shadowReferenceAttributeDefinition, PrismContext prismContext, String resourceOid) Creates a filter that provides all shadows eligible as the target value for this association.static @NotNull String
determineDisplayNameForDefinition
(ShadowType shadow, PageBase pageBase) static String
filterNonDeadProjections
(List<ShadowWrapper> projectionWrappers) static String
static String
static ExpressionType
getAssociationExpression
(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, boolean createIfNotExist, PrismContext prismContext, PageBase pageBase) Deprecated.static ExpressionType
getAssociationExpression
(PrismContainerValueWrapper<AssignmentType> assignmentValueWrapper, PageBase pageBase) Deprecated.static @Nullable ItemName
getAssociationForConstructionAndShadow
(@NotNull ConstructionType construction, @NotNull ShadowType shadow, PageBase pageBase) static PrismObject<ResourceType>
getConstructionResource
(ConstructionType construction, String operation, PageBase pageBase) static CapabilityCollectionType
getNativeCapabilities
(ResourceType resource, PageBase pageBase) static List<ShadowRelationParticipantType>
static String
getPendingOperationLabel
(PendingOperationType realValue, BasePanel<?> panel) static String
getPendingOperationsLabels
(ShadowType shadow, BasePanel panel) static List<ShadowAssociationDefinition>
getReferenceAssociationDefinition
(ConstructionType construction, PageBase pageBase) getReferenceAssociationDefinition
(ResourceType resource, ShadowKindType kind, String intent) static ShadowAssociationDefinition
getRefinedAssociationDefinition
(ItemName association, ConstructionType construction, PageBase pageBase) static List<ShadowAssociationDefinition>
getRefinedAssociationDefinition
(ResourceType resource, ShadowKindType kind, String intent) static ResourceSchema
getRefinedSchema
(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 ResourceObjectDefinition
getResourceObjectDefinition
(ConstructionType construction, PageBase pageBase) getShadowReferenceAttributeDefinitions
(CompleteResourceSchema resourceSchema) static ObjectFilter
getShadowTypeFilterForAssociation
(ResourceObjectDefinition oc, ItemName association) static ObjectFilter
getShadowTypeFilterForAssociation
(ConstructionType construction, ItemName association, String operation, PageBase pageBase) static ObjectFilter
getShadowTypeFilterForAssociation
(ConstructionType construction, String operation, PageBase pageBase) static boolean
isActivationSupported
(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) static boolean
isAssociationSupported
(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) static boolean
isPasswordSupported
(ShadowType shadowType, org.apache.wicket.model.IModel<ResourceType> resourceModel) static Collection<QName>
loadResourceObjectClassValues
(ResourceType resource, PageBase pageBase) static void
partialConfigurationTest
(@NotNull PrismObject<ResourceType> resource, PageBase pageBase, Task task, OperationResult result) static void
refreshResourceSchema
(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase) static void
refreshResourceSchema
(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, OperationResult result) static ResourceType
resolveResource
(ShadowType shadowType, boolean isColumn, PageBase pageBase) static void
switchResourceMaintenance
(@NotNull PrismObject<ResourceType> resource, String operation, org.apache.wicket.ajax.AjaxRequestTarget target, PageBase pageBase, AdministrativeAvailabilityStatusType mode) static void
toggleResourceMaintenance
(@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)
-