psdi.dm.collection

Class DMCollection

  • java.lang.Object
    • Constructor Detail

      • DMCollection

        public DMCollection(MboSet ms)
                     throws MXException,
                            java.rmi.RemoteException
        Construct the DMCollection object
        Parameters:
        ms - Mbo set
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Migration Collection
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Mark this Collection to be deleted depending on the access modifier. Collection is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • importConfig

        public void importConfig(byte[] fileContents,
                                 boolean addConfig,
                                 int limit)
                          throws java.rmi.RemoteException,
                                 MXException
        Imports the collection from the file.
        Specified by:
        importConfig in interface DMCollectionRemote
        Parameters:
        fileContents - The byte array that is the XML document.
        addConfig - Whether DMCollectionObjects should be created for the records imported.
        limit - The maximum number of top-level records to import.
        Throws:
        MXException - if the file contents cannot be imported.
        java.rmi.RemoteException
        See Also:
        DMCollection.importConfig(byte[], boolean, int)
      • isValidationRunning

        public boolean isValidationRunning()
                                    throws MXException,
                                           java.rmi.RemoteException
        Get the flag that shows if validation is running or done
        Specified by:
        isValidationRunning in interface DMCollectionRemote
        Returns:
        true if running else false
        Throws:
        MXException
        java.rmi.RemoteException
      • commit

        protected void commit()
        Overrides:
        commit in class Mbo