Interface DomainFolderChangeListener

  • All Known Implementing Classes:
    DomainFolderListenerAdapter

    public interface DomainFolderChangeListener
    Methods for notifications when changes are made to a domain folder or a domain file.
    • Method Detail

      • domainFolderAdded

        void domainFolderAdded​(DomainFolder folder)
        Notification that a folder is added to parent.
        Parameters:
        folder - domain folder which was just added.
      • domainFileAdded

        void domainFileAdded​(DomainFile file)
        Notification that a file is added to parent folder. You can get the parent from the file.
        Parameters:
        file - domain file which was just added.
      • domainFolderRemoved

        void domainFolderRemoved​(DomainFolder parent,
                                 java.lang.String name)
        Notification that a domain folder is removed.
        Parameters:
        parent - domain folder which contained the folder that was just removed.
        name - the name of the folder that was removed.
      • domainFileRemoved

        void domainFileRemoved​(DomainFolder parent,
                               java.lang.String name,
                               java.lang.String fileID)
        Notification that a file was removed
        Parameters:
        parent - domain folder which contained the file that was just removed.
        name - the name of the file that was removed.
        fileID - file ID or null
      • domainFolderRenamed

        void domainFolderRenamed​(DomainFolder folder,
                                 java.lang.String oldName)
        Notify listeners when a domain folder is renamed.
        Parameters:
        folder - folder that was renamed
        oldName - old name of folder
      • domainFileRenamed

        void domainFileRenamed​(DomainFile file,
                               java.lang.String oldName)
        Notification that the domain file was renamed.
        Parameters:
        file - file that was renamed
        oldName - old name of the file
      • domainFolderMoved

        void domainFolderMoved​(DomainFolder folder,
                               DomainFolder oldParent)
        Notification that the domain folder was moved.
        Parameters:
        folder - the folder (after move)
        oldParent - original parent folder
      • domainFileMoved

        void domainFileMoved​(DomainFile file,
                             DomainFolder oldParent,
                             java.lang.String oldName)
        Notification that the domain file was moved.
        Parameters:
        file - the file (after move)
        oldParent - original parent folder
      • domainFolderSetActive

        void domainFolderSetActive​(DomainFolder folder)
        Notification that the setActive() method on the folder was called.
      • domainFileStatusChanged

        void domainFileStatusChanged​(DomainFile file,
                                     boolean fileIDset)
        Notification that the status for a domain file has changed.
        Parameters:
        file - file whose status has changed.
        fileIDset - if true indicates that the previously missing fileID has been established for the specified file.
      • domainFileObjectReplaced

        void domainFileObjectReplaced​(DomainFile file,
                                      DomainObject oldObject)
        Notification that a new version of the domain object exists and the current one is no longer valid. Existing consumers should be immediately released and no additional use of the oldObject is permitted once this method returns. This is only called for domain objects which were opened for update.
        Parameters:
        file - file whose object was replaced
        oldObject - old object that was replaced
      • domainFileObjectOpenedForUpdate

        void domainFileObjectOpenedForUpdate​(DomainFile file,
                                             DomainObject object)
        Notification that a domain file has been opened for update.
        Parameters:
        file - domain file
        object - domain object open for update
      • domainFileObjectClosed

        void domainFileObjectClosed​(DomainFile file,
                                    DomainObject object)
        Notification that a domain file previously open for update is in the process of closing.
        Parameters:
        file - domain file
        object - domain object which was open for update