jetbrains.buildServer.serverSide.settings
Class SimpleProjectSettings

java.lang.Object
  extended by jetbrains.buildServer.serverSide.settings.SimpleProjectSettings
All Implemented Interfaces:
ProjectSettings, XmlExternalizable, XmlStorable

public class SimpleProjectSettings
extends java.lang.Object
implements ProjectSettings

Allows to associate a number of build types with a project.

Author:
kir

Method Summary
 void dispose()
          Called upon rereading of project settings for old instances of the ProjectSettings
 java.util.List<java.lang.String> getBuildTypeIds()
          Return list of applicable buildTypeIds or null if there is no restriction for build type
 boolean isEnabled()
          if enabled, corresponding service should be shown/used
 void readFrom(org.jdom.Element rootElement)
          Read this element data from given JDOM node
 void setBuildTypes(java.util.List<java.lang.String> buildTypeIds)
          Set list of applicable buildTypeIds or null if there is no restriction for build type
 void setEnabled(boolean enabled)
           
 void writeTo(org.jdom.Element parentElement)
          Write data to the JDOM element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dispose

public void dispose()
Description copied from interface: ProjectSettings
Called upon rereading of project settings for old instances of the ProjectSettings

Specified by:
dispose in interface ProjectSettings

setBuildTypes

public void setBuildTypes(@Nullable
                          java.util.List<java.lang.String> buildTypeIds)
Set list of applicable buildTypeIds or null if there is no restriction for build type

Parameters:
buildTypeIds - see above

getBuildTypeIds

@Nullable
public java.util.List<java.lang.String> getBuildTypeIds()
Return list of applicable buildTypeIds or null if there is no restriction for build type

Returns:
see above

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()
if enabled, corresponding service should be shown/used

Returns:
see above

readFrom

public void readFrom(org.jdom.Element rootElement)
Description copied from interface: XmlStorable
Read this element data from given JDOM node

Specified by:
readFrom in interface XmlStorable
Parameters:
rootElement - element which contains information about this storable

writeTo

public void writeTo(org.jdom.Element parentElement)
Description copied from interface: XmlExternalizable
Write data to the JDOM element

Specified by:
writeTo in interface XmlExternalizable
Parameters:
parentElement - - parent element to write data to