Interface IDocumentum

  • All Superinterfaces:
    java.rmi.Remote

    public interface IDocumentum
    extends java.rmi.Remote
    This class abstracts away from the documentum methods necessary to "do things" that the crawler or authority needs to be done with the Documentum repository. The purpose for breaking this out is to permit the Documentum invocation to be RMI based, because it keeps segfaulting on us. One of the tricks needed is to preserve session. This is handled at this level by explicitly passing a session string around. The session string is created on the remote JVM, and is subsequently used to describe the individual session we care about from the client side.
    • Method Detail

      • createSession

        void createSession​(java.lang.String docbaseName,
                           java.lang.String userName,
                           java.lang.String password,
                           java.lang.String domain)
                    throws DocumentumException,
                           java.rmi.RemoteException
        Create a session.
        Parameters:
        docbaseName - is the name of the docbase we want to connect to.
        userName - is the username to use to establish the session.
        password - is the password to use to establish the session.
        domain - is the domain to use to establish the session.
        Throws:
        DocumentumException
        java.rmi.RemoteException
      • getDocbaseName

        java.lang.String getDocbaseName()
                                 throws DocumentumException,
                                        java.rmi.RemoteException
        Read the docbase name based on the session.
        Throws:
        DocumentumException
        java.rmi.RemoteException
      • performDQLQuery

        IDocumentumResult performDQLQuery​(java.lang.String dql)
                                   throws DocumentumException,
                                          java.rmi.RemoteException
        Perform a DQL query. What comes back from this is the equivalent of a DFC collection, which I've represented as an interface that reads a resultset-like object in a streamed manner.
        Parameters:
        dql - is the query that is to be fired off.
        Returns:
        a resultset. This differs somewhat from the documentum convention in that it is ALWAYS returned, even if it is empty.
        Throws:
        DocumentumException
        java.rmi.RemoteException
      • getObjectByQualification

        IDocumentumObject getObjectByQualification​(java.lang.String dql)
                                            throws DocumentumException,
                                                   java.rmi.RemoteException
        Get a documentum object, by qualification. The qualification is a DQL query part. The returned object has properties as described by the methods of IDocumentumObject.
        Throws:
        DocumentumException
        java.rmi.RemoteException
      • isOneOf

        boolean isOneOf​(java.lang.String theType,
                        java.lang.String[] matchTypeSet)
                 throws DocumentumException,
                        java.rmi.RemoteException
        Check if an object type is equal to or is a subtype of any one of a set of other object types.
        Throws:
        DocumentumException
        java.rmi.RemoteException
      • buildDateString

        java.lang.String buildDateString​(long timestamp)
                                  throws java.rmi.RemoteException
        Build a DQL date string from a long timestamp
        Throws:
        java.rmi.RemoteException