Class AuditLogFactoryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.audit.AuditLogFactoryImpl
-
- All Implemented Interfaces:
AuditLogFactory
public class AuditLogFactoryImpl extends Object implements AuditLogFactory
- Author:
- Maxim.Manuylov Date: 24.04.2009
-
-
Constructor Summary
Constructors Constructor Description AuditLogFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditLog
createFor(ObjectType objectType, String objectId)
Returns audit log for the specified objectAuditLog
createForAgent(SBuildAgent agent)
Returns audit log for the specified agentAuditLog
createForAgentPool(AgentPool agentPool)
Returns audit log for agent poolAuditLog
createForAgentType(SAgentType agentType)
Returns audit log for the specified agent typeAuditLog
createForBuild(SBuild build)
Returns audit log for the specified buildAuditLog
createForBuildProblem(BuildProblemInfo buildProblem)
Returns audit log for build problemsAuditLog
createForBuildPromotion(BuildPromotion buildPromotion)
Returns audit log for the specified build promotionAuditLog
createForBuildType(BuildType buildType)
Returns audit log for the specified build typeAuditLog
createForBuildTypeTemplate(BuildTypeTemplate buildTypeTemplate)
Returns audit log for the specified build type templateAuditLog
createForBuildTypeWithId(String buildTypeId)
Returns audit log for the build type with the specified internal idAuditLog
createForProject(SProject project)
Returns audit log for the specified projectAuditLog
createForRole(Role role)
Returns audit log for user roleAuditLog
createForServer()
Returns audit log for serverAuditLog
createForTest(STest test)
Returns audit log for testAuditLog
createForUser(User user)
Returns audit log for the specified userAuditLog
createForUserGroup(UserGroup userGroup)
Returns audit log for user groupAuditLog
createForVcsRoot(SVcsRoot vcsRoot)
Returns audit log for the specified vcs rootvoid
setCommentManager(CommentManager commentManager)
void
setSecurityContext(SecurityContext securityContext)
void
setSqlRunner(SQLRunnerEx sqlRunner)
-
-
-
Method Detail
-
setSqlRunner
public void setSqlRunner(@NotNull SQLRunnerEx sqlRunner)
-
setSecurityContext
public void setSecurityContext(@NotNull SecurityContext securityContext)
-
setCommentManager
public void setCommentManager(@NotNull CommentManager commentManager)
-
createForAgent
@NotNull public AuditLog createForAgent(@NotNull SBuildAgent agent)
Description copied from interface:AuditLogFactory
Returns audit log for the specified agent- Specified by:
createForAgent
in interfaceAuditLogFactory
- Parameters:
agent
- agent- Returns:
- audit log for the specified agent
-
createForAgentType
@NotNull public AuditLog createForAgentType(@NotNull SAgentType agentType)
Description copied from interface:AuditLogFactory
Returns audit log for the specified agent type- Specified by:
createForAgentType
in interfaceAuditLogFactory
- Parameters:
agentType
- agent type- Returns:
- audit log for the specified agent type
-
createForBuild
@NotNull public AuditLog createForBuild(@NotNull SBuild build)
Description copied from interface:AuditLogFactory
Returns audit log for the specified build- Specified by:
createForBuild
in interfaceAuditLogFactory
- Parameters:
build
- build- Returns:
- audit log for the specified build
-
createForBuildPromotion
@NotNull public AuditLog createForBuildPromotion(@NotNull BuildPromotion buildPromotion)
Description copied from interface:AuditLogFactory
Returns audit log for the specified build promotion- Specified by:
createForBuildPromotion
in interfaceAuditLogFactory
- Parameters:
buildPromotion
- build promotion- Returns:
- audit log for the specified build promotion
-
createForBuildType
@NotNull public AuditLog createForBuildType(@NotNull BuildType buildType)
Description copied from interface:AuditLogFactory
Returns audit log for the specified build type- Specified by:
createForBuildType
in interfaceAuditLogFactory
- Parameters:
buildType
- build type- Returns:
- audit log for the specified build type
-
createForBuildTypeWithId
@NotNull public AuditLog createForBuildTypeWithId(@NotNull String buildTypeId)
Description copied from interface:AuditLogFactory
Returns audit log for the build type with the specified internal id- Specified by:
createForBuildTypeWithId
in interfaceAuditLogFactory
- Parameters:
buildTypeId
- build type internal id- Returns:
- audit log for the specified build type
-
createForBuildTypeTemplate
@NotNull public AuditLog createForBuildTypeTemplate(@NotNull BuildTypeTemplate buildTypeTemplate)
Description copied from interface:AuditLogFactory
Returns audit log for the specified build type template- Specified by:
createForBuildTypeTemplate
in interfaceAuditLogFactory
- Parameters:
buildTypeTemplate
- build type template- Returns:
- audit log for the specified build type template
-
createForUser
@NotNull public AuditLog createForUser(@NotNull User user)
Description copied from interface:AuditLogFactory
Returns audit log for the specified user- Specified by:
createForUser
in interfaceAuditLogFactory
- Parameters:
user
- user- Returns:
- audit log for the specified user
-
createForProject
@NotNull public AuditLog createForProject(@NotNull SProject project)
Description copied from interface:AuditLogFactory
Returns audit log for the specified project- Specified by:
createForProject
in interfaceAuditLogFactory
- Parameters:
project
- project- Returns:
- audit log for the specified project
-
createForVcsRoot
@NotNull public AuditLog createForVcsRoot(@NotNull SVcsRoot vcsRoot)
Description copied from interface:AuditLogFactory
Returns audit log for the specified vcs root- Specified by:
createForVcsRoot
in interfaceAuditLogFactory
- Parameters:
vcsRoot
- vcs root- Returns:
- audit log for the specified vcs root
-
createForServer
@NotNull public AuditLog createForServer()
Description copied from interface:AuditLogFactory
Returns audit log for server- Specified by:
createForServer
in interfaceAuditLogFactory
- Returns:
- audit log for server
-
createForUserGroup
@NotNull public AuditLog createForUserGroup(@NotNull UserGroup userGroup)
Description copied from interface:AuditLogFactory
Returns audit log for user group- Specified by:
createForUserGroup
in interfaceAuditLogFactory
- Parameters:
userGroup
- user group- Returns:
- audit log for user group
-
createForRole
@NotNull public AuditLog createForRole(@NotNull Role role)
Description copied from interface:AuditLogFactory
Returns audit log for user role- Specified by:
createForRole
in interfaceAuditLogFactory
- Parameters:
role
- role- Returns:
- audit log for user role
-
createForTest
@NotNull public AuditLog createForTest(@NotNull STest test)
Description copied from interface:AuditLogFactory
Returns audit log for test- Specified by:
createForTest
in interfaceAuditLogFactory
- Parameters:
test
- test- Returns:
- audit log for test
-
createForAgentPool
@NotNull public AuditLog createForAgentPool(@NotNull AgentPool agentPool)
Description copied from interface:AuditLogFactory
Returns audit log for agent pool- Specified by:
createForAgentPool
in interfaceAuditLogFactory
- Parameters:
agentPool
- agent pool- Returns:
- audit log for agent pool
-
createFor
@NotNull public AuditLog createFor(@NotNull ObjectType objectType, @NotNull String objectId)
Description copied from interface:AuditLogFactory
Returns audit log for the specified object- Specified by:
createFor
in interfaceAuditLogFactory
- Parameters:
objectType
- object typeobjectId
- object id- Returns:
- audit log for the specified object
-
createForBuildProblem
@NotNull public AuditLog createForBuildProblem(@NotNull BuildProblemInfo buildProblem)
Description copied from interface:AuditLogFactory
Returns audit log for build problems- Specified by:
createForBuildProblem
in interfaceAuditLogFactory
- Parameters:
buildProblem
- build problem- Returns:
- see above
-
-