Package com.atlassian.bamboo.credentials
Class CredentialsDataImpl
- java.lang.Object
-
- com.atlassian.bamboo.credentials.CredentialsDataImpl
-
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,CredentialsData
,PluginKeyProvider
public class CredentialsDataImpl extends Object implements CredentialsData
-
-
Constructor Summary
Constructors Constructor Description CredentialsDataImpl(@NotNull CredentialsData other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
@NotNull Map<String,String>
getConfiguration()
long
getId()
String
getName()
BambooEntityOid
getOid()
OID assigned to this object.String
getPluginKey()
@Nullable Long
getProjectId()
int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.credentials.CredentialsData
getEntityType
-
-
-
-
Constructor Detail
-
CredentialsDataImpl
public CredentialsDataImpl(@NotNull @NotNull CredentialsData other)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
getOid
public BambooEntityOid getOid()
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
-
getPluginKey
public String getPluginKey()
- Specified by:
getPluginKey
in interfaceCredentialsData
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
getName
public String getName()
- Specified by:
getName
in interfaceCredentialsData
-
getConfiguration
@NotNull public @NotNull Map<String,String> getConfiguration()
- Specified by:
getConfiguration
in interfaceCredentialsData
- Returns:
- immutable map containing credentials configuration
-
getProjectId
@Nullable public @Nullable Long getProjectId()
- Specified by:
getProjectId
in interfaceCredentialsData
- Returns:
- id of associated
Project
or null if it is a global shared credential
-
-