Package com.perforce.p4java.core
Interface IExtension
- All Superinterfaces:
IExtensionSummary,IServerResource
- All Known Implementing Classes:
Extension
-
Method Summary
Modifier and TypeMethodDescriptionGet the description of this Extension config.Get groups whose members may configure the Extension.Get the extension config.Check if extension diagnostics are enabled.Get the description of the Extension being configured.Get maximum megabytes the Extension may use.Get maximum seconds the Extension may be run.Get Perforce user account for the Extension to use.getOwner()Get the user who created this Extension config.Get update time for the Extension config spec.voidsetDescription(String description) Set the description of this Extension config.voidsetExtAllowedGroups(List<String> extAllowedGroups) Set groups whose members may configure the Extension.voidsetExtConfig(Map<String, String> extConfig) Set the extension config.voidsetExtDebug(String extDebug) 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.voidsetExtDescription(String extDescription) Set the description of the Extension being configured.voidsetExtMaxScriptMem(String extMaxScriptMem) Set maximum megabytes the Extension may use.voidsetExtMaxScriptTime(String extMaxScriptTime) Set maximum seconds the Extension may be run.voidsetExtP4USER(String extP4USER) Set Perforce user account for the Extension to use.voidSet the user who created this Extension config.voidSet update time for the Extension config spec.Methods inherited from interface com.perforce.p4java.impl.generic.core.file.IExtensionSummary
getExtArchDir, getExtDataDir, getExtDescriptionSnippet, getExtDeveloper, getExtEnabled, getExtGlobalConf, getExtInstanceConf, getExtName, getExtRev, getExtUUID, getExtVersion, getNameSpace, setExtArchDir, setExtDataDir, setExtDescriptionSnippet, setExtDeveloper, setExtEnabled, setExtGlobalConf, setExtInstanceConf, setExtName, setExtRev, setExtUUID, setExtVersion, setNameSpaceMethods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Method Details
-
getExtDescription
String getExtDescription()Get the description of the Extension being configured.- Returns:
- Extension description
-
getExtMaxScriptTime
String getExtMaxScriptTime()Get maximum seconds the Extension may be run.- Returns:
- possibly-null (optional) Maximum seconds
-
getExtMaxScriptMem
String getExtMaxScriptMem()Get maximum megabytes the Extension may use.- Returns:
- possibly-null (optional) Maximum megabytes
-
getOwner
String getOwner()Get the user who created this Extension config.- Returns:
- Owner
-
getUpdate
String getUpdate()Get update time for the Extension config spec.- Returns:
- Update time
-
getDescription
String getDescription()Get the description of this Extension config.- Returns:
- Extension config description
-
getExtConfig
Get the extension config.- Returns:
- Extension config
-
getExtAllowedGroups
Get groups whose members may configure the Extension.- Returns:
- Allowed groups
-
getExtP4USER
String getExtP4USER()Get Perforce user account for the Extension to use.- Returns:
- User
-
getExtDebug
String getExtDebug()Check if extension diagnostics are enabled.- Returns:
- Extension debug
-
setExtDescription
Set the description of the Extension being configured.- Parameters:
extDescription- description
-
setExtMaxScriptTime
Set maximum seconds the Extension may be run.- Parameters:
extMaxScriptTime- time
-
setExtMaxScriptMem
Set maximum megabytes the Extension may use.- Parameters:
extMaxScriptMem- memory
-
setOwner
Set the user who created this Extension config.- Parameters:
owner- owner
-
setUpdate
Set update time for the Extension config spec.- Parameters:
update- date
-
setDescription
Set the description of this Extension config.- Parameters:
description- description
-
setExtConfig
Set the extension config.- Parameters:
extConfig- config map
-
setExtAllowedGroups
Set groups whose members may configure the Extension.- Parameters:
extAllowedGroups- groups
-
setExtP4USER
Set Perforce user account for the Extension to use.- Parameters:
extP4USER- Perforce user
-
setExtDebug
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.- Parameters:
extDebug- debug
-