/** * Create an instance of {@link CollectionRefSpecificationType } * */ public CollectionRefSpecificationType createCollectionRefSpecificationType() { return new CollectionRefSpecificationType(); }
public CollectionRefSpecificationType collectionRef(ObjectReferenceType value) { setCollectionRef(value); return this; }
public CollectionRefSpecificationType clone() { CollectionRefSpecificationType object = new CollectionRefSpecificationType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
private void compileCollection(CompiledObjectCollectionView existingView, GuiObjectListViewType objectListViewType, Task task, OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException { CollectionRefSpecificationType collectionSpec = objectListViewType.getCollection(); if (collectionSpec == null) { ObjectReferenceType collectionRef = objectListViewType.getCollectionRef(); if (collectionRef == null) { return; } // Legacy, deprecated collectionSpec = new CollectionRefSpecificationType(); collectionSpec.setCollectionRef(collectionRef.clone()); } if (existingView.getCollection() != null) { LOGGER.debug("Redefining collection in view {}", existingView.getViewIdentifier()); } existingView.setCollection(collectionSpec); compileCollection(existingView, collectionSpec, task, result); }
@Override public boolean equals(Object object) { if (!(object instanceof CollectionRefSpecificationType)) { return false; } CollectionRefSpecificationType other = ((CollectionRefSpecificationType) object); return asPrismContainerValue().equivalent(other.asPrismContainerValue()); }
public ObjectReferenceType beginCollectionRef() { ObjectReferenceType value = new ObjectReferenceType(); collectionRef(value); return value; }
private String determineViewIdentifier(GuiObjectListViewType objectListViewType) { String viewIdentifier = objectListViewType.getIdentifier(); if (viewIdentifier != null) { return viewIdentifier; } String viewName = objectListViewType.getName(); if (viewName != null) { // legacy, deprecated return viewName; } CollectionRefSpecificationType collection = objectListViewType.getCollection(); if (collection == null) { return objectListViewType.getType().getLocalPart(); } ObjectReferenceType collectionRef = collection.getCollectionRef(); if (collectionRef == null) { return objectListViewType.getType().getLocalPart(); } return collectionRef.getOid(); }
public CollectionRefSpecificationType interpretation(CollectionSpecificationInterpretationType value) { setInterpretation(value); return this; }
public CollectionRefSpecificationType depth(CollectionSpecificationDepthType value) { setDepth(value); return this; }
@Override public String toString() { return asPrismContainerValue().toString(); }
public CollectionRefSpecificationType collectionRef(String oid, QName type) { PrismReferenceValue refVal = new PrismReferenceValueImpl(oid, type); ObjectReferenceType ort = new ObjectReferenceType(); ort.setupReferenceValue(refVal); return collectionRef(ort); }
private void compileCollection(CompiledObjectCollectionView existingView, CollectionRefSpecificationType collectionSpec, Task task, OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException { ObjectReferenceType collectionRef = collectionSpec.getCollectionRef();
/** * Create an instance of {@link CollectionRefSpecificationType } * */ public CollectionRefSpecificationType createCollectionRefSpecificationType() { return new CollectionRefSpecificationType(); }
@Override public int hashCode() { return asPrismContainerValue().hashCode(); }
public CollectionRefSpecificationType collectionRef(String oid, QName type, QName relation) { PrismReferenceValue refVal = new PrismReferenceValueImpl(oid, type); refVal.setRelation(relation); ObjectReferenceType ort = new ObjectReferenceType(); ort.setupReferenceValue(refVal); return collectionRef(ort); }
/** * Create an instance of {@link CollectionRefSpecificationType } * */ public CollectionRefSpecificationType createCollectionRefSpecificationType() { return new CollectionRefSpecificationType(); }
public void setDomain(CollectionRefSpecificationType value) { PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null); PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_DOMAIN, fieldContainerValue); }
public CollectionRefSpecificationType beginCollection() { CollectionRefSpecificationType value = new CollectionRefSpecificationType(); collection(value); return value; }
public void setCollection(CollectionRefSpecificationType value) { PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null); PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_COLLECTION, fieldContainerValue); }
public CollectionRefSpecificationType beginBaseCollection() { CollectionRefSpecificationType value = new CollectionRefSpecificationType(); baseCollection(value); return value; }