public interface Association extends RegistryObject
RegistryObject
Modifier and Type | Method and Description |
---|---|
Concept |
getAssociationType()
Gets the association type for this Association.
|
RegistryObject |
getSourceObject()
Gets the Object that is the source of this Association.
|
RegistryObject |
getTargetObject()
Gets the Object that is the target of this Association.
|
boolean |
isConfirmed()
Determines whether an Association has been confirmed completely.
|
boolean |
isConfirmedBySourceOwner()
Determines whether an Association has been confirmed by the owner of the source object.
|
boolean |
isConfirmedByTargetOwner()
Determines whether an Association has been confirmed by the owner of the target object.
|
boolean |
isExtramural()
Determines whether an Association is extramural or not.
|
void |
setAssociationType(Concept associationType)
Sets the association type for this Association.
|
void |
setSourceObject(RegistryObject srcObject)
Sets the Object that is the source of this Association.
|
void |
setTargetObject(RegistryObject targetObject)
Sets the Object that is the target of this Association.
|
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
RegistryObject getSourceObject() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorvoid setSourceObject(RegistryObject srcObject) throws JAXRException
srcObject
- the RegistryObject that is the source object of this AssociationJAXRException
- If the JAXR provider encounters an internal errorRegistryObject getTargetObject() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorvoid setTargetObject(RegistryObject targetObject) throws JAXRException
targetObject
- the RegistryObject that is the target object of this AssociationJAXRException
- If the JAXR provider encounters an internal errorConcept getAssociationType() throws JAXRException
JAXRException
- If the JAXR provider encounters an internal errorvoid setAssociationType(Concept associationType) throws JAXRException
associationType
- the association type for this Association which is a Concept in the AssociationType ClassificationSchemeJAXRException
- If the JAXR provider encounters an internal errorboolean isExtramural() throws JAXRException
An Extramural Association must be confirmed by the User(s) that own the source and/or targert object, if they are different from the User who creates this extramural association. Both the sourceObject and targetObject owners must confirm an extramural Association, in order for it to be visible to third parties.
true
if the sourceObject and/or the targetObject are
owned by a User that is different from the User that created the Association;
false
otherwiseJAXRException
- If the JAXR provider encounters an internal errorboolean isConfirmedBySourceOwner() throws JAXRException
true
if the association has been confirmed by the owner of the sourceObject;
false
otherwise. For intramural Associations always return trueJAXRException
- If the JAXR provider encounters an internal errorboolean isConfirmedByTargetOwner() throws JAXRException
true
if the association has been confirmed by the owner of the targetObject;
false
otherwise. For intramural Associations always return trueJAXRException
- If the JAXR provider encounters an internal errorboolean isConfirmed() throws JAXRException
An association should only be visible to third parties (not involved with the Association) if isConfirmed returns true.
true
if the isConfirmedBySourceOwner and isConfirmedByTargetOwner methods both return true;
false
otherwise. For intramural Associations always return trueJAXRException
- If the JAXR provider encounters an internal errorisConfirmedBySourceOwner()
,
isConfirmedByTargetOwner()
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.