org.apertereports.common.users
Class UserRole

java.lang.Object
  extended by org.apertereports.common.users.UserRole

public class UserRole
extends Object

Class represents user role

Author:
Tomasz Serafin, BlueSoft sp. z o. o.

Constructor Summary
UserRole(String name, long id, boolean administrator)
          Creates new user role
 
Method Summary
 long getId()
          Returns id
 String getName()
          Returns name
 boolean isAdministrator()
          Determines if this role is administrator role
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRole

public UserRole(String name,
                long id,
                boolean administrator)
Creates new user role

Parameters:
name - Name of role
id - Id of role
Method Detail

getId

public long getId()
Returns id

Returns:
Id

getName

public String getName()
Returns name

Returns:
Name

isAdministrator

public boolean isAdministrator()
Determines if this role is administrator role

Returns:
true if administrator role, false otherwise


Copyright © 2011-2013. All Rights Reserved.