Class TemplateWorkspaceImpl
- java.lang.Object
-
- org.jenkinsci.plugins.p4.workspace.Workspace
-
- org.jenkinsci.plugins.p4.workspace.TemplateWorkspaceImpl
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Workspace>
,Serializable
,Cloneable
public class TemplateWorkspaceImpl extends Workspace implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemplateWorkspaceImpl.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TemplateWorkspaceImpl(String charset, boolean pinHost, String templateName, String format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFormat()
String
getName()
Returns the client workspace name as defined in the configuration.String
getTemplateName()
WorkspaceType
getType()
com.perforce.p4java.client.IClient
setClient(com.perforce.p4java.server.IOptionsServer connection, String user)
Setup/Create a Perforce workspace for this mode.void
setName(String name)
boolean
templateExists(com.perforce.p4java.server.IOptionsServer connection)
-
Methods inherited from class org.jenkinsci.plugins.p4.workspace.Workspace
addEnv, all, clone, deepClone, getCharset, getDescriptor, getExpand, getFullName, getHostName, getRootPath, getSyncID, isCleanup, isPinHost, setExpand, setHostName, setRootPath, setSyncID
-
-
-
-
Method Detail
-
getTemplateName
public String getTemplateName()
-
getFormat
public String getFormat()
-
getName
public String getName()
Description copied from class:Workspace
Returns the client workspace name as defined in the configuration. This may include ${tag} that have not been expanded.
-
getType
public WorkspaceType getType()
-
setClient
public com.perforce.p4java.client.IClient setClient(com.perforce.p4java.server.IOptionsServer connection, String user) throws Exception
Description copied from class:Workspace
Setup/Create a Perforce workspace for this mode.
-
-