Style Intelligence v12.0

inetsoft.sree.security
Class User

java.lang.Object
  extended by inetsoft.uql.util.AbstractIdentity
      extended by inetsoft.sree.security.User
All Implemented Interfaces:
inetsoft.uql.util.Identity, Serializable, Cloneable
Direct Known Subclasses:
FSUser

public class User
extends inetsoft.uql.util.AbstractIdentity

This class defines the user.

See Also:
Serialized Form

Field Summary
protected  boolean active
           
protected  String alias
           
protected  String[] emails
           
protected  String[] groups
           
protected  String locale
           
protected  String name
           
protected  String password
           
protected  String[] roles
           
 
Fields inherited from interface inetsoft.uql.util.Identity
GROUP, ROLE, UNKNOWN_USER, USER
 
Constructor Summary
User()
          Constructor.
User(String name)
          Constructor.
User(String name, String[] emails, String[] groups, String[] roles, String locale, String password)
          Constructor.
User(String name, String[] emails, String[] groups, String[] roles, String locale, String password, boolean active)
          Constructor.
User(String name, String[] emails, String[] groups, String[] roles, String locale, String password, boolean active, String alias)
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 XPrincipal create()
          Create one user.
 String getAlias()
          Get user's alias.
 String[] getEmails()
          Get the emails of the user.
 String[] getGroups()
          Get parent groups.
 String getLocale()
          Get the locale of the user.
 String getName()
          Get the name of the user.
 String getPassword()
          Get user's password.
 String[] getRoles()
          Get roles assigned to the user.
 int getType()
          Get the type of the identity.
 boolean isActive()
          Get the active of the user.
 boolean isAdministrator()
          Check if this user is an administrator.
 String toString()
          Get a string representation of this object.
 
Methods inherited from class inetsoft.uql.util.AbstractIdentity
equals, hashCode, isEditable, toIdentifier
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

emails

protected String[] emails

roles

protected String[] roles

groups

protected String[] groups

locale

protected String locale

password

protected String password

active

protected boolean active

alias

protected String alias
Constructor Detail

User

public User()
Constructor.


User

public User(String name)
Constructor.


User

public User(String name,
            String[] emails,
            String[] groups,
            String[] roles,
            String locale,
            String password)
Constructor.

Parameters:
name - user's name.
emails - user's emails.
groups - parent groups.
roles - roles assigned to the user.
locale - user's locale.

User

public User(String name,
            String[] emails,
            String[] groups,
            String[] roles,
            String locale,
            String password,
            boolean active)
Constructor.


User

public User(String name,
            String[] emails,
            String[] groups,
            String[] roles,
            String locale,
            String password,
            boolean active,
            String alias)
Constructor.

Method Detail

getName

public String getName()
Get the name of the user.


isActive

public boolean isActive()
Get the active of the user.


getEmails

public String[] getEmails()
Get the emails of the user.


getRoles

public String[] getRoles()
Get roles assigned to the user.

Specified by:
getRoles in interface inetsoft.uql.util.Identity
Overrides:
getRoles in class inetsoft.uql.util.AbstractIdentity

getGroups

public String[] getGroups()
Get parent groups.

Specified by:
getGroups in interface inetsoft.uql.util.Identity
Overrides:
getGroups in class inetsoft.uql.util.AbstractIdentity

getLocale

public String getLocale()
Get the locale of the user.


getPassword

public String getPassword()
Get user's password.


getAlias

public String getAlias()
Get user's alias.


isAdministrator

public boolean isAdministrator()
Check if this user is an administrator.

Returns:
true if an administrator, false otherwise.

clone

public Object clone()
Clone the object.

Specified by:
clone in interface inetsoft.uql.util.Identity
Overrides:
clone in class inetsoft.uql.util.AbstractIdentity

getType

public int getType()
Get the type of the identity.


create

public XPrincipal create()
Create one user.


toString

public String toString()
Get a string representation of this object.

Overrides:
toString in class inetsoft.uql.util.AbstractIdentity

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.