Class Extension

    • Constructor Detail

      • Extension

        public Extension()
      • Extension

        public Extension​(java.util.Map<java.lang.String,​java.lang.Object> map)
    • Method Detail

      • getExtDescription

        public java.lang.String getExtDescription()
        Description copied from interface: IExtension
        Get the description of the Extension being configured.
        Specified by:
        getExtDescription in interface IExtension
        Returns:
        Extension description
      • getExtMaxScriptTime

        public java.lang.String getExtMaxScriptTime()
        Description copied from interface: IExtension
        Get maximum seconds the Extension may be run.
        Specified by:
        getExtMaxScriptTime in interface IExtension
        Returns:
        possibly-null (optional) Maximum seconds
      • getExtMaxScriptMem

        public java.lang.String getExtMaxScriptMem()
        Description copied from interface: IExtension
        Get maximum megabytes the Extension may use.
        Specified by:
        getExtMaxScriptMem in interface IExtension
        Returns:
        possibly-null (optional) Maximum megabytes
      • getOwner

        public java.lang.String getOwner()
        Description copied from interface: IExtension
        Get the user who created this Extension config.
        Specified by:
        getOwner in interface IExtension
        Returns:
        Owner
      • getUpdate

        public java.lang.String getUpdate()
        Description copied from interface: IExtension
        Get update time for the Extension config spec.
        Specified by:
        getUpdate in interface IExtension
        Returns:
        Update time
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: IExtension
        Get the description of this Extension config.
        Specified by:
        getDescription in interface IExtension
        Returns:
        Extension config description
      • getExtConfig

        public java.util.Map<java.lang.String,​java.lang.String> getExtConfig()
        Description copied from interface: IExtension
        Get the extension config.
        Specified by:
        getExtConfig in interface IExtension
        Returns:
        Extension config
      • getExtAllowedGroups

        public java.util.List<java.lang.String> getExtAllowedGroups()
        Description copied from interface: IExtension
        Get groups whose members may configure the Extension.
        Specified by:
        getExtAllowedGroups in interface IExtension
        Returns:
        Allowed groups
      • getExtP4USER

        public java.lang.String getExtP4USER()
        Description copied from interface: IExtension
        Get Perforce user account for the Extension to use.
        Specified by:
        getExtP4USER in interface IExtension
        Returns:
        User
      • getExtDebug

        public java.lang.String getExtDebug()
        Description copied from interface: IExtension
        Check if extension diagnostics are enabled.
        Specified by:
        getExtDebug in interface IExtension
        Returns:
        Extension debug
      • setExtDescription

        public void setExtDescription​(java.lang.String extDescription)
        Description copied from interface: IExtension
        Set the description of the Extension being configured.
        Specified by:
        setExtDescription in interface IExtension
        Parameters:
        extDescription - description
      • setExtMaxScriptTime

        public void setExtMaxScriptTime​(java.lang.String extMaxScriptTime)
        Description copied from interface: IExtension
        Set maximum seconds the Extension may be run.
        Specified by:
        setExtMaxScriptTime in interface IExtension
        Parameters:
        extMaxScriptTime - time
      • setExtMaxScriptMem

        public void setExtMaxScriptMem​(java.lang.String extMaxScriptMem)
        Description copied from interface: IExtension
        Set maximum megabytes the Extension may use.
        Specified by:
        setExtMaxScriptMem in interface IExtension
        Parameters:
        extMaxScriptMem - memory
      • setOwner

        public void setOwner​(java.lang.String owner)
        Description copied from interface: IExtension
        Set the user who created this Extension config.
        Specified by:
        setOwner in interface IExtension
        Parameters:
        owner - owner
      • setUpdate

        public void setUpdate​(java.lang.String update)
        Description copied from interface: IExtension
        Set update time for the Extension config spec.
        Specified by:
        setUpdate in interface IExtension
        Parameters:
        update - date
      • setDescription

        public void setDescription​(java.lang.String description)
        Description copied from interface: IExtension
        Set the description of this Extension config.
        Specified by:
        setDescription in interface IExtension
        Parameters:
        description - description
      • setExtConfig

        public void setExtConfig​(java.util.Map<java.lang.String,​java.lang.String> extConfig)
        Description copied from interface: IExtension
        Set the extension config.
        Specified by:
        setExtConfig in interface IExtension
        Parameters:
        extConfig - config map
      • setExtAllowedGroups

        public void setExtAllowedGroups​(java.util.List<java.lang.String> extAllowedGroups)
        Description copied from interface: IExtension
        Set groups whose members may configure the Extension.
        Specified by:
        setExtAllowedGroups in interface IExtension
        Parameters:
        extAllowedGroups - groups
      • setExtP4USER

        public void setExtP4USER​(java.lang.String extP4USER)
        Description copied from interface: IExtension
        Set Perforce user account for the Extension to use.
        Specified by:
        setExtP4USER in interface IExtension
        Parameters:
        extP4USER - Perforce user
      • setExtDebug

        public void setExtDebug​(java.lang.String extDebug)
        Description copied from interface: IExtension
        When the 'ExtDebug' field in the instance config is set to 'tracing' (off of the default of 'none'), every execution of the instance of the Extension will append execution traces to a log file named '.p4-debug-tracing.txt' in the Extension data directory.
        Specified by:
        setExtDebug in interface IExtension
        Parameters:
        extDebug - debug