public class ManagementServiceSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.novell.emframe.fw.authenticator.DirAuthenticator |
m_dirAuth |
protected javax.servlet.http.HttpSession |
m_session |
| Modifier | Constructor and Description |
|---|---|
protected |
ManagementServiceSet(com.novell.emframe.fw.authenticator.DirAuthenticator dirAuth)
Constructs an empty ManagementServiceSet.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.Object attrKey)
Returns the value to which the specified attribute key is associated with.
|
AuthenticationBroker |
getAuthenticationBroker()
Returns the AuthenticationBroker associated with this logged in user.
|
java.util.LinkedHashMap |
getAuthenticationBrokers()
Returns the authBrokers
|
DirUtils |
getDirUtils()
Returns the DirUtils object associated with this logged in user.
|
java.lang.String |
getGlobalVar(java.lang.String varName)
Deprecated.
use getAttribute
|
java.util.Locale |
getLocale()
Returns the user's locale.
|
static ManagementServiceSet |
getManagementServiceSet(javax.servlet.http.HttpSession session)
Static method to get the correct ManagementServiceSet based the current HttpSession.
|
com.novell.nps.sessionManager.PortalSession |
getSession()
Deprecated.
as of 2.6 not needed.
|
java.util.Hashtable |
getSessionCache()
Deprecated.
The newer getAttribute(), setAttribute, and removeAttribute() calls should be used.
|
java.lang.String |
handleDirectoryEvent(com.novell.admin.event.DirectoryEvent event,
java.lang.Object userData)
Handles a directory event notification
|
boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest req)
Returns whether authentication has successfully occurred.
|
boolean |
isDisconnected()
This call will return true or false if in disconnected mode.
|
boolean |
isPrimaryDataStore()
This call will return true or false if this is a PRIMARY service set.
|
boolean |
login(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Login using information available in the HttpServletRequest.
|
void |
removeAttribute(java.lang.Object attrKey)
Removes the attribute key and associated value if present.
|
void |
removeGlobalVar(java.lang.String varName)
Deprecated.
use removeAttribute
|
void |
resetPIdentity(java.lang.String new_PIdentity)
Resets the password if it is changed after initial login/creation.
|
void |
setAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
Saves the specified attribute value with the specified attribute key.
|
void |
setDisconnected(boolean isDisconnected)
Set the management service set into the disconnected mode or not disconnected.
|
void |
setGlobalVar(java.lang.String varName,
java.lang.String val)
Saves the specified attribute value with the specified attribute key.
|
protected com.novell.emframe.fw.authenticator.DirAuthenticator m_dirAuth
protected javax.servlet.http.HttpSession m_session
protected ManagementServiceSet(com.novell.emframe.fw.authenticator.DirAuthenticator dirAuth)
dirAuth - public java.util.Hashtable getSessionCache()
getAttribute(java.lang.Object),
setAttribute(java.lang.Object, java.lang.Object),
removeAttribute(java.lang.Object)public boolean isAuthenticated(javax.servlet.http.HttpServletRequest req)
req - public boolean login(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
req - The HttpServletRequest objectres - The HttpServletResponse objectpublic java.util.Locale getLocale()
public final com.novell.nps.sessionManager.PortalSession getSession()
public java.lang.Object getAttribute(java.lang.Object attrKey)
attrKey - Object containing the attribute key whose associated value is to be returned
This may not be null.setAttribute(java.lang.Object, java.lang.Object),
getGlobalVar(java.lang.String)public void setAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
attrKey - Object containing the attribute key whose associated value is to be set
This may not be null.attrValue - Object value to be saved. This may not be null.getAttribute(java.lang.Object),
setGlobalVar(java.lang.String, java.lang.String)public void removeAttribute(java.lang.Object attrKey)
attrKey - Object containing the attribute key whose associated value is to be removed
This may not be null.removeGlobalVar(java.lang.String)public DirUtils getDirUtils()
public AuthenticationBroker getAuthenticationBroker()
public java.util.LinkedHashMap getAuthenticationBrokers()
public void resetPIdentity(java.lang.String new_PIdentity)
throws AuthBrokerException
new_PIdentity - String containing the new passwordAuthBrokerException - if there is a problem resetting the passwordpublic boolean isPrimaryDataStore()
public void setDisconnected(boolean isDisconnected)
isDisconnected - true if disconnected, false if notpublic boolean isDisconnected()
public final java.lang.String getGlobalVar(java.lang.String varName)
varName - String containing the attribute key whose associated value is to be returned
This may not be null.setGlobalVar(java.lang.String, java.lang.String),
getAttribute(java.lang.Object)public final void setGlobalVar(java.lang.String varName,
java.lang.String val)
varName - String containing the attribute key whose associated value is to be set
This may not be null.val - String value to be saved. This may not be null.getGlobalVar(java.lang.String),
setAttribute(java.lang.Object, java.lang.Object)public final void removeGlobalVar(java.lang.String varName)
varName - String containing the attribute key whose associated value is to be removed
This may not be null.removeAttribute(java.lang.Object)public static ManagementServiceSet getManagementServiceSet(javax.servlet.http.HttpSession session)
session - The current HttpSessionpublic java.lang.String handleDirectoryEvent(com.novell.admin.event.DirectoryEvent event,
java.lang.Object userData)
event - - The directory event to handle. This event should
be created by the directory interface implementation.userData -
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.