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 Stringname-
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 booleanequals(Object obj)@NotNull Map<String,String>getConfiguration()StringgetName()StringgetPluginKey()@Nullable LonggetProjectId()@NotNull StringgetXml()Serializedconfigurationof this credentials object.inthashCode()voidsetName(String name)voidsetPluginKey(String pluginKey)voidsetProjectId(Long projectId)voidsetXml(@NotNull String xml)StringtoString()-
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:
getPluginKeyin interfaceCredentialsData- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
setPluginKey
public void setPluginKey(String pluginKey)
- Specified by:
setPluginKeyin interfaceMutableCredentialsData
-
getName
public String getName()
- Specified by:
getNamein interfaceCredentialsData
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceMutableCredentialsData
-
getXml
@NotNull public @NotNull String getXml()
Description copied from interface:MutableCredentialsDataSerializedconfigurationof this credentials object.- Specified by:
getXmlin interfaceMutableCredentialsData
-
setXml
public void setXml(@NotNull @NotNull String xml)- Specified by:
setXmlin interfaceMutableCredentialsData
-
getConfiguration
@NotNull public @NotNull Map<String,String> getConfiguration()
- Specified by:
getConfigurationin interfaceCredentialsData- Returns:
- immutable map containing credentials configuration
-
getProjectId
@Nullable public @Nullable Long getProjectId()
- Specified by:
getProjectIdin interfaceCredentialsData- Returns:
- id of associated
Projector null if it is a global shared credential
-
setProjectId
public void setProjectId(Long projectId)
- Specified by:
setProjectIdin interfaceMutableCredentialsData
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
-