models.entity.layer
Class Group

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

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

Class group of layers

See Also:
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,Group> find
           
 
Fields inherited from class play.db.ebean.Model
_ebean_identity, _ebean_intercept
 
Constructor Summary
Group(java.lang.String name, java.lang.String order)
          Constructor of class
 
Method Summary
static java.util.List<Group> all()
           
static Group findById(java.lang.Long id)
          search group of layers by id
static Group findById(java.lang.Long id, java.lang.Long rightId)
          Search group of layers by id, available to user.
static java.util.List<Group> findByName(java.lang.String name)
          Search group of layers by name.
static java.util.List<Group> findByName(java.lang.String name, java.lang.Long rightId)
          Search group of layers by name, available to user.
 java.util.List<GroupLayers> getGroupLayers()
           
 java.lang.Long getId()
           
 java.lang.String getName()
           
 java.lang.String getOrder()
           
static java.util.List<Group> list(java.lang.Long rightId)
           
static java.util.List<Group> removeEmptyGroups(java.util.List<Group> groups)
           
 void setGroupsLayersList(java.util.List<GroupLayers> groupsLayersList)
          set layers
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
           
 void setOrder(java.lang.String order)
          set order field
 
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,Group> find
Constructor Detail

Group

public Group(java.lang.String name,
             java.lang.String order)
Constructor of class

Parameters:
name - group name
order - field that is sorted groups
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getOrder

public java.lang.String getOrder()

getGroupLayers

public java.util.List<GroupLayers> getGroupLayers()
Returns:
List - all groups of layers
See Also:
GroupLayers

setGroupsLayersList

public void setGroupsLayersList(java.util.List<GroupLayers> groupsLayersList)
set layers

Parameters:
groupsLayersList - List group of layers
See Also:
GroupLayers

setOrder

public void setOrder(java.lang.String order)
set order field

Parameters:
order - field that is sorted groups

list

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

all

public static java.util.List<Group> all()
Returns:
List all groups.

removeEmptyGroups

public static java.util.List<Group> removeEmptyGroups(java.util.List<Group> groups)
Parameters:
groups - List list of groups
Returns:
List The list of groups, without empty groups
See Also:
Group

findById

public static Group findById(java.lang.Long id)
search group of layers by id

Parameters:
id - id group
Returns:
group with this id.

findById

public static Group findById(java.lang.Long id,
                             java.lang.Long rightId)
Search group of layers by id, available to user.

Parameters:
id - id group
rightId - id right of user
Returns:
group with this id and available to user.
See Also:
Group

findByName

public static java.util.List<Group> findByName(java.lang.String name)
Search group of layers by name.

Parameters:
name - name group of layers
Returns:
List - list of groups whose names contain the substring 'name'
See Also:
Group

findByName

public static java.util.List<Group> findByName(java.lang.String name,
                                               java.lang.Long rightId)
Search group of layers by name, available to user.

Parameters:
name - name group of layers
rightId - id right of user
Returns:
List - list of groups whose names contain the substring 'name'
See Also:
Group