org.opencrx.kernel.backend
Class Cloneable
java.lang.Object
org.opencrx.kernel.backend.Cloneable
public class Cloneable
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLONE_EXCLUDE_ATTRIBUTES
public static final Set<String> CLONE_EXCLUDE_ATTRIBUTES
CLONE_EXCLUDE_COMPOSITE_REFERENCES
public static final Set<String> CLONE_EXCLUDE_COMPOSITE_REFERENCES
CLONEABLE_READONLY_FEATURES
public static final Set<String> CLONEABLE_READONLY_FEATURES
MANUAL_QUALIFIER_THRESHOLD
public static final int MANUAL_QUALIFIER_THRESHOLD
- See Also:
- Constant Field Values
backend
protected final Backend backend
Cloneable
public Cloneable(Backend backend)
getReferenceFilter
protected Set<String> getReferenceFilter(String referenceFilterAsString)
cloneAndUpdateReferences
public BasicObject cloneAndUpdateReferences(Path originalIdentity,
String referenceFilterAsString,
boolean replaceExisting)
throws ServiceException
- Throws:
ServiceException
cloneAndUpdateReferences
public DataproviderObject cloneAndUpdateReferences(DataproviderObject_1_0 original,
Path toContainer,
Map objectMarshallers,
String referenceFilterAsString,
boolean replaceExisting,
short attributeSelector)
throws ServiceException
- Model-driven object cloning. Copies the original object to the target
toContainer. If a corresponding marshaller is found, the orginal object
is marshalled before it is written to the target. The target is either
replaced or newly created. If cloneContent=true the operation is recursive,
i.e. the composite objects of original are cloned recursively.
- Throws:
ServiceException
collectReferencedObjects
public void collectReferencedObjects(DataproviderObject_1_0 object,
Set<String> referenceFilter,
Set<Path> referencedObjectPaths)
throws ServiceException
- Add the objects referenced by object to referencedObjectPaths if the
referenced object paths match the reference filter. Update the reference
filter for the referenced objects which match the reference filter.
- Throws:
ServiceException
This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.