class TopicImpl extends DMXObjectImpl implements Topic
CoreService.| Modifier and Type | Field and Description |
|---|---|
private Logger |
logger |
mf, model, pl| Constructor and Description |
|---|
TopicImpl(TopicModelImpl model,
PersistenceLayer pl) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the DMX object in its entirety, that is
- the object itself (the parent)
- all child topics associated via "dmx.core.composition", recusively
- all the remaining direct associations, e.g.
|
Topic |
findChildTopic(String topicTypeUri)
Searches this topic's child topics for a topic of the given type.
|
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId) |
List<Association> |
getAssociations()
Fetches all associations this object is a player in.
|
TopicModelImpl |
getModel() |
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
Topic |
loadChildTopics() |
Topic |
loadChildTopics(String assocDefUri) |
void |
update(TopicModel updateModel) |
className, equals, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hashCode, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, updateChildTopicsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, updateChildTopicstoJSONTopicImpl(TopicModelImpl model, PersistenceLayer pl)
public final void update(TopicModel updateModel)
public final void delete()
DMXObjectpublic final Topic findChildTopic(String topicTypeUri)
TopicThe first topic found is returned, according to a depth-first search. For multiple-value childs the first topic is returned. If the given type matches this topic directly it is returned immediately.
The search is driven by this topic's type definition. That is child topics which do not adhere to the type definition are not found.
TODO: make this generic by moving to DMXObject interface?
findChildTopic in interface Topicnull.public final Topic loadChildTopics()
loadChildTopics in interface DMXObjectloadChildTopics in interface TopicloadChildTopics in class DMXObjectImplpublic final Topic loadChildTopics(String assocDefUri)
loadChildTopics in interface DMXObjectloadChildTopics in interface TopicloadChildTopics in class DMXObjectImplpublic TopicModelImpl getModel()
public final List<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics in interface DMXObjectassocTypeUris - may *not* be nullmyRoleTypeUri - may be nullothersRoleTypeUri - may be nullothersTopicTypeUri - may be nullpublic final RelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociation in interface DMXObjectassocTypeUri - may be nullmyRoleTypeUri - may be nullothersRoleTypeUri - may be nullothersAssocTypeUri - may be nullpublic final List<RelatedAssociation> getRelatedAssociations(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociations in interface DMXObjectassocTypeUri - may be nullmyRoleTypeUri - may be nullothersRoleTypeUri - may be nullothersAssocTypeUri - may be nullpublic final Association getAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, long othersTopicId)
getAssociation in interface DMXObjectpublic final List<Association> getAssociations()
DMXObjectgetAssociations in interface DMXObjectCopyright © 2018. All Rights Reserved.