org.jboss.errai.security.shared.api.identity
Class UserImpl
java.lang.Object
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
Fields inherited from interface org.jboss.errai.security.shared.api.identity.User |
ANONYMOUS |
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)
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
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.