psdi.util

Class DMSFactory

  • java.lang.Object
    • psdi.util.DMSFactory


  • public class DMSFactory
    extends java.lang.Object
    Creates and caches instances of DMSManager, for document management systems.
    See Also:
    DMSManager, Doclinks, Docinfo
    • Constructor Summary

      Constructors 
      Constructor and Description
      DMSFactory() 
    • Constructor Detail

      • DMSFactory

        public DMSFactory()
    • Method Detail

      • getDMSManager

        public static DMSManager getDMSManager(MboRemote dmsMbo)
                                        throws MXException
        Return an instance of the class named by dmsapisetting classname.
        Parameters:
        dmsMbo - The dmsapisetting mbo for this DMS.
        Returns:
        Instance of DMSManager
        Throws:
        doclink - / noDMSManager
        MXException
        See Also:
        DMSManager
      • getDocumentURL

        public static java.lang.String getDocumentURL(MboRemote dmsMbo,
                                                      MboRemote doc,
                                                      MboRemote doclinkMbo)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Calls getDocumentURL method of the appropriate DMSManager.
        Parameters:
        dmsMbo - The dmsapisetting mbo for this document's DMS.
        doc - The doclinks or docinfo mbo for this document (with non-persistent attributes appropriately populated).
        doclinkMbo - The doclinkMbo. This is optional but can be provided to support DMS that needs values such as document version.
        Returns:
        The value for doclinks weburl.
        Throws:
        doclink - / badDMSName
        MXException
        java.rmi.RemoteException
        See Also:
        DMSFactory.getDMSManager(psdi.mbo.MboRemote), psdi.util.DMSManager#getDocumentURL(MboRemote)