tinlizard.model
Class User

java.lang.Object
  extended by tinlizard.model.User
All Implemented Interfaces:
Persistable

@Indexed
public final class User
extends Object
implements Persistable

A User that can log in and/or own a Codeline.


Constructor Summary
User()
           
 
Method Summary
 void add()
           
static User add(String name)
           
 void delete()
           
static Collection<User> findAll()
           
static User findByName(String name)
           
 Collection<Codeline> getCodelines()
           
 Date getCreated()
           
 String getCreatedBy()
           
 String getEmail()
           
 Integer getId()
           
 Date getLastModified()
           
 String getLastModifiedBy()
           
 String getName()
           
static User getSystemUser()
           
static User getUserByName(String name, boolean createIfNotExist)
           
 void index()
           
static void indexAll()
           
static Collection<User> search(String query)
           
 void setCreated(Date created)
           
 void setCreatedBy(String createdBy)
           
 void setEmail(String email)
           
 void setId(Integer id)
           
 void setLastModified(Date lastModified)
           
 void setLastModifiedBy(String lastModifiedBy)
           
 void setName(String name)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User()
Method Detail

getId

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

getName

public String getName()
Specified by:
getName in interface Persistable

getCreated

public Date getCreated()
Specified by:
getCreated in interface Persistable

getCreatedBy

public String getCreatedBy()
Specified by:
getCreatedBy in interface Persistable

getLastModified

public Date getLastModified()
Specified by:
getLastModified in interface Persistable

getLastModifiedBy

public String getLastModifiedBy()
Specified by:
getLastModifiedBy in interface Persistable

setId

public void setId(Integer id)
Specified by:
setId in interface Persistable

setName

public void setName(String name)
Specified by:
setName in interface Persistable

setCreated

public void setCreated(Date created)
Specified by:
setCreated in interface Persistable

setCreatedBy

public void setCreatedBy(String createdBy)
Specified by:
setCreatedBy in interface Persistable

setLastModified

public void setLastModified(Date lastModified)
Specified by:
setLastModified in interface Persistable

setLastModifiedBy

public void setLastModifiedBy(String lastModifiedBy)
Specified by:
setLastModifiedBy in interface Persistable

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

getCodelines

public Collection<Codeline> getCodelines()

add

public void add()

update

public void update()

delete

public void delete()

index

public void index()

findAll

public static Collection<User> findAll()

findByName

public static User findByName(String name)

getUserByName

public static User getUserByName(String name,
                                 boolean createIfNotExist)

getSystemUser

public static User getSystemUser()

add

public static User add(String name)

search

public static Collection<User> search(String query)

indexAll

public static void indexAll()


Copyright © 2009. All Rights Reserved.