Interface DMXObject

    • Method Detail

      • setUri

        void setUri​(String uri)
      • getTypeUri

        String getTypeUri()
      • setTypeUri

        void setTypeUri​(String typeUri)
      • setSimpleValue

        void setSimpleValue​(String value)
      • setSimpleValue

        void setSimpleValue​(int value)
      • setSimpleValue

        void setSimpleValue​(long value)
      • setSimpleValue

        void setSimpleValue​(boolean value)
      • setSimpleValue

        void setSimpleValue​(SimpleValue value)
      • loadChildTopics

        <O extends DMXObject> O loadChildTopics()
      • loadChildTopics

        <O extends DMXObject> O loadChildTopics​(String compDefUri)
      • getType

        DMXType getType()
        Returns the type of this object.

        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.

      • update

        void update​(ChildTopicsModel updateModel)
        Convenience that constructs a DMXObjectModel from a ChildTopicsModel and calls canonic update() with it.
      • updateChildTopics

        void updateChildTopics​(ChildTopicsModel updateModel,
                               CompDef compDef)
        Note: this method is meant only for facet updates.
      • delete

        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. "dmx.core.instantiation"
      • getRelatedTopic

        RelatedTopic getRelatedTopic​(String assocTypeUri,
                                     String myRoleTypeUri,
                                     String othersRoleTypeUri,
                                     String othersTopicTypeUri)
        Fetches and returns a related topic or null if no such topic extists.
        Parameters:
        assocTypeUri - may be null
        myRoleTypeUri - may be null
        othersRoleTypeUri - may be null
        othersTopicTypeUri - may be null
      • getRelatedTopics

        List<RelatedTopic> getRelatedTopics​(String assocTypeUri,
                                            String myRoleTypeUri,
                                            String othersRoleTypeUri,
                                            String othersTopicTypeUri)
        Parameters:
        assocTypeUri - may be null
        myRoleTypeUri - may be null
        othersRoleTypeUri - may be null
        othersTopicTypeUri - may be null
      • getRelatedAssoc

        RelatedAssoc getRelatedAssoc​(String assocTypeUri,
                                     String myRoleTypeUri,
                                     String othersRoleTypeUri,
                                     String othersAssocTypeUri)
        Parameters:
        assocTypeUri - may be null
        myRoleTypeUri - may be null
        othersRoleTypeUri - may be null
        othersAssocTypeUri - may be null
      • getRelatedAssocs

        List<RelatedAssoc> getRelatedAssocs​(String assocTypeUri,
                                            String myRoleTypeUri,
                                            String othersRoleTypeUri,
                                            String othersAssocTypeUri)
        Parameters:
        assocTypeUri - may be null
        myRoleTypeUri - may be null
        othersRoleTypeUri - may be null
        othersAssocTypeUri - may be null
      • getAssoc

        Assoc getAssoc​(String assocTypeUri,
                       String myRoleTypeUri,
                       String othersRoleTypeUri,
                       long othersTopicId)
      • getAssocs

        List<Assoc> getAssocs()
        Fetches all associations this object is a player in.
      • getProperty

        Object getProperty​(String propUri)
        Returns this object's property value associated with the given property URI. If there's no property value associated with the property URI an exception is thrown.
      • hasProperty

        boolean hasProperty​(String propUri)
        Checks whether for this object a property value is associated with a given property URI.
      • setProperty

        void setProperty​(String propUri,
                         Object propValue,
                         boolean addToIndex)
      • removeProperty

        void removeProperty​(String propUri)
        Removes this object's property associated with the given property URI. If there's no property value associated with the property URI nothing is performed.
      • checkWriteAccess

        void checkWriteAccess()
        Checks if current user has write access to this object.
        Throws:
        AccessControlException
      • getDatabaseVendorObject

        Object getDatabaseVendorObject()