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 voidaddError(SPersistentEntity entity, Throwable error)Registers persisting error for specified entityvoidaddError(SProject project, File file, Throwable error)Registers persisting error for file inside a projectvoidaddError(SProject project, String path, Throwable error)Registers persisting error for file inside a projectvoidclearAllErrors(SProject project)Clears all persisting errors in the specified projectvoidclearError(SPersistentEntity entity)Clears persisting error for the specified entityvoidclearError(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 errorsbooleanhasErrors()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:ProjectPersistErrorsRegisters persisting error for specified entity- Specified by:
addErrorin 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:ProjectPersistErrorsRegisters persisting error for file inside a project- Specified by:
addErrorin 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:ProjectPersistErrorsRegisters persisting error for file inside a project- Specified by:
addErrorin 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:ProjectPersistErrorsClears persisting error for the specified entity- Specified by:
clearErrorin interfaceProjectPersistErrors- Parameters:
entity- entity
-
clearError
public void clearError(@NotNull SProject project, @NotNull String path)Description copied from interface:ProjectPersistErrorsClears persisting error for the given path in specified project- Specified by:
clearErrorin 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:ProjectPersistErrorsClears all persisting errors in the specified project- Specified by:
clearAllErrorsin interfaceProjectPersistErrors- Parameters:
project- project of interest
-
getProjectErrors
@NotNull public Map<SProject,Throwable> getProjectErrors()
Description copied from interface:ProjectPersistErrorsReturns project config persisting errors- Specified by:
getProjectErrorsin interfaceProjectPersistErrors- Returns:
- see above
-
getBuildTypeErrors
@NotNull public Map<SBuildType,Throwable> getBuildTypeErrors()
Description copied from interface:ProjectPersistErrorsReturns buildType config persisting errors- Specified by:
getBuildTypeErrorsin interfaceProjectPersistErrors- Returns:
- see above
-
getTemplateErrors
@NotNull public Map<BuildTypeTemplate,Throwable> getTemplateErrors()
Description copied from interface:ProjectPersistErrorsReturns template config persisting errors- Specified by:
getTemplateErrorsin interfaceProjectPersistErrors- Returns:
- see above
-
getVcsRootErrors
@NotNull public Map<SVcsRoot,Throwable> getVcsRootErrors()
Description copied from interface:ProjectPersistErrorsReturns VCS root config persisting errors- Specified by:
getVcsRootErrorsin interfaceProjectPersistErrors- Returns:
- see above
-
getFileErrors
@NotNull public Map<SProject,Map<String,Throwable>> getFileErrors()
Description copied from interface:ProjectPersistErrorsReturns file persisting errors per project- Specified by:
getFileErrorsin interfaceProjectPersistErrors- Returns:
- see above
-
hasErrors
public boolean hasErrors()
Description copied from interface:ProjectPersistErrorsReturns true if any errors were reported- Specified by:
hasErrorsin interfaceProjectPersistErrors- Returns:
- see above
-
-