Errai 3.0.1-SNAPSHOT

org.jboss.errai.security.shared.api.identity
Class UserImpl

java.lang.Object
  extended by org.jboss.errai.security.shared.api.identity.UserImpl
All Implemented Interfaces:
Serializable, User

@Portable
public class UserImpl
extends Object
implements User, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.errai.security.shared.api.identity.User
User.StandardUserProperties
 
Field Summary
 
Fields inherited from interface org.jboss.errai.security.shared.api.identity.User
ANONYMOUS
 
Constructor Summary
UserImpl(String name)
           
UserImpl(String name, Collection<? extends Role> roles)
           
UserImpl(String name, Collection<? extends Role> roles, Map<String,String> properties)
           
 
Method Summary
 boolean equals(Object o)
           
 String getIdentifier()
           
 Map<String,String> getProperties()
           
 String getProperty(String name)
           
 Set<Role> getRoles()
           
 boolean hasAllRoles(String... roleNames)
           
 boolean hasAnyRoles(String... roleNames)
           
 int hashCode()
           
 void removeProperty(String name)
           
 void setProperty(String name, String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserImpl

public UserImpl(String name)

UserImpl

public UserImpl(String name,
                Collection<? extends Role> roles)

UserImpl

public UserImpl(String name,
                Collection<? extends Role> roles,
                Map<String,String> properties)
Method Detail

getRoles

public Set<Role> getRoles()
Specified by:
getRoles in interface User

hasAllRoles

public boolean hasAllRoles(String... roleNames)
Specified by:
hasAllRoles in interface User

hasAnyRoles

public boolean hasAnyRoles(String... roleNames)
Specified by:
hasAnyRoles in interface User

getProperties

public Map<String,String> getProperties()
Specified by:
getProperties in interface User

setProperty

public void setProperty(String name,
                        String value)
Specified by:
setProperty in interface User

removeProperty

public void removeProperty(String name)
Specified by:
removeProperty in interface User

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface User

getIdentifier

public String getIdentifier()
Specified by:
getIdentifier in interface User

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

Errai 3.0.1-SNAPSHOT

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