|
|||||||||
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.Right
@Entity public class Right
right model
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,Right> |
find
|
Fields inherited from class play.db.ebean.Model |
---|
_ebean_identity, _ebean_intercept |
Constructor Summary | |
---|---|
Right(java.lang.Long id,
java.lang.String name,
java.lang.Boolean admin,
MapExtent mapExtent)
|
Method Summary | |
---|---|
java.lang.Boolean |
accessesToLayer(Layer layer)
|
static java.lang.Boolean |
checkAccessesToLayer(Layer layer)
check access to layer for current user |
static java.lang.Boolean |
checkAccessesToLayer(User user,
Layer layer)
heck access to layer for input user |
static Right |
demoRight()
get default right for users witch are not authorization |
java.lang.Boolean |
getAdmin()
if right is admin return true otherwise false |
java.lang.Long |
getId()
|
java.util.List<RightLayerAccess> |
getLayerAccessesList()
|
MapExtent |
getMapExtent()
get mapExtent of right |
java.lang.String |
getName()
|
void |
setAdmin(java.lang.Boolean admin)
set is this right an admin |
void |
setId(java.lang.Long id)
|
void |
setLayerAccessesList(java.util.List<RightLayerAccess> layerAccessesList)
set list access to layers |
void |
setMapExtent(MapExtent mapExtent)
|
void |
setName(java.lang.String name)
set name |
static Right |
unique(java.lang.Long id)
find right by id |
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,Right> find
Finder
Constructor Detail |
---|
public Right(java.lang.Long id, java.lang.String name, java.lang.Boolean admin, MapExtent mapExtent)
Method Detail |
---|
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- right idpublic java.lang.String getName()
getName
in interface be.objectify.deadbolt.core.models.Role
public void setName(java.lang.String name)
name
- public java.lang.Boolean getAdmin()
public void setAdmin(java.lang.Boolean admin)
admin
- boolean valuepublic MapExtent getMapExtent()
MapExtent
public void setMapExtent(MapExtent mapExtent)
mapExtent
- mapExtent of rightMapExtent
public java.util.List<RightLayerAccess> getLayerAccessesList()
RightLayerAccess
public void setLayerAccessesList(java.util.List<RightLayerAccess> layerAccessesList)
layerAccessesList
- RightLayerAccess
public java.lang.Boolean accessesToLayer(Layer layer)
layer
- Layer object
public static Right unique(java.lang.Long id)
id
- id of right
public static java.lang.Boolean checkAccessesToLayer(Layer layer)
layer
- Layer object
User
public static java.lang.Boolean checkAccessesToLayer(User user, Layer layer)
user
- User objectlayer
- Layer object
Layer
,
User
public static Right demoRight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |