Class RemoteCredentialsAccessor
java.lang.Object
com.atlassian.bamboo.v2.build.agent.remote.RemoteCredentialsAccessor
- All Implemented Interfaces:
CredentialsAccessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Iterable<CredentialsData>
@NotNull Iterable<CredentialsData>
getAllCredentials
(@NotNull String pluginKey) @NotNull Iterable<CredentialsData>
getAllCredentialsByPluginKey
(@NotNull String pluginKey) @Nullable CredentialsData
getCredentials
(long id) Gets the Shared Credentials by id@Nullable CredentialsData
getCredentialsByName
(@NotNull String name) Find global shared credentials by namegetCredentialsByNameAndProjectId
(String name, long projectId) Find shared credentials by name and project id@Nullable CredentialsData
getCredentialsByOid
(@NotNull BambooEntityOid oid) Find shared credentials byBambooEntityOid
@NotNull Iterable<CredentialsData>
@NotNull Iterable<CredentialsData>
getGlobalCredentials
(@NotNull String pluginKey) @Nullable CredentialsData
getProjectCredentials
(long id, long projectId) Gets the Shared Credentials by id and projectId@NotNull Iterable<CredentialsData>
getProjectCredentials
(@NotNull Long projectId) @NotNull Iterable<CredentialsData>
getProjectCredentialsByPluginKey
(@NotNull Long projectId, String pluginKey) boolean
hasAnyCredentials
(@NotNull String pluginKey)
-
Constructor Details
-
RemoteCredentialsAccessor
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsAccessor
Gets the Shared Credentials by id- Specified by:
getCredentials
in interfaceCredentialsAccessor
- Returns:
- Returns the object representation of the credentials
-
getCredentialsByOid
@Nullable public @Nullable CredentialsData getCredentialsByOid(@NotNull @NotNull BambooEntityOid oid) Description copied from interface:CredentialsAccessor
Find shared credentials byBambooEntityOid
- Specified by:
getCredentialsByOid
in interfaceCredentialsAccessor
- Returns:
-
getCredentialsByName
Description copied from interface:CredentialsAccessor
Find global shared credentials by name- Specified by:
getCredentialsByName
in interfaceCredentialsAccessor
- Returns:
-
getCredentialsByNameAndProjectId
Description copied from interface:CredentialsAccessor
Find shared credentials by name and project id- Specified by:
getCredentialsByNameAndProjectId
in interfaceCredentialsAccessor
- Returns:
-
getAllCredentials
- Specified by:
getAllCredentials
in interfaceCredentialsAccessor
- Returns:
- A list of all global credentials
-
getGlobalCredentials
- Specified by:
getGlobalCredentials
in interfaceCredentialsAccessor
- Returns:
- A list of all global credentials
-
getAllCredentials
@NotNull public @NotNull Iterable<CredentialsData> getAllCredentials(@NotNull @NotNull String pluginKey) - Specified by:
getAllCredentials
in interfaceCredentialsAccessor
- Returns:
- A list of global credentials that match the given plugin key
-
getGlobalCredentials
@NotNull public @NotNull Iterable<CredentialsData> getGlobalCredentials(@NotNull @NotNull String pluginKey) - Specified by:
getGlobalCredentials
in interfaceCredentialsAccessor
- Returns:
- A list of global credentials that match the given plugin key
-
hasAnyCredentials
- Specified by:
hasAnyCredentials
in interfaceCredentialsAccessor
- Returns:
- True if there are global credentials that match the given plugin key
-
getProjectCredentials
@NotNull public @NotNull Iterable<CredentialsData> getProjectCredentials(@NotNull @NotNull Long projectId) - Specified by:
getProjectCredentials
in interfaceCredentialsAccessor
- Returns:
- A list of all project credentials in project associated with given projectId
-
getAllCredentialsByPluginKey
@NotNull public @NotNull Iterable<CredentialsData> getAllCredentialsByPluginKey(@NotNull @NotNull String pluginKey) - Specified by:
getAllCredentialsByPluginKey
in interfaceCredentialsAccessor
- Returns:
- A list of all (global and project) credentials that match the given plugin key
-
getProjectCredentialsByPluginKey
@NotNull public @NotNull Iterable<CredentialsData> getProjectCredentialsByPluginKey(@NotNull @NotNull Long projectId, String pluginKey) - Specified by:
getProjectCredentialsByPluginKey
in interfaceCredentialsAccessor
- Returns:
- a collection of project credentials that match the given plugin key
-
getProjectCredentials
Description copied from interface:CredentialsAccessor
Gets the Shared Credentials by id and projectId- Specified by:
getProjectCredentials
in interfaceCredentialsAccessor
- Returns:
- Returns the object representation of the credentials
-