Errai 3.0.1-SNAPSHOT

org.jboss.errai.security.client.local.storage
Interface UserStorageHandler


public interface UserStorageHandler

Contract for things that can remember the current user (identifier, roles, properties) in some way that can persist between browser sessions.


Method Summary
 User getUser()
          Returns the locally persisted user if one can be found.
 void setUser(User user)
          Persists the given user locally, using whatever means this implementation supports.
 

Method Detail

getUser

User getUser()
Returns the locally persisted user if one can be found.

Returns:
the persisted user, or null if none can be found.

setUser

void setUser(User user)
Persists the given user locally, using whatever means this implementation supports.

Parameters:
user - the user instance to remember for later, or null to forget the current user (clears any existing information about a user out of the persistent store).

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.