|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.db.ebean.Model models.entity.User
@Entity public class User
user of geoPortal
Nested Class Summary |
---|
Nested classes/interfaces inherited from class play.db.ebean.Model |
---|
play.db.ebean.Model.Finder<I,T> |
Field Summary | |
---|---|
static play.db.ebean.Model.Finder<java.lang.Long,User> |
find
|
Fields inherited from class play.db.ebean.Model |
---|
_ebean_identity, _ebean_intercept |
Constructor Summary | |
---|---|
User()
constructor |
Method Summary | |
---|---|
static User |
auth(java.lang.String login,
java.lang.String hashPass)
find user by login and password |
static User |
findById(java.lang.Long userId)
find user by id |
java.lang.Long |
getId()
|
java.lang.String |
getIdentifier()
|
java.lang.String |
getLogin()
|
java.lang.String |
getName()
|
java.lang.String |
getPassword()
|
java.util.List<? extends be.objectify.deadbolt.core.models.Permission> |
getPermissions()
|
Right |
getRight()
|
java.util.List<? extends be.objectify.deadbolt.core.models.Role> |
getRoles()
|
void |
setId(java.lang.Long id)
set user id |
void |
setLogin(java.lang.String login)
set user login |
void |
setName(java.lang.String name)
|
void |
setPassword(java.lang.String password)
|
void |
setRight(Right right)
|
Methods inherited from class play.db.ebean.Model |
---|
_ebean_createCopy, _ebean_get__idGetSet, _ebean_getField, _ebean_getFieldIntercept, _ebean_getFieldNames, _ebean_getIntercept, _ebean_getMarker, _ebean_getni__idGetSet, _ebean_intercept, _ebean_isEmbeddedNewOrDirty, _ebean_newInstance, _ebean_set__idGetSet, _ebean_setEmbeddedLoaded, _ebean_setField, _ebean_setFieldIntercept, _ebean_setni__idGetSet, addPropertyChangeListener, addPropertyChangeListener, delete, delete, deleteManyToManyAssociations, equals, hashCode, refresh, refresh, removePropertyChangeListener, removePropertyChangeListener, save, save, saveManyToManyAssociations, saveManyToManyAssociations, update, update, update, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static play.db.ebean.Model.Finder<java.lang.Long,User> find
Finder
Constructor Detail |
---|
public User()
Method Detail |
---|
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- user idpublic java.lang.String getLogin()
public void setLogin(java.lang.String login)
login
- loginpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- user passwordpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- user namepublic Right getRight()
Right
public void setRight(Right right)
right
- Right objectRight
public static User auth(java.lang.String login, java.lang.String hashPass)
login
- hashPass
- md5 of password
public static User findById(java.lang.Long userId)
userId
-
public java.util.List<? extends be.objectify.deadbolt.core.models.Role> getRoles()
getRoles
in interface be.objectify.deadbolt.core.models.Subject
public java.util.List<? extends be.objectify.deadbolt.core.models.Permission> getPermissions()
getPermissions
in interface be.objectify.deadbolt.core.models.Subject
public java.lang.String getIdentifier()
getIdentifier
in interface be.objectify.deadbolt.core.models.Subject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |