Class LinkProviderManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.web.systemProblems.LinkProviderManagerImpl
-
- All Implemented Interfaces:
SystemProblemWebSpecificsManager
public class LinkProviderManagerImpl extends Object implements SystemProblemWebSpecificsManager
- Author:
- Sergey.Anchipolevsky Date: 02.10.2009
-
-
Constructor Summary
Constructors Constructor Description LinkProviderManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemProblemWebSpecificsProviderfindProvider(String problemType)Returns the provider registered for the given problem typeSystemProblemWebSpecificsgetWebSpecifics(SystemProblemEntry entry, Object inContextOf, WebLink currentPage)Returns an object containing web specific information for the given system problem.voidregisterProvider(String problemType, SystemProblemWebSpecificsProvider provider)Register a SystemProblemWebSpecificsProvider instance for the specified system problem type.voidunregisterProvider(String problemType)Unregisters a SystemProblemWebSpecificsProvider instance for the specified system problem type.
-
-
-
Method Detail
-
registerProvider
public void registerProvider(@NotNull String problemType, @NotNull SystemProblemWebSpecificsProvider provider)Description copied from interface:SystemProblemWebSpecificsManagerRegister a SystemProblemWebSpecificsProvider instance for the specified system problem type. The provider previously registered for this problem type is thrown away.- Specified by:
registerProviderin interfaceSystemProblemWebSpecificsManager- Parameters:
problemType- problem typeprovider- provider
-
unregisterProvider
public void unregisterProvider(@NotNull String problemType)Description copied from interface:SystemProblemWebSpecificsManagerUnregisters a SystemProblemWebSpecificsProvider instance for the specified system problem type.- Specified by:
unregisterProviderin interfaceSystemProblemWebSpecificsManager- Parameters:
problemType- problem type
-
findProvider
@Nullable public SystemProblemWebSpecificsProvider findProvider(@NotNull String problemType)
Description copied from interface:SystemProblemWebSpecificsManagerReturns the provider registered for the given problem type- Specified by:
findProviderin interfaceSystemProblemWebSpecificsManager- Parameters:
problemType- problem type- Returns:
- the provider or null if no provider registered for the problem type
-
getWebSpecifics
public SystemProblemWebSpecifics getWebSpecifics(@NotNull SystemProblemEntry entry, @Nullable Object inContextOf, @Nullable WebLink currentPage)
Description copied from interface:SystemProblemWebSpecificsManagerReturns an object containing web specific information for the given system problem.- Specified by:
getWebSpecificsin interfaceSystemProblemWebSpecificsManager- Parameters:
entry- system probleminContextOf- the system entity -- Project (SProject), Build Type (SBuildType), VCS Root (SVcsRoot), etc. -- on the context of which the problem is displayed/handled. For example, on the build configuration page each problem is displayed in the context of this Build Type, even if it isn't directly related (say, a VCS Root problem). Null means the context is the whole system.currentPage- the web link of the page the problem is currently diplayed on.- Returns:
- the SystemProblemWebSpecifics object or null if the web specific information cannot be constructed/gathered for this problem
-
-