com.taskadapter.redmineapi.bean
Class User

java.lang.Object
  extended by com.taskadapter.redmineapi.bean.User
All Implemented Interfaces:
Identifiable

public class User
extends Object
implements Identifiable

Redmine's User.

Author:
Alexey Skorokhodov

Constructor Summary
User()
           
 
Method Summary
 boolean equals(Object obj)
           
 Date getCreatedOn()
           
 String getCustomField(String fieldName)
           
 List<CustomField> getCustomFields()
          list of Custom Field objects, NEVER NULL.
 String getFirstName()
           
 String getFullName()
           
 Integer getId()
           
 Date getLastLoginOn()
           
 String getLastName()
           
 String getLogin()
           
 String getMail()
          This field is empty when using issues.get(i).getAssignee().getMail()
 List<Membership> getMemberships()
           
 String getPassword()
           
 int hashCode()
           
 void setCreatedOn(Date createdOn)
           
 void setCustomFields(List<CustomField> customFields)
          NOTE: The custom field(s) must have correct database ID set to be saved to Redmine.
 void setFirstName(String firstName)
           
 void setFullName(String fullName)
          This is a BIG HACK just to workaround the crappy Redmine REST API limitation.
 void setId(Integer id)
           
 void setLastLoginOn(Date lastLoginOn)
           
 void setLastName(String lastName)
           
 void setLogin(String login)
           
 void setMail(String mail)
           
 void setMemberships(List<Membership> memberships)
           
 void setPassword(String password)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User()
Method Detail

getId

public Integer getId()
Specified by:
getId in interface Identifiable

toString

public String toString()
Overrides:
toString in class Object

setId

public void setId(Integer id)

getLogin

public String getLogin()

setLogin

public void setLogin(String login)

getFirstName

public String getFirstName()

setFirstName

public void setFirstName(String firstName)

getLastName

public String getLastName()

setLastName

public void setLastName(String lastName)

getMail

public String getMail()
This field is empty when using issues.get(i).getAssignee().getMail()


setMail

public void setMail(String mail)

getCreatedOn

public Date getCreatedOn()

setCreatedOn

public void setCreatedOn(Date createdOn)

getLastLoginOn

public Date getLastLoginOn()

setLastLoginOn

public void setLastLoginOn(Date lastLoginOn)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getFullName

public String getFullName()
Returns:
firstName + space + lastName

setFullName

public void setFullName(String fullName)
This is a BIG HACK just to workaround the crappy Redmine REST API limitation. see http://www.redmine.org/issues/7487


getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getCustomField

public String getCustomField(String fieldName)
Returns:
the value or NULL if the field is not found

getCustomFields

public List<CustomField> getCustomFields()
list of Custom Field objects, NEVER NULL.


setCustomFields

public void setCustomFields(List<CustomField> customFields)
NOTE: The custom field(s) must have correct database ID set to be saved to Redmine. This is Redmine REST API's limitation. ID can be seen in database or in Redmine administration when editing the custom field (number is part of the URL!).


getMemberships

public List<Membership> getMemberships()

setMemberships

public void setMemberships(List<Membership> memberships)


Copyright © 2012. All Rights Reserved.