Zone
- Subtype of DerivedPageZone which stores the configuration of
an individual named page instance.public abstract class DerivedPageManager<Zone extends DerivedPageZone>
extends hudson.model.ManagementLink
implements hudson.model.Saveable
DerivedPageComponent
configurations.
TODO(nghia): Because DerivedPageZone
s have URLs based on their names,
we need to make sure that names are different from one another otherwise some
Zone
s will share URLs leading to undefined/undesirable
behaviors. We need to add more UI validation code here.Constructor and Description |
---|
DerivedPageManager(Class<Zone> type)
Load an instance of
DerivedPageManager from Jenkins configuration
from disk if the configuration file (by getConfigFile() ) exists. |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
Handles form submission.
|
protected abstract String |
getConfigFileName()
Return the filename in which to store the configuration serializing a
(singleton) subclass instance.
|
List<Zone> |
getDerivedPages() |
String |
getIconFileName() |
Zone |
getZone(String zoneName) |
void |
save() |
protected void |
setDerivedPages(List<Zone> zones) |
all, getDescription, getRequiredPermission, getRequiresConfirmation, getRequiresPOST, getUrlName
public DerivedPageManager(Class<Zone> type) throws IOException
DerivedPageManager
from Jenkins configuration
from disk if the configuration file (by getConfigFile()
) exists.
Otherwise create a new instance.IOException
public void save() throws IOException
save
in interface hudson.model.Saveable
IOException
protected abstract String getConfigFileName()
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
getIconFileName
in class hudson.model.ManagementLink
public List<Zone> getDerivedPages()
DerivedPageComponent
configured.@Nullable public Zone getZone(String zoneName)
zoneName
- the name of the Zone
to look up.Zone
for the given name, null if none.public org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, IOException
req
- the request.javax.servlet.ServletException
- if something goes wrong.IOException
- if something goes wrong.Copyright © 2004-2015. All Rights Reserved.