Class ProjectPersistErrorsImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.persisting.projects.ProjectPersistErrorsImpl
-
- All Implemented Interfaces:
ProjectPersistErrors
public class ProjectPersistErrorsImpl extends Object implements ProjectPersistErrors
-
-
Constructor Summary
Constructors Constructor Description ProjectPersistErrorsImpl(ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addError(SPersistentEntity entity, Throwable error)
Registers persisting error for specified entityvoid
addError(SProject project, File file, Throwable error)
Registers persisting error for file inside a projectvoid
addError(SProject project, String path, Throwable error)
Registers persisting error for file inside a projectvoid
clearAllErrors(SProject project)
Clears all persisting errors in the specified projectvoid
clearError(SPersistentEntity entity)
Clears persisting error for the specified entityvoid
clearError(SProject project, String path)
Clears persisting error for the given path in specified projectMap<SBuildType,Throwable>
getBuildTypeErrors()
Returns buildType config persisting errorsMap<SProject,Map<String,Throwable>>
getFileErrors()
Returns file persisting errors per projectMap<SProject,Throwable>
getProjectErrors()
Returns project config persisting errorsMap<BuildTypeTemplate,Throwable>
getTemplateErrors()
Returns template config persisting errorsMap<SVcsRoot,Throwable>
getVcsRootErrors()
Returns VCS root config persisting errorsboolean
hasErrors()
Returns true if any errors were reported
-
-
-
Constructor Detail
-
ProjectPersistErrorsImpl
public ProjectPersistErrorsImpl(@NotNull ProjectManager projectManager)
-
-
Method Detail
-
addError
public void addError(@NotNull SPersistentEntity entity, @NotNull Throwable error)
Description copied from interface:ProjectPersistErrors
Registers persisting error for specified entity- Specified by:
addError
in interfaceProjectPersistErrors
- Parameters:
entity
- entity where persisting failederror
- error
-
addError
public void addError(@NotNull SProject project, @NotNull String path, @NotNull Throwable error)
Description copied from interface:ProjectPersistErrors
Registers persisting error for file inside a project- Specified by:
addError
in interfaceProjectPersistErrors
- Parameters:
project
- project the file belongs topath
- path to file relative to project's configuration dir with '/' as a path separatorerror
- error
-
addError
public void addError(@NotNull SProject project, @NotNull File file, @NotNull Throwable error)
Description copied from interface:ProjectPersistErrors
Registers persisting error for file inside a project- Specified by:
addError
in interfaceProjectPersistErrors
- Parameters:
project
- project the file belongs tofile
- file inside the project's direrror
- error
-
clearError
public void clearError(@NotNull SPersistentEntity entity)
Description copied from interface:ProjectPersistErrors
Clears persisting error for the specified entity- Specified by:
clearError
in interfaceProjectPersistErrors
- Parameters:
entity
- entity
-
clearError
public void clearError(@NotNull SProject project, @NotNull String path)
Description copied from interface:ProjectPersistErrors
Clears persisting error for the given path in specified project- Specified by:
clearError
in interfaceProjectPersistErrors
- Parameters:
project
- project the file belongs topath
- path to file relative to project's configuration dir
-
clearAllErrors
public void clearAllErrors(@NotNull SProject project)
Description copied from interface:ProjectPersistErrors
Clears all persisting errors in the specified project- Specified by:
clearAllErrors
in interfaceProjectPersistErrors
- Parameters:
project
- project of interest
-
getProjectErrors
@NotNull public Map<SProject,Throwable> getProjectErrors()
Description copied from interface:ProjectPersistErrors
Returns project config persisting errors- Specified by:
getProjectErrors
in interfaceProjectPersistErrors
- Returns:
- see above
-
getBuildTypeErrors
@NotNull public Map<SBuildType,Throwable> getBuildTypeErrors()
Description copied from interface:ProjectPersistErrors
Returns buildType config persisting errors- Specified by:
getBuildTypeErrors
in interfaceProjectPersistErrors
- Returns:
- see above
-
getTemplateErrors
@NotNull public Map<BuildTypeTemplate,Throwable> getTemplateErrors()
Description copied from interface:ProjectPersistErrors
Returns template config persisting errors- Specified by:
getTemplateErrors
in interfaceProjectPersistErrors
- Returns:
- see above
-
getVcsRootErrors
@NotNull public Map<SVcsRoot,Throwable> getVcsRootErrors()
Description copied from interface:ProjectPersistErrors
Returns VCS root config persisting errors- Specified by:
getVcsRootErrors
in interfaceProjectPersistErrors
- Returns:
- see above
-
getFileErrors
@NotNull public Map<SProject,Map<String,Throwable>> getFileErrors()
Description copied from interface:ProjectPersistErrors
Returns file persisting errors per project- Specified by:
getFileErrors
in interfaceProjectPersistErrors
- Returns:
- see above
-
hasErrors
public boolean hasErrors()
Description copied from interface:ProjectPersistErrors
Returns true if any errors were reported- Specified by:
hasErrors
in interfaceProjectPersistErrors
- Returns:
- see above
-
-