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
FieldsFields inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
oid -
Constructor Summary
ConstructorsConstructorDescriptionCredentialsDataEntity(@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 TypeMethodDescriptionbooleangetName()@Nullable Long@NotNull StringgetXml()Serializedconfigurationof this credentials object.inthashCode()voidvoidsetPluginKey(String pluginKey) voidsetProjectId(Long projectId) voidtoString()Methods inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
getOid, setOidMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.credentials.CredentialsData
getEntityTypeMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods 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:
getPluginKeyin interfaceCredentialsData- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
setPluginKey
- Specified by:
setPluginKeyin interfaceMutableCredentialsData
-
getName
- Specified by:
getNamein interfaceCredentialsData
-
setName
- Specified by:
setNamein interfaceMutableCredentialsData
-
getXml
Description copied from interface:MutableCredentialsDataSerializedconfigurationof this credentials object.- Specified by:
getXmlin interfaceMutableCredentialsData
-
setXml
- Specified by:
setXmlin interfaceMutableCredentialsData
-
getConfiguration
- Specified by:
getConfigurationin interfaceCredentialsData- Returns:
- immutable map containing credentials configuration
-
getProjectId
- Specified by:
getProjectIdin interfaceCredentialsData- Returns:
- id of associated
Projector null if it is a global shared credential
-
setProjectId
- Specified by:
setProjectIdin interfaceMutableCredentialsData
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
toString
-