org.directdemocracyportal.democracy.model.application
Class Authority

Package class diagram package Authority
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.application.Authority
All Implemented Interfaces:
java.io.Serializable

@Entity
public class Authority
extends BaseEntity

The Class Authority.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Authority()
          Instantiates a new authority.
Authority(SecurityRoleType userRole)
          Instantiates a new authority.
 
Method Summary
Modifier and Type Method and Description
 java.lang.Long getId()
          Gets the id.
 SecurityRoleType getUserRole()
          Gets the user role.
 void setId(java.lang.Long id)
          Sets the id.
 void setUserRole(SecurityRoleType userRole)
          Sets the user role.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authority

public Authority()
Instantiates a new authority.


Authority

public Authority(SecurityRoleType userRole)
Instantiates a new authority.

Parameters:
userRole - the user role
Method Detail

getId

public java.lang.Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in class BaseEntity
Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the id.

Parameters:
id - the new id

getUserRole

public SecurityRoleType getUserRole()
Gets the user role.

Returns:
the user role

setUserRole

public void setUserRole(SecurityRoleType userRole)
Sets the user role.

Parameters:
userRole - the new user role


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.