public class OccurrenceRelationImpl extends Object implements OccurrenceRelation
| Constructor and Description |
|---|
OccurrenceRelationImpl(DocumentModel doc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(List<OccurrenceInfo> occurrences)
Merge the list of occurrences with the existing occurrence info held by
the underlying document model using.
|
DocumentModel |
getOccurrenceDocument() |
List<OccurrenceInfo> |
getOccurrences() |
DocumentRef |
getSourceDocumentRef() |
DocumentRef |
getTargetEntityRef() |
void |
setOccurrences(List<OccurrenceInfo> occurrences)
Replace existing occurrences with the a new list of occurrence info.
|
public OccurrenceRelationImpl(DocumentModel doc)
public List<OccurrenceInfo> getOccurrences() throws ClientException
getOccurrences in interface OccurrenceRelationClientExceptionpublic void addOccurrences(List<OccurrenceInfo> occurrences) throws ClientException
OccurrenceRelationaddOccurrences in interface OccurrenceRelationClientExceptionpublic void setOccurrences(List<OccurrenceInfo> occurrences) throws ClientException
OccurrenceRelationsetOccurrences in interface OccurrenceRelationClientExceptionpublic DocumentRef getSourceDocumentRef() throws ClientException
getSourceDocumentRef in interface OccurrenceRelationClientExceptionpublic DocumentRef getTargetEntityRef() throws ClientException
getTargetEntityRef in interface OccurrenceRelationClientExceptionpublic DocumentModel getOccurrenceDocument()
getOccurrenceDocument in interface OccurrenceRelationCopyright © 2011 Nuxeo SA. All Rights Reserved.