Skip navigation links


com.essbase.eas.server
Class AdminBusinessLogic

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


public class AdminBusinessLogic
extends java.lang.Object

A AdminBusinessLogic class supports the administration of an EAS application. The operations for users are creation, deletion, renaming, and editing. Each user can store and retrieve keyed information from this logic layer. Also the servers that a user will use can be stored also.

Since:
6.2.0
Version:
7.0
Author:
Brendan Gaul

Constructor Summary
AdminBusinessLogic()
           

 

Method Summary
 boolean acceptReplication(java.lang.String xmlDocument)
          Deprecated.  
 boolean addToReplicationList(java.lang.String serverName, java.lang.String url, java.lang.String username, java.lang.String password)
          Deprecated.  
 boolean adminAddServerToMasterList(java.lang.String serverType, java.lang.String serverName, java.util.Collection errors)
           
 boolean adminAddServerToUserList(java.lang.String username, java.lang.String serverType, java.lang.String serverName, java.lang.String serverUserName, java.lang.String serverUserPassword, boolean isExternal, java.util.Collection errors)
           
 boolean adminAddUserProfile(java.lang.String username, java.lang.String dataType, java.lang.String data, java.util.Collection errors)
           
 boolean adminCreateUser(AdminUser adminUser, boolean buildDefaultServerList, java.util.Collection errors)
          Creates a definition of the user represented by the specified AdminUser into the EAS database.
 boolean adminDeleteUser(java.lang.String username, java.util.Collection errors)
           
 boolean adminEditUser(java.lang.String username, java.lang.String password, java.lang.String fullName, java.lang.String email, java.lang.Boolean supervisor, java.lang.Boolean external, java.util.Collection errors)
           
 java.util.ArrayList adminGetMasterServerList(java.lang.String type, java.util.Collection errors)
           
 java.util.ArrayList adminGetUserList(java.lang.String loginUserName, java.util.Collection errors, boolean bAllUsers)
           
 java.lang.String adminGetUserProfile(java.lang.String username, java.lang.String dataType, java.util.Collection errors)
           
 java.util.ArrayList adminGetUserServerList(java.lang.String username, java.lang.String serverType, java.util.Collection errors)
           
 boolean adminRemoveServerFromMasterList(java.lang.String serverType, java.lang.String serverName, java.util.Collection errors)
           
 boolean adminRemoveServerFromUserList(java.lang.String username, java.lang.String serverType, java.lang.String serverName, java.util.Collection errors)
           
 boolean adminRenameUser(java.lang.String newName, java.lang.String oldName, java.util.Collection errors)
           
 boolean adminUpdateServerFromUserList(java.lang.String username, java.lang.String serverName, java.lang.String serverUserName, java.lang.String serverUserPassword, boolean external, java.util.Collection errors)
          adminUpdateServerFromUserList updates the server user info
 boolean adminUpdateUserProfile(java.lang.String username, java.lang.String dataType, java.lang.String data, java.util.Collection errors)
           
 java.util.ArrayList getNativeUserList(java.util.Collection errors)
           
 java.lang.String getReplicationList()
          Deprecated. todo change this to return an ArrayList of replications todo remove strings
 java.util.ArrayList getReplicationList(java.util.Collection errors)
          Deprecated.  
static void main(java.lang.String[] args)
           
 boolean removeFromReplicationList(java.lang.String serverUrl)
          Deprecated.  
 java.util.ArrayList replicate()
          Deprecated.  
 java.lang.Object setAvailableSessions(java.lang.String username, StoreService store, ServiceContext context, java.util.Collection errors)
           
 boolean setEmailStatus(java.lang.String processId, java.lang.Boolean errorBool, java.lang.String errorMessage)
          Record the status of an email sent from the client
 boolean setUserMigrated(java.lang.String userName, java.util.Collection errors)
           
 boolean updateEssbaseUserName(java.lang.String serverName, java.lang.String oldName, java.lang.String newName, java.util.Collection errors)
          This method is provided for synchronizing Essbase login information in the EAS persistent storage repository (PointBase)
 boolean updateEssbaseUserPassword(java.lang.String serverName, java.lang.String userName, java.lang.String newPassword, java.util.Collection errors)
          This method is provided for synchronizing Essbase login information in the EAS persistent storage repository (PointBase)
 boolean updateEssbaseUsers(java.lang.String esbServerName, java.util.HashMap usrPwdMap, java.util.Collection errors)
          This method is used to update passwords after the essbase is converted to Common security mode.
 void updateSession(java.lang.String userName, java.lang.String sessionType, java.lang.String serverName, java.lang.String serverUserName, java.lang.String serverPassword, boolean isExternal, StoreService store, ServiceContext context)
          Update the session in the session parameters and in the session store

 

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

 

Constructor Detail

AdminBusinessLogic

public AdminBusinessLogic()

Method Detail

adminCreateUser

public boolean adminCreateUser(AdminUser adminUser,
                               boolean buildDefaultServerList,
                               java.util.Collection errors)
Creates a definition of the user represented by the specified AdminUser into the EAS database. If the specified boolean argument is true the method will additionally create User Server list entries for all known user servers Errors that occur during database access are logged to the default Logger
Parameters:
adminUser - - the definition of the user to be created
buildDefaultServerList - - true if all known user server entries will be automatically created
errors - - stores errors as a collection

adminDeleteUser

public boolean adminDeleteUser(java.lang.String username,
                               java.util.Collection errors)

adminRenameUser

public boolean adminRenameUser(java.lang.String newName,
                               java.lang.String oldName,
                               java.util.Collection errors)

updateEssbaseUserName

public boolean updateEssbaseUserName(java.lang.String serverName,
                                     java.lang.String oldName,
                                     java.lang.String newName,
                                     java.util.Collection errors)
This method is provided for synchronizing Essbase login information in the EAS persistent storage repository (PointBase)

updateEssbaseUserPassword

public boolean updateEssbaseUserPassword(java.lang.String serverName,
                                         java.lang.String userName,
                                         java.lang.String newPassword,
                                         java.util.Collection errors)
This method is provided for synchronizing Essbase login information in the EAS persistent storage repository (PointBase)

adminEditUser

public boolean adminEditUser(java.lang.String username,
                             java.lang.String password,
                             java.lang.String fullName,
                             java.lang.String email,
                             java.lang.Boolean supervisor,
                             java.lang.Boolean external,
                             java.util.Collection errors)

adminGetUserList

public java.util.ArrayList adminGetUserList(java.lang.String loginUserName,
                                            java.util.Collection errors,
                                            boolean bAllUsers)
Parameters:
bAllUsers - TODO username should be the login user name. and cannot be null.

adminGetMasterServerList

public java.util.ArrayList adminGetMasterServerList(java.lang.String type,
                                                    java.util.Collection errors)

adminAddServerToMasterList

public boolean adminAddServerToMasterList(java.lang.String serverType,
                                          java.lang.String serverName,
                                          java.util.Collection errors)

adminRemoveServerFromMasterList

public boolean adminRemoveServerFromMasterList(java.lang.String serverType,
                                               java.lang.String serverName,
                                               java.util.Collection errors)

adminGetUserServerList

public java.util.ArrayList adminGetUserServerList(java.lang.String username,
                                                  java.lang.String serverType,
                                                  java.util.Collection errors)

adminAddServerToUserList

public boolean adminAddServerToUserList(java.lang.String username,
                                        java.lang.String serverType,
                                        java.lang.String serverName,
                                        java.lang.String serverUserName,
                                        java.lang.String serverUserPassword,
                                        boolean isExternal,
                                        java.util.Collection errors)

adminRemoveServerFromUserList

public boolean adminRemoveServerFromUserList(java.lang.String username,
                                             java.lang.String serverType,
                                             java.lang.String serverName,
                                             java.util.Collection errors)

adminUpdateServerFromUserList

public boolean adminUpdateServerFromUserList(java.lang.String username,
                                             java.lang.String serverName,
                                             java.lang.String serverUserName,
                                             java.lang.String serverUserPassword,
                                             boolean external,
                                             java.util.Collection errors)
adminUpdateServerFromUserList updates the server user info

updateSession

public void updateSession(java.lang.String userName,
                          java.lang.String sessionType,
                          java.lang.String serverName,
                          java.lang.String serverUserName,
                          java.lang.String serverPassword,
                          boolean isExternal,
                          StoreService store,
                          ServiceContext context)
Update the session in the session parameters and in the session store
Parameters:
userName -
sessionType -
serverName -
serverUserName -
serverPassword -
isExternal -
store -
context -

setAvailableSessions

public java.lang.Object setAvailableSessions(java.lang.String username,
                                             StoreService store,
                                             ServiceContext context,
                                             java.util.Collection errors)
Parameters:
username -
store -
context -
errors -
Returns:

adminAddUserProfile

public boolean adminAddUserProfile(java.lang.String username,
                                   java.lang.String dataType,
                                   java.lang.String data,
                                   java.util.Collection errors)

adminGetUserProfile

public java.lang.String adminGetUserProfile(java.lang.String username,
                                            java.lang.String dataType,
                                            java.util.Collection errors)

adminUpdateUserProfile

public boolean adminUpdateUserProfile(java.lang.String username,
                                      java.lang.String dataType,
                                      java.lang.String data,
                                      java.util.Collection errors)

setEmailStatus

public boolean setEmailStatus(java.lang.String processId,
                              java.lang.Boolean errorBool,
                              java.lang.String errorMessage)
                       throws java.lang.Exception
Record the status of an email sent from the client
Throws:
java.lang.Exception

getNativeUserList

public java.util.ArrayList getNativeUserList(java.util.Collection errors)

setUserMigrated

public boolean setUserMigrated(java.lang.String userName,
                               java.util.Collection errors)

getReplicationList

public java.util.ArrayList getReplicationList(java.util.Collection errors)
Deprecated. 

getReplicationList

public java.lang.String getReplicationList()
Deprecated. todo change this to return an ArrayList of replications todo remove strings

addToReplicationList

public boolean addToReplicationList(java.lang.String serverName,
                                    java.lang.String url,
                                    java.lang.String username,
                                    java.lang.String password)
Deprecated. 

removeFromReplicationList

public boolean removeFromReplicationList(java.lang.String serverUrl)
Deprecated. 

replicate

public java.util.ArrayList replicate()
Deprecated. 

acceptReplication

public boolean acceptReplication(java.lang.String xmlDocument)
Deprecated. 

updateEssbaseUsers

public boolean updateEssbaseUsers(java.lang.String esbServerName,
                                  java.util.HashMap usrPwdMap,
                                  java.util.Collection errors)
This method is used to update passwords after the essbase is converted to Common security mode.
Parameters:
errors - list of error.
Returns:
boolean true/false.

main

public static void main(java.lang.String[] args)

Skip navigation links


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