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
(ResourceAssociationDefinition resourceAssociationDefinition, PrismContext prismContext, String resourceOid) static @NotNull String
determineDisplayNameForDefinition
(ShadowType shadow, PageBase pageBase) static String
filterNonDeadProjections
(List<ShadowWrapper> projectionWrappers) 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 PrismObject<ResourceType>
getConstructionResource
(ConstructionType construction, String operation, PageBase pageBase) static CapabilityCollectionType
getNativeCapabilities
(ResourceType resource, PageBase pageBase) static String
getPendingOperationLabel
(PendingOperationType realValue, BasePanel<?> panel) static String
getPendingOperationsLabels
(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 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) 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 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(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, 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)
-