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 inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
oid
-
Constructor Summary
ConstructorDescriptionCredentialsDataEntity
(@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
Modifier and TypeMethodDescriptionboolean
getName()
@Nullable Long
@NotNull String
getXml()
Serializedconfiguration
of this credentials object.int
hashCode()
void
void
setPluginKey
(String pluginKey) void
setProjectId
(Long projectId) void
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 Details
-
name
-
-
Constructor Details
-
CredentialsDataEntity
public CredentialsDataEntity() -
CredentialsDataEntity
-
CredentialsDataEntity
-
CredentialsDataEntity
public CredentialsDataEntity(String pluginKey, String name, String xml, @Nullable @Nullable BambooEntityOid oid, @Nullable @Nullable Long projectId) -
CredentialsDataEntity
-
-
Method Details
-
getPluginKey
- Specified by:
getPluginKey
in interfaceCredentialsData
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
setPluginKey
- Specified by:
setPluginKey
in interfaceMutableCredentialsData
-
getName
- Specified by:
getName
in interfaceCredentialsData
-
setName
- Specified by:
setName
in interfaceMutableCredentialsData
-
getXml
Description copied from interface:MutableCredentialsData
Serializedconfiguration
of this credentials object.- Specified by:
getXml
in interfaceMutableCredentialsData
-
setXml
- Specified by:
setXml
in interfaceMutableCredentialsData
-
getConfiguration
- Specified by:
getConfiguration
in interfaceCredentialsData
- Returns:
- immutable map containing credentials configuration
-
getProjectId
- Specified by:
getProjectId
in interfaceCredentialsData
- Returns:
- id of associated
Project
or null if it is a global shared credential
-
setProjectId
- Specified by:
setProjectId
in interfaceMutableCredentialsData
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
toString
-