Class Extension

All Implemented Interfaces:
IExtension, IServerResource, IExtensionSummary

public class Extension extends ExtensionSummary implements IExtension
  • Constructor Details

    • Extension

      public Extension()
    • Extension

      public Extension(Map<String,Object> map)
  • Method Details

    • getExtDescription

      public 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 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 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 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 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 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 Map<String,String> getExtConfig()
      Description copied from interface: IExtension
      Get the extension config.
      Specified by:
      getExtConfig in interface IExtension
      Returns:
      Extension config
    • getExtAllowedGroups

      public List<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 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 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(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(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(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(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(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(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(Map<String,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(List<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(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(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