Package com.atlassian.bamboo.author
Class AuthorDataImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.author.AuthorDataImpl
-
- All Implemented Interfaces:
AuthorContext
,AuthorData
,BambooIdProvider
,BambooObject
,NameProvider
,Serializable
,Cloneable
,Comparable<AuthorContext>
- Direct Known Subclasses:
AuthorImpl
public class AuthorDataImpl extends BambooEntityObject implements Serializable, AuthorData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuthorDataImpl()
AuthorDataImpl(@NotNull AuthorContext author)
AuthorDataImpl(@Nullable String name)
AuthorDataImpl(@Nullable String name, @Nullable String linkedUserName)
AuthorDataImpl(@Nullable String name, @Nullable String linkedUserName, @Nullable String email)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AuthorContext otherAuthor)
boolean
equals(Object o)
@Nullable String
getEmail()
@Nullable String
getLinkedUserName()
@Nullable String
getName()
Unique name identifying an author.int
hashCode()
void
setEmail(String email)
void
setLinkedUserName(@Nullable String linkedUserName)
void
setName(String name)
-
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, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
AuthorDataImpl
protected AuthorDataImpl()
-
AuthorDataImpl
public AuthorDataImpl(@Nullable @Nullable String name)
-
AuthorDataImpl
public AuthorDataImpl(@Nullable @Nullable String name, @Nullable @Nullable String linkedUserName)
-
AuthorDataImpl
public AuthorDataImpl(@Nullable @Nullable String name, @Nullable @Nullable String linkedUserName, @Nullable @Nullable String email)
-
AuthorDataImpl
public AuthorDataImpl(@NotNull @NotNull AuthorContext author)
-
-
Method Detail
-
getName
@Nullable public @Nullable String getName()
Description copied from interface:AuthorContext
Unique name identifying an author.- Specified by:
getName
in interfaceAuthorContext
- Specified by:
getName
in interfaceNameProvider
- Returns:
- identifying alias
-
setName
public void setName(String name)
-
getLinkedUserName
@Nullable public @Nullable String getLinkedUserName()
- Specified by:
getLinkedUserName
in interfaceAuthorContext
-
setLinkedUserName
public void setLinkedUserName(@Nullable @Nullable String linkedUserName)
- Specified by:
setLinkedUserName
in interfaceAuthorData
-
getEmail
@Nullable public @Nullable String getEmail()
- Specified by:
getEmail
in interfaceAuthorContext
-
setEmail
public void setEmail(String email)
- Specified by:
setEmail
in interfaceAuthorData
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(AuthorContext otherAuthor)
- Specified by:
compareTo
in interfaceComparable<AuthorContext>
-
-