Skip navigation links


com.essbase.eas.server
Class EASUser

java.lang.Object
  extended by com.essbase.eas.server.EASUser

All Implemented Interfaces:
java.io.Serializable

public class EASUser
extends java.lang.Object
implements java.io.Serializable

Title: EASUser Description: Copyright: Copyright (c) 2003 Company: Hyperion Solutions, Inc.

Version:
1.0
Author:
Sree Menon
See Also:
Serialized Form

Constructor Summary
EASUser()
           
EASUser(java.lang.Integer id, java.lang.String name, java.lang.String password, boolean supervisor, java.lang.String fullName, java.lang.String email, java.lang.String roles, boolean external)
          Deprecated. 
EASUser(org.w3c.dom.Node userNode)
           
EASUser(java.lang.String name, java.lang.String password, boolean supervisor, java.lang.String fullName, java.lang.String email, java.lang.String roles, boolean external)
           
EASUser(java.lang.String name, java.lang.String password, boolean supervisor, java.lang.String fullName, java.lang.String email, java.lang.String roles, boolean external, java.lang.String identity)
           

 

Method Summary
static void addAttribute(java.lang.StringBuilder sb, java.lang.String name, java.lang.Object value)
           
static void addObjectsToList(java.util.List list, java.lang.Object[] objects)
           
static boolean addUserProfile(EASUser user, EASUserProfile profile)
           
static boolean addUserServers(EASUser user, EASUserServers server)
           
static boolean addWorkStatus(EASWorkStatus status)
           
static boolean createUser(EASUser user)
           
 void decrypt()
           
static boolean deleteUser(java.lang.String username)
           
static boolean deleteUserProfile(EASUserProfile profile)
           
static boolean deleteUserServers(EASUserServers server)
           
static boolean deleteWorkStatus(java.lang.String workId)
           
 void encrypt()
           
 boolean equals(java.lang.Object obj)
           
protected static java.lang.String exportAsXML()
           
protected static void exportData(org.w3c.dom.Element root)
           
 void fromXML(java.lang.String xmlString)
           
 java.lang.String getDecryptedPwd()
           
static java.lang.String getDecryptedPwd(java.lang.String password)
           
static EASUser getDefaultUser(java.lang.String password)
           
protected  java.lang.String getDirectory()
          Deprecated. 
 java.lang.String getEmail()
           
 java.lang.String getEncryptedPwd()
           
static java.lang.String getEncryptedPwd(java.lang.String password)
           
 java.lang.String getFullName()
           
 java.lang.Integer getId()
           
 java.lang.String getIdentity()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.String getRoles()
           
static java.io.File getStorageDirectory()
           
static java.lang.String getStoragePath()
           
static EASUser getUser(java.lang.String user, java.lang.String password)
           
static java.util.ArrayList<EASWorkStatus> getWorkStatus(EASUser user)
           
static java.util.ArrayList<EASWorkStatus> getWorkStatus(java.lang.String user)
           
 int hashCode()
           
static boolean hasUTF8Signature(byte[] _bytes)
          Checks specified bytes to see if it has leading UTF-8 signature
protected static void importAsXml(java.lang.String input)
           
protected static void importData(org.w3c.dom.Document doc)
           
 boolean isExternal()
           
 boolean isMigrated()
           
 boolean isSameUser(EASUser user)
           
 boolean isSupervisor()
           
static java.lang.String readFromFile(java.io.File file)
          Reads the file
static java.util.ArrayList retrieveAllUsers()
           
static EASUser retrieveUser(java.lang.Integer id)
           
static EASUser retrieveUser(java.lang.String username)
           
static java.util.ArrayList retrieveUserProfile(EASUser user)
           
static EASUserProfile retrieveUserProfile(EASUser user, java.lang.String dataType)
           
static java.util.ArrayList retrieveUserProfiles(EASUser user)
           
static java.util.ArrayList retrieveUserServers(EASUser user)
           
protected  void setDirectory(java.lang.String dir)
          Deprecated. 
 void setEmail(java.lang.String email)
           
 void setExternal(boolean external)
           
 void setFullName(java.lang.String fullName)
           
 void setId(java.lang.Integer id)
           
 void setIdentity(java.lang.String identity)
           
 void setMigrated(boolean migrated)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
           
 void setRoles(java.lang.String roles)
           
 void setSupervisor(boolean supervisor)
           
static void setUsersFromStore(java.util.ArrayList<EASUser> usersList)
           
static void setUsersFromStoreXml(java.util.ArrayList<java.lang.String> usersListXml)
           
 java.lang.String toStringAsXMLString()
           
 java.lang.String toXMLString()
           
static boolean updateUser(java.lang.Integer id, EASUser update)
           
static boolean updateUserProfile(EASUserProfile constraint, EASUserProfile update)
           
static boolean updateUserServers(EASUserServers old, EASUserServers update)
           
static boolean updateWorkStatus(EASWorkStatus status)
           
static boolean writeToFile(java.io.File file, java.lang.String sContents)
           
static boolean writeUserServers(EASUser user, java.util.ArrayList list)
          Deprecated. 

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

EASUser

public EASUser()

EASUser

@Deprecated
public EASUser(java.lang.Integer id,
                          java.lang.String name,
                          java.lang.String password,
                          boolean supervisor,
                          java.lang.String fullName,
                          java.lang.String email,
                          java.lang.String roles,
                          boolean external)
Deprecated. 

EASUser

public EASUser(java.lang.String name,
               java.lang.String password,
               boolean supervisor,
               java.lang.String fullName,
               java.lang.String email,
               java.lang.String roles,
               boolean external,
               java.lang.String identity)

EASUser

public EASUser(java.lang.String name,
               java.lang.String password,
               boolean supervisor,
               java.lang.String fullName,
               java.lang.String email,
               java.lang.String roles,
               boolean external)

EASUser

public EASUser(org.w3c.dom.Node userNode)

Method Detail

getId

public java.lang.Integer getId()

setId

public void setId(java.lang.Integer id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

isSupervisor

public boolean isSupervisor()

setSupervisor

public void setSupervisor(boolean supervisor)

getFullName

public java.lang.String getFullName()

setFullName

public void setFullName(java.lang.String fullName)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getRoles

public java.lang.String getRoles()

setRoles

public void setRoles(java.lang.String roles)

isExternal

public boolean isExternal()

setExternal

public void setExternal(boolean external)

isMigrated

public boolean isMigrated()

setMigrated

public void setMigrated(boolean migrated)

getIdentity

public java.lang.String getIdentity()

setIdentity

public void setIdentity(java.lang.String identity)

getEncryptedPwd

public java.lang.String getEncryptedPwd()

getEncryptedPwd

public static java.lang.String getEncryptedPwd(java.lang.String password)

getDecryptedPwd

public java.lang.String getDecryptedPwd()

getDecryptedPwd

public static java.lang.String getDecryptedPwd(java.lang.String password)

encrypt

public void encrypt()

decrypt

public void decrypt()

getDirectory

@Deprecated
protected java.lang.String getDirectory()
Deprecated. 

setDirectory

@Deprecated
protected void setDirectory(java.lang.String dir)
Deprecated. 

exportAsXML

protected static java.lang.String exportAsXML()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

exportData

protected static void exportData(org.w3c.dom.Element root)
                          throws java.lang.Exception
Throws:
java.lang.Exception

importAsXml

protected static void importAsXml(java.lang.String input)
                           throws java.lang.Exception
Throws:
java.lang.Exception

importData

protected static void importData(org.w3c.dom.Document doc)
                          throws java.lang.Exception
Throws:
java.lang.Exception

toXMLString

public java.lang.String toXMLString()

addAttribute

public static void addAttribute(java.lang.StringBuilder sb,
                                java.lang.String name,
                                java.lang.Object value)

toStringAsXMLString

public java.lang.String toStringAsXMLString()

fromXML

public void fromXML(java.lang.String xmlString)

createUser

public static boolean createUser(EASUser user)

retrieveUser

public static EASUser retrieveUser(java.lang.Integer id)

retrieveUser

public static EASUser retrieveUser(java.lang.String username)

retrieveAllUsers

public static java.util.ArrayList retrieveAllUsers()

updateUser

public static boolean updateUser(java.lang.Integer id,
                                 EASUser update)

deleteUser

public static boolean deleteUser(java.lang.String username)

addUserProfile

public static boolean addUserProfile(EASUser user,
                                     EASUserProfile profile)

retrieveUserProfiles

public static java.util.ArrayList retrieveUserProfiles(EASUser user)

retrieveUserProfile

public static EASUserProfile retrieveUserProfile(EASUser user,
                                                 java.lang.String dataType)

retrieveUserProfile

public static java.util.ArrayList retrieveUserProfile(EASUser user)

updateUserProfile

public static boolean updateUserProfile(EASUserProfile constraint,
                                        EASUserProfile update)

deleteUserProfile

public static boolean deleteUserProfile(EASUserProfile profile)

retrieveUserServers

public static java.util.ArrayList retrieveUserServers(EASUser user)

writeUserServers

@Deprecated
public static boolean writeUserServers(EASUser user,
                                                  java.util.ArrayList list)
Deprecated. 

addUserServers

public static boolean addUserServers(EASUser user,
                                     EASUserServers server)

updateUserServers

public static boolean updateUserServers(EASUserServers old,
                                        EASUserServers update)

deleteUserServers

public static boolean deleteUserServers(EASUserServers server)

getWorkStatus

public static java.util.ArrayList<EASWorkStatus> getWorkStatus(EASUser user)

getWorkStatus

public static java.util.ArrayList<EASWorkStatus> getWorkStatus(java.lang.String user)

addWorkStatus

public static boolean addWorkStatus(EASWorkStatus status)

updateWorkStatus

public static boolean updateWorkStatus(EASWorkStatus status)

deleteWorkStatus

public static boolean deleteWorkStatus(java.lang.String workId)

getStorageDirectory

public static java.io.File getStorageDirectory()

getStoragePath

public static java.lang.String getStoragePath()

addObjectsToList

public static void addObjectsToList(java.util.List list,
                                    java.lang.Object[] objects)

setUsersFromStore

public static void setUsersFromStore(java.util.ArrayList<EASUser> usersList)

setUsersFromStoreXml

public static void setUsersFromStoreXml(java.util.ArrayList<java.lang.String> usersListXml)

getUser

public static EASUser getUser(java.lang.String user,
                              java.lang.String password)

getDefaultUser

public static EASUser getDefaultUser(java.lang.String password)

isSameUser

public boolean isSameUser(EASUser user)

writeToFile

public static boolean writeToFile(java.io.File file,
                                  java.lang.String sContents)

readFromFile

public static java.lang.String readFromFile(java.io.File file)
Reads the file
Parameters:
file - file to be read
Returns:
the file content as a string

hasUTF8Signature

public static boolean hasUTF8Signature(byte[] _bytes)
Checks specified bytes to see if it has leading UTF-8 signature
Parameters:
_bytes - input bytes
Returns:
true if the specified bytes has leading UTF-8 signature false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.