jetbrains.buildServer.serverSide
Interface SPersistentEntity

All Known Subinterfaces:
BuildTypeIdentity, BuildTypeTemplate, RemoteBuildType, SBuildType, SProject, SVcsRoot, VcsRootInstance

public interface SPersistentEntity

Represents an entity which configuration can be write to a configuration file.

Since:
8.0
Author:
Leonid Bushuev from JetBrains

Method Summary
 java.io.File getConfigurationFile()
          Returns the configuration file where this entity instance is persisted (or will be persisted to).
 java.lang.String getExternalId()
          Returns the external identifier.
 java.lang.String getName()
          Returns the name of the entity.
 SPersistentEntity getParent()
          The parent entity.
 void persist()
          Persists this entity instance onto disk.
 

Method Detail

getExternalId

@NotNull
java.lang.String getExternalId()
Returns the external identifier.

Returns:
the external identifier.

getName

java.lang.String getName()
Returns the name of the entity.

Returns:
see above.

persist

void persist()
             throws PersistFailedException
Persists this entity instance onto disk. Should be called each time when settings are changed, otherwise the changes will be lost after the server restart.

Throws:
PersistFailedException - if persisting failed

getConfigurationFile

@NotNull
java.io.File getConfigurationFile()
Returns the configuration file where this entity instance is persisted (or will be persisted to).

Returns:
see above.

getParent

@Nullable
SPersistentEntity getParent()
The parent entity.

Returns:
see above.