ccc.domain
Class Principal

java.lang.Object
  extended by ccc.domain.Entity
      extended by ccc.domain.Principal
All Implemented Interfaces:
Jsonable, java.io.Serializable
Direct Known Subclasses:
GroupEntity, UserEntity

public abstract class Principal
extends Entity

A CCC principal.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
protected Principal()
          Constructor.
 
Method Summary
 java.lang.String getName()
          Accessor for the name property.
abstract  boolean includes(UserEntity user)
          Check if the specified user is included by this principal.
 void setName(java.lang.String name)
          Mutator for the name.
 
Methods inherited from class ccc.domain.Entity
equals, getId, getVersion, hashCode, setId, toJson, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Principal

protected Principal()
Constructor.

Method Detail

getName

public java.lang.String getName()
Accessor for the name property.

Returns:
The name.

setName

public void setName(java.lang.String name)
Mutator for the name.

Parameters:
name - The name.

includes

public abstract boolean includes(UserEntity user)
Check if the specified user is included by this principal.

Parameters:
user - The user to check.
Returns:
True if the user is included; false otherwise.


Copyright © 2010. All Rights Reserved.