eu.etaxonomy.cdm.model.common
Class Group

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.Group
All Implemented Interfaces:
ICdmBase, Serializable, Cloneable

@Indexed(index="eu.etaxonomy.cdm.model.common.Group")
public class Group
extends CdmBase

See Also:
Serialized Form

Field Summary
protected  Set<org.springframework.security.core.GrantedAuthority> grantedAuthorities
           
protected  Set<User> members
           
protected  String name
           
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
protected Group()
           
 
Method Summary
 boolean addGrantedAuthority(org.springframework.security.core.GrantedAuthority grantedAuthority)
           
 boolean addMember(User user)
           
 Object clone()
          Clones this Group.
 Set<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities()
           
 Set<User> getMembers()
           
 String getName()
           
static Group NewInstance()
           
static Group NewInstance(String name)
           
 boolean removeGrantedAuthority(org.springframework.security.core.GrantedAuthority grantedAuthority)
           
 boolean removeMember(User user)
           
 void setName(String name)
           
 
Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, equals, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

@Field(index=UN_TOKENIZED)
protected String name

members

protected Set<User> members

grantedAuthorities

protected Set<org.springframework.security.core.GrantedAuthority> grantedAuthorities
Constructor Detail

Group

protected Group()
Method Detail

NewInstance

public static Group NewInstance()

NewInstance

public static Group NewInstance(String name)

getGrantedAuthorities

public Set<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities()

addGrantedAuthority

public boolean addGrantedAuthority(org.springframework.security.core.GrantedAuthority grantedAuthority)

removeGrantedAuthority

public boolean removeGrantedAuthority(org.springframework.security.core.GrantedAuthority grantedAuthority)

setName

public void setName(String name)

getName

public String getName()

getMembers

public Set<User> getMembers()

addMember

public boolean addMember(User user)

removeMember

public boolean removeMember(User user)

clone

public Object clone()
Clones this Group. This is a shortcut that enables to create a new instance that differs only slightly from this group by modifying only some of the attributes.

Overrides:
clone in class CdmBase
See Also:
TermBase.clone(), Object.clone()


Copyright © 2007-2012 EDIT. All Rights Reserved.