Enum RepositoryDump.PostAction

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CREATE_IF_NOT_EXIST
      Will check-in the file only if it not already existing.
      DELETE
      Delete from the repository.
      PHYSICAL_DELETE
      Will remove a file or folder from the repository.
      UPSERT_IF_NEWER
      If the target file not already existing, it will be created.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RepositoryDump.PostAction valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RepositoryDump.PostAction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CREATE_IF_NOT_EXIST

        public static final RepositoryDump.PostAction CREATE_IF_NOT_EXIST
        Will check-in the file only if it not already existing.
        Existing data will not get overwritten.
      • DELETE

        public static final RepositoryDump.PostAction DELETE
        Delete from the repository.

        Use with care.
        All deletions will be executed before upserts.

      • PHYSICAL_DELETE

        public static final RepositoryDump.PostAction PHYSICAL_DELETE
        Will remove a file or folder from the repository.
        No possibility to restore.
      • UPSERT_IF_NEWER

        public static final RepositoryDump.PostAction UPSERT_IF_NEWER
        If the target file not already existing, it will be created.
        If the target file is already existing and older than the version in the dump, it will be overwritten.
        If the target file is already existing and newer, then the file is skipped for upsert.
    • Method Detail

      • values

        public static RepositoryDump.PostAction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RepositoryDump.PostAction c : RepositoryDump.PostAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RepositoryDump.PostAction valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null