Class ConfigActionFactoryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ConfigActionFactoryImpl
-
- All Implemented Interfaces:
ConfigActionFactory
,ConfigActionFactoryEx
public class ConfigActionFactoryImpl extends Object implements ConfigActionFactoryEx
-
-
Constructor Summary
Constructors Constructor Description ConfigActionFactoryImpl(SecurityContext securityContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigActionEx
createAction()
Creates a config action with an empty description and the current authority holder as a user (SecurityContext.getAuthorityHolder()
).ConfigActionEx
createAction(long actionId, Long userId, String projectExtId, String description)
ConfigActionEx
createAction(String description)
Creates a config action with the specified description and the current authority holder as a user (SecurityContext.getAuthorityHolder()
).ConfigActionEx
createAction(SProject project, String description)
Creates a config action with the given description in the specified project and the current authority holder as a user (SecurityContext.getAuthorityHolder()
).ConfigActionEx
createAction(SUser user, SProject project, String description)
Creates a config action with the given description in the specified project and the given user.void
setUserModel(UserModel users)
-
-
-
Constructor Detail
-
ConfigActionFactoryImpl
public ConfigActionFactoryImpl(@NotNull SecurityContext securityContext)
-
-
Method Detail
-
setUserModel
public void setUserModel(UserModel users)
-
createAction
@NotNull public ConfigActionEx createAction()
Description copied from interface:ConfigActionFactory
Creates a config action with an empty description and the current authority holder as a user (SecurityContext.getAuthorityHolder()
).- Specified by:
createAction
in interfaceConfigActionFactory
- Specified by:
createAction
in interfaceConfigActionFactoryEx
- Returns:
- see above
-
createAction
@NotNull public ConfigActionEx createAction(@NotNull String description)
Description copied from interface:ConfigActionFactory
Creates a config action with the specified description and the current authority holder as a user (SecurityContext.getAuthorityHolder()
).- Specified by:
createAction
in interfaceConfigActionFactory
- Specified by:
createAction
in interfaceConfigActionFactoryEx
- Parameters:
description
- config action description- Returns:
- see above
-
createAction
@NotNull public ConfigActionEx createAction(@NotNull SProject project, @NotNull String description)
Description copied from interface:ConfigActionFactory
Creates a config action with the given description in the specified project and the current authority holder as a user (SecurityContext.getAuthorityHolder()
).- Specified by:
createAction
in interfaceConfigActionFactory
- Specified by:
createAction
in interfaceConfigActionFactoryEx
- Parameters:
project
- project of interestdescription
- config action description- Returns:
- see above
-
createAction
@NotNull public ConfigActionEx createAction(@Nullable SUser user, @Nullable SProject project, @NotNull String description)
Description copied from interface:ConfigActionFactory
Creates a config action with the given description in the specified project and the given user.- Specified by:
createAction
in interfaceConfigActionFactory
- Specified by:
createAction
in interfaceConfigActionFactoryEx
- Parameters:
user
- user for config actionproject
- project of interestdescription
- config action description- Returns:
- see above
-
createAction
@NotNull public ConfigActionEx createAction(long actionId, @Nullable Long userId, @Nullable String projectExtId, @NotNull String description)
- Specified by:
createAction
in interfaceConfigActionFactoryEx
-
-