public static String determineConstructionResource(AssignmentType assignmentType) { ConstructionType construction = assignmentType.getConstruction(); if (construction != null){ if (construction.getResource() != null){ return construction.getResource().getOid(); } else if (construction.getResourceRef() != null){ return construction.getResourceRef().getOid(); } return null; } return null; }
public static String getConnectorHostTypeOid(ConnectorType connectorType) { if (connectorType.getConnectorHostRef() != null) { return connectorType.getConnectorHostRef().getOid(); } else if (connectorType.getConnectorHost() != null) { return connectorType.getConnectorHost().getOid(); } else { return null; } }
protected AssignmentType createConstructionAssignment(String resourceOid, ShadowKindType kind, String intent) { AssignmentType assignmentType = new AssignmentType(); ConstructionType constructionType = new ConstructionType(); constructionType.setKind(kind); assignmentType.setConstruction(constructionType); ObjectReferenceType resourceRef = new ObjectReferenceType(); resourceRef.setOid(resourceOid); resourceRef.setType(ResourceType.COMPLEX_TYPE); constructionType.setResourceRef(resourceRef); constructionType.setIntent(intent); return assignmentType; }
public static String getConnectorOid(ResourceType resource) { if (resource.getConnectorRef() != null) { return resource.getConnectorRef().getOid(); } else if (resource.getConnector() != null) { return resource.getConnector().getOid(); } else { return null; } }
public ObjectReferenceType beginAssigneeRef() { ObjectReferenceType value = new ObjectReferenceType(); assigneeRef(value); return value; }
public ObjectReferenceType beginRoleMembershipRef() { ObjectReferenceType value = new ObjectReferenceType(); roleMembershipRef(value); return value; }
public ObjectReferenceType beginTenantRef() { ObjectReferenceType value = new ObjectReferenceType(); tenantRef(value); return value; }
public ObjectReferenceType beginCollectionRef() { ObjectReferenceType value = new ObjectReferenceType(); collectionRef(value); return value; }
private boolean needsRefresh(PendingOperationType pendingOperation) { PendingOperationExecutionStatusType executionStatus = pendingOperation.getExecutionStatus(); if (executionStatus == null) { // LEGACY: 3.7 and earlier return OperationResultStatusType.IN_PROGRESS.equals(pendingOperation.getResultStatus()); } else { return PendingOperationExecutionStatusType.EXECUTING.equals(executionStatus); } }
public ActivationType beginActivation() { ActivationType value = new ActivationType(); activation(value); return value; }
private QName getAssociationAttribute() { ResourceObjectAssociationDirectionType direction = resourceObjectAssociationType.getDirection(); if (ResourceObjectAssociationDirectionType.OBJECT_TO_SUBJECT.equals(direction)) { return resourceObjectAssociationType.getAssociationAttribute(); } return resourceObjectAssociationType.getValueAttribute(); }
public TriggerType beginTrigger() { TriggerType value = new TriggerType(); trigger(value); return value; }
public ExpressionType beginCondition() { ExpressionType value = new ExpressionType(); condition(value); return value; }
public CleanupPolicyType beginClosedCertificationCampaigns() { CleanupPolicyType value = new CleanupPolicyType(); closedCertificationCampaigns(value); return value; }
public AbstractWorkItemOutputType beginOutput() { AbstractWorkItemOutputType value = new AbstractWorkItemOutputType(); output(value); return value; }
public OtherPrivilegesLimitationType beginLimitOtherPrivileges() { OtherPrivilegesLimitationType value = new OtherPrivilegesLimitationType(); limitOtherPrivileges(value); return value; }
public OrderConstraintsType beginOrderConstraint() { OrderConstraintsType value = new OrderConstraintsType(); orderConstraint(value); return value; }
@Override public ResourcePasswordDefinitionType getPasswordDefinition() { if (schemaHandlingObjectTypeDefinitionType == null) { return null; } ResourceCredentialsDefinitionType credentials = schemaHandlingObjectTypeDefinitionType.getCredentials(); if (credentials == null) { return null; } return credentials.getPassword(); }
public AssignmentPropertiesSpecificationType beginAssignmentProperties() { AssignmentPropertiesSpecificationType value = new AssignmentPropertiesSpecificationType(); assignmentProperties(value); return value; }
public PopulateType beginPopulate() { PopulateType value = new PopulateType(); populate(value); return value; }