org.opennms.acl.model
Class UserDTOLight

java.lang.Object
  extended by org.opennms.acl.model.UserDTOLight
All Implemented Interfaces:
UserView
Direct Known Subclasses:
UserDTO

public class UserDTOLight
extends Object
implements UserView

Bean class to manage the basic information like username, id and enabled of managed user in web layer and in resource layer

Since:
jdk 1.5.0
Author:
Massimiliano Dessì (desmax74@yahoo.it)

Constructor Summary
UserDTOLight()
           
 
Method Summary
 Long getId()
           
 String getUsername()
           
 Boolean isEnabled()
           
 boolean isNew()
           
 void setEnabled(boolean enabled)
           
 void setId(Long id)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDTOLight

public UserDTOLight()
Method Detail

isNew

public boolean isNew()
Returns:
if a user is new and if it's never store in the system

getUsername

public String getUsername()
Specified by:
getUsername in interface UserView
Returns:
unique username

setUsername

public void setUsername(String username)
Parameters:
username -

getId

public Long getId()
Specified by:
getId in interface UserView
Returns:
unique identifier

setId

public void setId(Long id)
Parameters:
id -

isEnabled

public Boolean isEnabled()
Specified by:
isEnabled in interface UserView
Returns:
if the user is enabled or not

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled -


Copyright © 2009. All Rights Reserved.