Class ServiceVersionParameters


  • public final class ServiceVersionParameters
    extends java.lang.Object
    The parameters used to create a new version in a branch-versioned feature service.
    Since:
    100.9.0
    See Also:
    ServiceGeodatabase
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceVersionParameters()
      Constructs a ServiceVersionParameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      VersionAccess getAccess()
      Gets the access level of the version.
      java.lang.String getDescription()
      Gets the description of the version.
      java.lang.String getName()
      Gets the name of the version.
      void setAccess​(VersionAccess versionAccess)
      Sets the access level of the version.
      void setDescription​(java.lang.String description)
      Sets the description of the version.
      void setName​(java.lang.String name)
      Sets the name of the version.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceVersionParameters

        public ServiceVersionParameters()
        Constructs a ServiceVersionParameters.
        Since:
        100.9.0
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Sets the name of the version.

        The name should be short (less than 64 characters) and not contain any special characters.

        Parameters:
        name - the name of the version
        Throws:
        java.lang.IllegalArgumentException - if name is null
        Since:
        100.9.0
      • getName

        public java.lang.String getName()
        Gets the name of the version.

        The name should be short (less than 64 characters) and not contain any special characters.

        Returns:
        the name of the version
        Since:
        100.9.0
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description of the version.
        Parameters:
        description - the description of the version
        Throws:
        java.lang.IllegalArgumentException - if description is null
        Since:
        100.9.0
      • getDescription

        public java.lang.String getDescription()
        Gets the description of the version.
        Returns:
        the description of the version
        Since:
        100.9.0
      • setAccess

        public void setAccess​(VersionAccess versionAccess)
        Sets the access level of the version. The default value is VersionAccess.PUBLIC.
        Parameters:
        versionAccess - the VersionAccess
        Throws:
        java.lang.IllegalArgumentException - if versionAccess is null
        Since:
        100.9.0
      • getAccess

        public VersionAccess getAccess()
        Gets the access level of the version. The default value is VersionAccess.PUBLIC.
        Returns:
        a VersionAccess
        Since:
        100.9.0