com.atlassian.bamboo.author
Class AuthorDataImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.author.AuthorDataImpl
All Implemented Interfaces:
AuthorData, BambooIdProvider, BambooObject, NameProvider, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<AuthorData>
Direct Known Subclasses:
AuthorImpl

public class AuthorDataImpl
extends BambooEntityObject
implements java.io.Serializable, AuthorData

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
protected AuthorDataImpl()
           
  AuthorDataImpl(AuthorData authorData)
           
  AuthorDataImpl(java.lang.String name)
           
  AuthorDataImpl(java.lang.String name, java.lang.String linkedUserName)
           
  AuthorDataImpl(java.lang.String name, java.lang.String linkedUserName, java.lang.String email)
           
 
Method Summary
 int compareTo(AuthorData otherAuthor)
           
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 java.lang.String getEmail()
           
 java.lang.String getLinkedUserName()
           
 java.lang.String getName()
          Unique name identifying an author.
 int hashCode()
          This method needs to be here in order to use proper id
 void setEmail(java.lang.String email)
           
 void setLinkedUserName(java.lang.String linkedUserName)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorDataImpl

protected AuthorDataImpl()

AuthorDataImpl

public AuthorDataImpl(@Nullable
                      java.lang.String name)

AuthorDataImpl

public AuthorDataImpl(@Nullable
                      java.lang.String name,
                      @Nullable
                      java.lang.String linkedUserName)

AuthorDataImpl

public AuthorDataImpl(@Nullable
                      java.lang.String name,
                      @Nullable
                      java.lang.String linkedUserName,
                      @Nullable
                      java.lang.String email)

AuthorDataImpl

public AuthorDataImpl(@NotNull
                      AuthorData authorData)
Method Detail

getName

@Nullable
public java.lang.String getName()
Description copied from interface: AuthorData
Unique name identifying an author.

Specified by:
getName in interface AuthorData
Specified by:
getName in interface NameProvider
Returns:
identifying alias

setName

public void setName(java.lang.String name)

getLinkedUserName

@Nullable
public java.lang.String getLinkedUserName()
Specified by:
getLinkedUserName in interface AuthorData

setLinkedUserName

public void setLinkedUserName(@Nullable
                              java.lang.String linkedUserName)
Specified by:
setLinkedUserName in interface AuthorData

getEmail

@Nullable
public java.lang.String getEmail()
Specified by:
getEmail in interface AuthorData

setEmail

public void setEmail(java.lang.String email)
Specified by:
setEmail in interface AuthorData

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

public int compareTo(AuthorData otherAuthor)
Specified by:
compareTo in interface java.lang.Comparable<AuthorData>


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.