private ObjectType asObjectType(PrismValue value) { return (ObjectType) ((PrismObjectValue) value).asObjectable(); }
@NotNull public O asObjectable() { return getValue().asObjectable(); }
public static CaseType getCase(CaseWorkItemType workItem) { @SuppressWarnings({"unchecked", "raw"}) PrismContainerable<CaseWorkItemType> parent = workItem.asPrismContainerValue().getParent(); if (!(parent instanceof PrismContainer)) { return null; } PrismValue parentParent = ((PrismContainer<CaseWorkItemType>) parent).getParent(); if (!(parentParent instanceof PrismObjectValue)) { return null; } @SuppressWarnings({"unchecked", "raw"}) PrismObjectValue<CaseType> parentParentPov = (PrismObjectValue<CaseType>) parentParent; return parentParentPov.asObjectable(); }
private void assertAttributesNotFetched(List<PipelineItem> data) { for (PipelineItem item : data) { PrismValue value = item.getValue(); if (((PrismObjectValue<ShadowType>) value).asObjectable().getAttributes().getAny().size() > 2) { throw new AssertionError("There are some unexpected attributes present in " + value.debugDump()); } } }
private void assertAttributesFetched(List<PipelineItem> data) { for (PipelineItem item : data) { PrismValue value = item.getValue(); if (((PrismObjectValue<ShadowType>) value).asObjectable().getAttributes().getAny().size() <= 2) { throw new AssertionError("There are no attributes present in " + value.debugDump()); } } }
OperationResult result = operationsHelper.createActionResult(item, this, context, globalResult); context.checkTaskStop(); if (value instanceof PrismObjectValue && ((PrismObjectValue) value).asObjectable() instanceof ResourceType) { PrismObject<ResourceType> resourceTypePrismObject = ((PrismObjectValue) value).asPrismObject(); ResourceType resourceType = resourceTypePrismObject.asObjectable();
OperationResult result = operationsHelper.createActionResult(item, this, context, globalResult); context.checkTaskStop(); if (value instanceof PrismObjectValue && ((PrismObjectValue) value).asObjectable() instanceof ConnectorHostType) { PrismObject<ConnectorHostType> connectorHostTypePrismObject = ((PrismObjectValue) value).asPrismObject(); Set<ConnectorType> newConnectors;
for (PipelineItem item : data.getData()) { PrismValue value = item.getValue(); UserType user = ((PrismObjectValue<UserType>) value).asObjectable(); ProtectedStringType passwordValue = user.getCredentials().getPassword().getValue(); assertNotNull("clearValue for password not set", passwordValue.getClearValue());
OperationResult result = operationsHelper.createActionResult(item, this, context, globalResult); context.checkTaskStop(); if (value instanceof PrismObjectValue && ((PrismObjectValue) value).asObjectable() instanceof FocusType) { @SuppressWarnings({"unchecked", "raw"}) PrismObject<? extends ObjectType> prismObject = ((PrismObjectValue) value).asPrismObject();
OperationResult result = operationsHelper.createActionResult(item, this, context, globalResult); context.checkTaskStop(); if (value instanceof PrismObjectValue && ((PrismObjectValue) value).asObjectable() instanceof ResourceType) { PrismObject<ResourceType> resourceTypePrismObject = ((PrismObjectValue) value).asPrismObject(); ResourceType resourceType = resourceTypePrismObject.asObjectable();
OperationResult result = operationsHelper.createActionResult(item, this, context, globalResult); context.checkTaskStop(); if (value instanceof PrismObjectValue && ((PrismObjectValue<Objectable>) value).asObjectable() instanceof ResourceType) { PrismObject<ResourceType> resourceTypePrismObject = ((PrismObjectValue) value).asPrismObject(); ResourceType resourceType = resourceTypePrismObject.asObjectable();