Package com.atlassian.bamboo.credentials
Class CredentialsDataEntity
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.core.BambooEntityWithOid
-
- com.atlassian.bamboo.credentials.CredentialsDataEntity
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,BambooObjectWithOid
,EntityWithOid
,ImmutableEntityWithOid
,CredentialsData
,MutableCredentialsData
,PluginKeyProvider
,Cloneable
@Internal @Entity public class CredentialsDataEntity extends BambooEntityWithOid implements MutableCredentialsData
DB objects for credentials data. Only use for interactions with Hibernate
-
-
Field Summary
Fields Modifier and Type Field Description protected String
name
-
Fields inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
oid
-
-
Constructor Summary
Constructors Constructor Description CredentialsDataEntity()
CredentialsDataEntity(@NotNull CredentialsData other)
CredentialsDataEntity(String pluginKey, String name, String xml)
CredentialsDataEntity(String pluginKey, String name, String xml, @Nullable BambooEntityOid oid, @Nullable Long projectId)
CredentialsDataEntity(String pluginKey, String name, Map<String,String> configuration, @Nullable BambooEntityOid oid, @Nullable Long projectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
@NotNull Map<String,String>
getConfiguration()
String
getName()
String
getPluginKey()
@Nullable Long
getProjectId()
@NotNull String
getXml()
Serializedconfiguration
of this credentials object.int
hashCode()
void
setName(String name)
void
setPluginKey(String pluginKey)
void
setProjectId(Long projectId)
void
setXml(@NotNull String xml)
String
toString()
-
Methods inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
getOid, setOid
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.credentials.CredentialsData
getEntityType
-
Methods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOid
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.credentials.MutableCredentialsData
setId
-
-
-
-
Field Detail
-
name
protected String name
-
-
Constructor Detail
-
CredentialsDataEntity
public CredentialsDataEntity()
-
CredentialsDataEntity
public CredentialsDataEntity(String pluginKey, String name, Map<String,String> configuration, @Nullable @Nullable BambooEntityOid oid, @Nullable @Nullable Long projectId)
-
CredentialsDataEntity
public CredentialsDataEntity(String pluginKey, String name, String xml, @Nullable @Nullable BambooEntityOid oid, @Nullable @Nullable Long projectId)
-
CredentialsDataEntity
public CredentialsDataEntity(@NotNull @NotNull CredentialsData other)
-
-
Method Detail
-
getPluginKey
public String getPluginKey()
- Specified by:
getPluginKey
in interfaceCredentialsData
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
setPluginKey
public void setPluginKey(String pluginKey)
- Specified by:
setPluginKey
in interfaceMutableCredentialsData
-
getName
public String getName()
- Specified by:
getName
in interfaceCredentialsData
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceMutableCredentialsData
-
getXml
@NotNull public @NotNull String getXml()
Description copied from interface:MutableCredentialsData
Serializedconfiguration
of this credentials object.- Specified by:
getXml
in interfaceMutableCredentialsData
-
setXml
public void setXml(@NotNull @NotNull String xml)
- Specified by:
setXml
in interfaceMutableCredentialsData
-
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
-
setProjectId
public void setProjectId(Long projectId)
- Specified by:
setProjectId
in interfaceMutableCredentialsData
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
-