org.opencrx.kernel.backend
Class Cloneable
java.lang.Object
org.opencrx.kernel.backend.Cloneable
public class Cloneable
- extends Object
|
Method Summary |
int |
applyReplacements(Path objectIdentity,
boolean isChangeable,
List replacements,
String referenceFilterAsString)
|
DataproviderObject |
cloneAndUpdateReferences(DataproviderObject_1_0 original,
Path toContainer,
Map objectMarshallers,
String referenceFilterAsString,
boolean replaceExisting)
Model-driven object cloning. |
org.openmdx.base.jmi1.BasicObject |
cloneAndUpdateReferences(Path originalIdentity,
String referenceFilterAsString,
boolean replaceExisting)
|
void |
collectReferencedObjects(DataproviderObject_1_0 object,
List referenceFilter,
Set referencedObjectPaths)
Add the objects referenced by object to referencedObjectPaths if the
referenced object paths match the reference filter. |
Path |
createObjectFromTemplate(DataproviderObject_1_0 source,
String name,
String referenceFilterAsString)
|
void |
deleteCompositeAndReferencedObjects(DataproviderObject_1_0 object,
String referenceFilterAsString)
|
| 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 CLONE_EXCLUDE_ATTRIBUTES
CLONE_EXCLUDE_COMPOSITE_REFERENCES
public static final Set CLONE_EXCLUDE_COMPOSITE_REFERENCES
DEFAULT_REFERENCE_FILTER
public static final String DEFAULT_REFERENCE_FILTER
- See Also:
- Constant Field Values
CLONEABLE_READONLY_FEATURES
public static final Set 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)
cloneAndUpdateReferences
public org.openmdx.base.jmi1.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)
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,
List referenceFilter,
Set referencedObjectPaths)
- 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.
deleteCompositeAndReferencedObjects
public void deleteCompositeAndReferencedObjects(DataproviderObject_1_0 object,
String referenceFilterAsString)
throws ServiceException
- Throws:
ServiceException
applyReplacements
public int applyReplacements(Path objectIdentity,
boolean isChangeable,
List replacements,
String referenceFilterAsString)
throws ServiceException
- Throws:
ServiceException
createObjectFromTemplate
public Path createObjectFromTemplate(DataproviderObject_1_0 source,
String name,
String referenceFilterAsString)
throws ServiceException
- 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.