org.security.session.manager.helpers
Class UserDeviceWrapper

Package class diagram package UserDeviceWrapper
java.lang.Object
  extended by org.security.session.manager.helpers.UserDeviceWrapper

public class UserDeviceWrapper
extends Object

A Wrapper to keep track of users in a certain Device.

Author:
amedrano

Constructor Summary
UserDeviceWrapper(Device d)
           
 
Method Summary
 void addUser(User u)
          Add a single User to this Device.
 Device getDevice()
           
 UserDeviceWrapper getParent()
           
 UserDeviceWrapper getRoot()
           
 Set<User> getUserSet()
          The user set is stored as a List in the actual Device instance, so this methods helps reformat that into a Set.
 void removeUser(User u)
          Remove a single user from this Device.
 void setUserSet(Set<User> users)
          Complement to getUserSet().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDeviceWrapper

public UserDeviceWrapper(Device d)
Method Detail

getDevice

public Device getDevice()

getUserSet

public Set<User> getUserSet()
The user set is stored as a List in the actual Device instance, so this methods helps reformat that into a Set.

Returns:

setUserSet

public void setUserSet(Set<User> users)
Complement to getUserSet().

Parameters:
users -

removeUser

public void removeUser(User u)
Remove a single user from this Device.

Parameters:
u -

addUser

public void addUser(User u)
Add a single User to this Device.

Parameters:
u -

getParent

public UserDeviceWrapper getParent()

getRoot

public UserDeviceWrapper getRoot()


Copyright © 2014 universAAL Consortium. All Rights Reserved.