public class ViewHandler extends Object
Modifier and Type | Method and Description |
---|---|
void |
changeConfig(Document xml,
Map<String,String> replacePatternOldNew)
Changes provided xml document based on oldValue=newValue value pairs
provided in replacePatternOldNew
|
void |
createView(String url,
String niewViewName,
Document viewConfig,
String authStringEnc)
Creates a view in jenkins.
|
List<String> |
getNamesOfAssignedJobs(Document view)
Returns names of jobs that are visible in the view.
|
Document |
getViewConfig(String url,
String authStringEnc)
Returns config.xml of the object that url points at as a Document object.
|
public Document getViewConfig(String url, String authStringEnc)
url
- Absolute url to the viewauthStringEnc
- Encrypted username:password to use when accessing url.public List<String> getNamesOfAssignedJobs(Document view)
view
- Config.xml of a view.public void changeConfig(Document xml, Map<String,String> replacePatternOldNew)
xml
- Document which parameters need to be changedreplacePatternOldNew
- Map of oldValue=newValue that should be used when changing xmlpublic void createView(String url, String niewViewName, Document viewConfig, String authStringEnc)
url
- view that createItem will be called onniewViewName
- name of the view we are trying to createviewConfig
- config.xml that view will be created fromauthStringEnc
- authenticationCopyright © 2016. All rights reserved.