public interface DMXObject extends Identifiable, JSONEnabled
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.
|
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId) |
List<Association> |
getAssociations()
Fetches all associations this object is a player in.
|
ChildTopics |
getChildTopics() |
Object |
getDatabaseVendorObject() |
long |
getId() |
DMXObjectModel |
getModel() |
Object |
getProperty(String propUri)
Returns this object's property value associated with the given property URI.
|
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
RelatedTopic |
getRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
Fetches and returns a related topic or
null if no such topic extists. |
List<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
List<RelatedTopic> |
getRelatedTopics(String assocTypeUri) |
List<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
SimpleValue |
getSimpleValue() |
DMXType |
getType()
Returns the type of this object.
|
String |
getTypeUri() |
String |
getUri() |
boolean |
hasProperty(String propUri)
Checks whether for this object a property value is associated with a given property URI.
|
DMXObject |
loadChildTopics() |
DMXObject |
loadChildTopics(String assocDefUri) |
void |
removeProperty(String propUri)
Removes this object's property associated with the given property URI.
|
void |
setChildTopics(ChildTopicsModel childTopics) |
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex) |
void |
setSimpleValue(boolean value) |
void |
setSimpleValue(int value) |
void |
setSimpleValue(long value) |
void |
setSimpleValue(SimpleValue value) |
void |
setSimpleValue(String value) |
void |
setTypeUri(String typeUri) |
void |
setUri(String uri) |
void |
updateChildTopics(ChildTopicsModel updateModel,
AssociationDefinition assocDef) |
toJSON
long getId()
getId
in interface Identifiable
String getTypeUri()
void setTypeUri(String typeUri)
SimpleValue getSimpleValue()
void setSimpleValue(String value)
void setSimpleValue(int value)
void setSimpleValue(long value)
void setSimpleValue(boolean value)
void setSimpleValue(SimpleValue value)
ChildTopics getChildTopics()
void setChildTopics(ChildTopicsModel childTopics)
DMXObject loadChildTopics()
DMXObject loadChildTopics(String assocDefUri)
DMXType getType()
No access control is performed as Implicit READ permission applies: if a user has READ access to an object she has READ access to its type as well.
Note: if the user would have no READ access to this object the DMX Core would not instantiate it in the
first place, but throw an AccessControlException
.
DMXObjectModel getModel()
void updateChildTopics(ChildTopicsModel updateModel, AssociationDefinition assocDef)
void delete()
RelatedTopic getRelatedTopic(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
null
if no such topic extists.assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopic> getRelatedTopics(String assocTypeUri)
List<RelatedTopic> getRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUris
- may *not* be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullRelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullList<RelatedAssociation> getRelatedAssociations(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullAssociation getAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, long othersTopicId)
List<Association> getAssociations()
Object getProperty(String propUri)
boolean hasProperty(String propUri)
void setProperty(String propUri, Object propValue, boolean addToIndex)
void removeProperty(String propUri)
Object getDatabaseVendorObject()
Copyright © 2018. All Rights Reserved.