models.entity.layer
Class GroupLayers

java.lang.Object
  extended by play.db.ebean.Model
      extended by models.entity.layer.GroupLayers
All Implemented Interfaces:
com.avaje.ebean.bean.EntityBean, java.io.Serializable

@Entity
public class GroupLayers
extends play.db.ebean.Model

Class link between the layers and the groups.

See Also:
Group, Layer, Serialized Form

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,GroupLayers> find
           
 
Fields inherited from class play.db.ebean.Model
_ebean_identity, _ebean_intercept
 
Constructor Summary
GroupLayers(Layer layer, Group group, java.lang.Integer order)
          Constructor of class
 
Method Summary
static java.util.List<GroupLayers> all()
           
static GroupLayers findById(java.lang.Long id)
          search layers by id
static GroupLayers findById(java.lang.Long id, java.lang.Long rightId)
          search layers by id, available to user.
static java.util.List<GroupLayers> findByTypeName(java.lang.String typeName)
          Find layer by typeName
static java.util.List<GroupLayers> findByTypeName(java.lang.String typeName, java.lang.Long rightId)
          Find layer by typeName, available to user.
 Group getGroup()
           
 java.lang.Long getGroupId()
           
 Layer getLayer()
           
 java.lang.Integer getOrder()
           
static java.util.List<GroupLayers> list(java.lang.Long rightId)
           
 void setGroupId(java.lang.Long groupId)
          set group by id
 void setLayerId(Layer layer)
          Set layer
 void setOrder(java.lang.Integer order)
          set index number group.
 
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

find

public static play.db.ebean.Model.Finder<java.lang.Long,GroupLayers> find
See Also:
Finder
Constructor Detail

GroupLayers

public GroupLayers(Layer layer,
                   Group group,
                   java.lang.Integer order)
Constructor of class

Parameters:
layer - layer
group - group of layers
order - index number group.
See Also:
Layer
Method Detail

getLayer

public Layer getLayer()
Returns:
return layer

setLayerId

public void setLayerId(Layer layer)
Set layer

Parameters:
layer - layer
See Also:
Layer

getGroup

public Group getGroup()
Returns:
group of layers.

getGroupId

public java.lang.Long getGroupId()
Returns:
id group of layers.

setGroupId

public void setGroupId(java.lang.Long groupId)
set group by id

Parameters:
groupId - id group of layers

getOrder

public java.lang.Integer getOrder()
Returns:
index number group.

setOrder

public void setOrder(java.lang.Integer order)
set index number group.

Parameters:
order - index number group.

all

public static java.util.List<GroupLayers> all()
Returns:
List all group of layers.

list

public static java.util.List<GroupLayers> list(java.lang.Long rightId)
Parameters:
rightId - id right of user.
Returns:
List layers available to the user.

findByTypeName

public static java.util.List<GroupLayers> findByTypeName(java.lang.String typeName,
                                                         java.lang.Long rightId)
Find layer by typeName, available to user.

Parameters:
typeName - layer typeName.
rightId - id right of user.
Returns:
List - list of layers whose typeNames contain the substring 'typeName'

findByTypeName

public static java.util.List<GroupLayers> findByTypeName(java.lang.String typeName)
Find layer by typeName

Parameters:
typeName - layer typeName.
Returns:
List - list of layers whose typeNames contain the substring 'typeName'

findById

public static GroupLayers findById(java.lang.Long id)
search layers by id

Parameters:
id - id layers
Returns:
GroupLayers - layer with this id.

findById

public static GroupLayers findById(java.lang.Long id,
                                   java.lang.Long rightId)
search layers by id, available to user.

Parameters:
id - id layers
rightId - id right of user.
Returns:
GroupLayers - layer with this id.