|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a supplementary class which should only be used in the
copyProperty
method of CustomCopy
implementations. For a more detailed description, see the javadoc
on CustomCopy.copyProperty(CustomCopy, Property,
ItemCopier)
.
Note that the copyProperty
method must only call
copier.copy
in order to correctly copy some
content item inside the method body. An attempt to call any other method
to copy an item may cause disastrous results.
For a correct implementation of the copyProperty
method,
see ContentItem.copyProperty(CustomCopy, Property, ItemCopier)
.
There are not, and should not be, any public implementations of this class.
CustomCopy.copyProperty(CustomCopy, Property, ItemCopier)
Field Summary | |
static int |
PLAIN_COPY
Denotes that this instance item copier is used for a regular copy operation |
static int |
VERSION_COPY
|
Method Summary | |
com.arsdigita.domain.DomainObject |
copy(CustomCopy source,
CustomCopy target,
com.arsdigita.domain.DomainObject object,
com.arsdigita.persistence.metadata.Property prop)
Creates a copy, by reference or by value, of the property represented in object . |
com.arsdigita.domain.DomainObject |
getCopy(com.arsdigita.persistence.OID oid)
Return a copy of the object identified by the specified OID. |
int |
getCopyType()
Return PLAIN_COPY if the particular instance of the item copier is used for making plain copies of the item. |
Field Detail |
public static final int PLAIN_COPY
public static final int VERSION_COPY
Method Detail |
public com.arsdigita.domain.DomainObject copy(CustomCopy source, CustomCopy target, com.arsdigita.domain.DomainObject object, com.arsdigita.persistence.metadata.Property prop)
object
.
When called from within CustomCopy.copyProperty
,
source will be the source object passed into
copyProperty
, target will be this
,
and object
will be the object which is to be copied.
source
- the DomainObject
source (original)
object to which this property belongstarget
- the new DomainObject
copy to which
the return value of this method will be attachedobject
- the DomainObject
property being
copiedprop
- a Property
representing
object
object
if prop
is not a
component or a copy of object
it is a componentpublic com.arsdigita.domain.DomainObject getCopy(com.arsdigita.persistence.OID oid)
null
.
This method will typically be used in the
ContentItem.copyProperty(ContentItem, String, ItemCopier)
method.
oid
- the OID of the object whose copy should be retrieved
DomainObject
.public int getCopyType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |