public ConstructionType intent(String value) { setIntent(value); return this; }
@NotNull public static AssignmentType createAssignmentWithConstruction(@NotNull PrismObject<ResourceType> object, ShadowKindType kind, String intent, PrismContext prismContext) { AssignmentType assignment = new AssignmentType(prismContext); ConstructionType construction = new ConstructionType(prismContext); construction.setResourceRef(createObjectRef(object, prismContext)); construction.setKind(kind); construction.setIntent(intent); assignment.setConstruction(construction); return assignment; }
protected ConstructionType createAccountConstruction(String resourceOid, String intent) throws SchemaException { ConstructionType accountConstructionType = new ConstructionType(); ObjectReferenceType resourceRef = new ObjectReferenceType(); resourceRef.setOid(resourceOid); accountConstructionType.setResourceRef(resourceRef); accountConstructionType.setIntent(intent); return accountConstructionType; }
public static AssignmentType createConstructionAssignment(String resourceOid, ShadowKindType kind, String intent) { AssignmentType assignment = new AssignmentType(); ConstructionType construction = new ConstructionType(); ObjectReferenceType resourceRef = new ObjectReferenceType(); resourceRef.setOid(resourceOid); construction.setResourceRef(resourceRef); if (kind != null) { construction.setKind(kind); } if (intent != null) { construction.setIntent(intent); } assignment.setConstruction(construction); return assignment; }
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; }