Class CometPublicationPluginDefault

    • Constructor Detail

      • CometPublicationPluginDefault

        public CometPublicationPluginDefault()
    • Method Detail

      • getDocumentParameters

        public java.util.Map<java.lang.String,​java.lang.String> getDocumentParameters​(java.lang.String documentId)
                                                                                     throws CometException
        Gets the document parameters.
        Specified by:
        getDocumentParameters in interface CometPublicationPluginLocal
        Parameters:
        documentId - the document id
        Returns:
        the document parameters
        Throws:
        CometException - the comet exception
      • setDocumentParameters

        public void setDocumentParameters​(java.lang.String documentId,
                                          java.lang.String parameterName,
                                          int count,
                                          java.lang.String parameterValue1,
                                          java.lang.String parameterValue2,
                                          java.lang.String parameterValue3)
                                   throws CometException
        Sets the document parameters.
        Specified by:
        setDocumentParameters in interface CometPublicationPluginLocal
        Parameters:
        documentId - the document id
        parameterName - the parameter name
        count - the count
        parameterValue1 - the parameter value 1
        parameterValue2 - the parameter value 2
        parameterValue3 - the parameter value 3
        Throws:
        CometException - the comet exception
      • setDocumentProperty

        public void setDocumentProperty​(java.lang.String documentId,
                                        java.lang.String propertyName,
                                        java.lang.String propertyValue)
                                 throws CometException
        Sets the document property.
        Specified by:
        setDocumentProperty in interface CometPublicationPluginLocal
        Parameters:
        documentId - the document id
        propertyName - the property name
        propertyValue - the property value
        Throws:
        CometException - the comet exception
      • getDocumentProperty

        public java.lang.String getDocumentProperty​(java.lang.String documentId,
                                                    java.lang.String propertyName)
                                             throws CometException
        Gets the document property.
        Specified by:
        getDocumentProperty in interface CometPublicationPluginLocal
        Parameters:
        documentId - the document id
        propertyName - the property name
        Returns:
        the document property
        Throws:
        CometException - the comet exception
      • setDocumentWorkflowStatus

        public void setDocumentWorkflowStatus​(java.lang.String documentId,
                                              java.lang.String actionId,
                                              java.lang.String url)
                                       throws CometException
        Sets the document workflow status.
        Specified by:
        setDocumentWorkflowStatus in interface CometPublicationPluginLocal
        Parameters:
        documentId - the document id
        actionId - the action id
        url - the url
        Throws:
        CometException - the comet exception
      • search

        public java.util.List<Publication> search​(java.lang.String publicationId,
                                                  java.lang.String subPublicationsId,
                                                  java.lang.String documentName,
                                                  java.lang.String workflowStatusId1,
                                                  java.lang.String workflowStatusId2,
                                                  java.lang.String workflowStatusId3,
                                                  java.lang.String param1,
                                                  java.lang.String value11,
                                                  java.lang.String value12,
                                                  java.lang.String value13,
                                                  java.lang.String param2,
                                                  java.lang.String value21,
                                                  java.lang.String value22,
                                                  java.lang.String value23,
                                                  java.lang.String param3,
                                                  java.lang.String value31,
                                                  java.lang.String value32,
                                                  java.lang.String value33,
                                                  boolean restrictiveCheckbox,
                                                  boolean recursive)
                                           throws CometException
        Search.
        Specified by:
        search in interface CometPublicationPluginLocal
        Parameters:
        publicationId - the publication id
        subPublicationsId - the sub publications id
        documentName - the document name
        workflowStatusId1 - the workflow status id 1
        workflowStatusId2 - the workflow status id 2
        workflowStatusId3 - the workflow status id 3
        param1 - the param 1
        value11 - the value 11
        value12 - the value 12
        value13 - the value 13
        param2 - the param 2
        value21 - the value 21
        value22 - the value 22
        value23 - the value 23
        param3 - the param 3
        value31 - the value 31
        value32 - the value 32
        value33 - the value 33
        restrictiveCheckbox - the restrictive checkbox
        recursive - the recursive
        Returns:
        the list
        Throws:
        CometException - the comet exception
      • getDocumentProductSelection

        public java.util.List<Product> getDocumentProductSelection​(java.lang.String entityModelIdentifier,
                                                                   Context context,
                                                                   java.lang.String documentId)
                                                            throws CometException
        Gets the document product selection.
        Specified by:
        getDocumentProductSelection in interface CometPublicationPluginLocal
        Parameters:
        entityModelIdentifier - the entity model identifier
        context - the context
        documentId - the document id
        Returns:
        the document product selection
        Throws:
        CometException - the comet exception
      • getDocumentProductPlanning

        public java.util.List<Product> getDocumentProductPlanning​(java.lang.String entityModelIdentifier,
                                                                  Context context,
                                                                  java.lang.String documentId,
                                                                  java.lang.String resultEntityId,
                                                                  java.lang.String searchString)
                                                           throws CometException
        Gets the document product planning.
        Specified by:
        getDocumentProductPlanning in interface CometPublicationPluginLocal
        Parameters:
        entityModelIdentifier - the entity model identifier
        context - the context
        documentId - the document id
        resultEntityId - the result entity id
        searchString - the search string
        Returns:
        the document product planning
        Throws:
        CometException - the comet exception
      • getDocumentProductPlanning

        public java.util.List<Product> getDocumentProductPlanning​(java.lang.String entityModelIdentifier,
                                                                  Context context,
                                                                  java.lang.String documentId,
                                                                  java.lang.String resultEntityId,
                                                                  java.lang.String searchString,
                                                                  int mappingFlag)
                                                           throws CometException
        Gets the document product planning.
        Specified by:
        getDocumentProductPlanning in interface CometPublicationPluginLocal
        Parameters:
        entityModelIdentifier - the entity model identifier
        context - the context
        documentId - the document id
        resultEntityId - the result entity id
        searchString - the search string
        mappingFlag - the mapping flag
        Returns:
        the document product planning
        Throws:
        CometException - the comet exception
      • getDocumentTemplates

        public java.util.List<Publication> getDocumentTemplates()
                                                         throws CometException
        Description copied from interface: CometPublicationPluginLocal

        Gets document templates

        Gets the list of master documents configured on this system
        Document templates are managed in a flat list, there is no hierarchy or further structure available for master documents.

        To test this method, you can use the following cscript fragment:

          
           int main() {
             PublicationList documentTemplates = publication::get_document_templates();
             
             // ...
             return 0;
           }
         

        Specified by:
        getDocumentTemplates in interface CometPublicationPluginLocal
        Returns:
        list of master documents
        Throws:
        CometException - the comet exception
      • downloadMetaData

        public CometPriintRemote.DownloadMetaDataResult downloadMetaData​(java.lang.String sessionID,
                                                                         java.lang.String documentID,
                                                                         java.lang.String callback)
                                                                  throws java.rmi.RemoteException
        Download meta data.
        Specified by:
        downloadMetaData in interface CometPublicationPluginLocal
        Parameters:
        sessionID - the session ID
        documentID - the document ID
        callback - the callback
        Returns:
        the download metadata result
        Throws:
        java.rmi.RemoteException - the remote exception
      • checkoutDocument

        public CometPriintRemote.CheckoutDocumentResult checkoutDocument​(java.lang.String sessionID,
                                                                         java.lang.String documentID,
                                                                         java.lang.String masterDocumentID,
                                                                         java.lang.String callback,
                                                                         java.lang.String options)
                                                                  throws java.rmi.RemoteException
        Checkout document.
        Specified by:
        checkoutDocument in interface CometPublicationPluginLocal
        Parameters:
        sessionID - the session ID
        documentID - the document ID
        masterDocumentID - the master document ID
        callback - the callback
        options - the options
        Returns:
        the checkout document result
        Throws:
        java.rmi.RemoteException - the remote exception
      • documentStatus

        public CometPriintRemote.DocumentStatusResult documentStatus​(java.lang.String sessionID,
                                                                     java.lang.String documentID,
                                                                     java.lang.String callback)
                                                              throws java.rmi.RemoteException
        Document status.
        Specified by:
        documentStatus in interface CometPublicationPluginLocal
        Parameters:
        sessionID - the session ID
        documentID - the document ID
        callback - the callback
        Returns:
        the document status result
        Throws:
        java.rmi.RemoteException - the remote exception
      • revertDocument

        public CometPriintRemote.RevertDocumentResult revertDocument​(java.lang.String sessionID,
                                                                     java.lang.String documentID,
                                                                     java.lang.String callback)
                                                              throws java.rmi.RemoteException
        Revert document.
        Specified by:
        revertDocument in interface CometPublicationPluginLocal
        Parameters:
        sessionID - the session ID
        documentID - the document ID
        callback - the callback
        Returns:
        the revert document result
        Throws:
        java.rmi.RemoteException - the remote exception