|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Nugget
com.nitido.nim.NonCachableNugget
com.nitido.nimx.nuggets.iplanetset.IPlanetSettingsNugget
com.nitido.nimx.nuggets.iplanetset.userspace.IPlanetSettingsNuggetImpl
public class IPlanetSettingsNuggetImpl
IPlanetSettingsNugget is responsible for accessing and modifying personal preference settings that may involve more than one iPlanet servers.
Settings This implementation does not require any settings. It simply stores all the setting to the user space. If these settings are stored in the backend, you must ensure the corresponding DataControlService has been configured properly to map these settings to the backend.
Field Summary | |
---|---|
protected java.util.HashMap |
_cachedAttr
|
protected OpenHash |
_modifyAttr
|
protected java.util.HashSet |
_removeAttr
|
protected int |
_transactionLevel
|
Fields inherited from class com.nitido.nim.Nugget |
---|
_entity, _nim, _nuggetName, _settings |
Fields inherited from interface com.nitido.nim.CredentialConstants |
---|
CRED_ADMIN, CRED_CONTAINER, CRED_HELPDESK, CRED_SYSTEM, CRED_USER, KEY_PASSWORD |
Constructor Summary | |
---|---|
IPlanetSettingsNuggetImpl(NuggetVisa visa)
Default Nugget constructor. |
Method Summary | |
---|---|
void |
abortTransaction()
Abort a batch of settings change. |
void |
activate()
Used by NiM Nugget mechanism. |
void |
commitTransaction()
Commits a batch of settings change. |
void |
deactivate()
Used by NiM Nugget mechnanism. |
java.lang.String |
getDescriptor()
Used by NiM Nugget mechnanism. |
java.lang.String[] |
getMultiValues(java.lang.String attribute)
Returns all values of the attribute in the user's entry. |
protected void |
initImpl()
This method is called by the init() method after the member variables _nuggetName, _entity and _settings are assigned. |
protected void |
removeMultiValues(java.lang.String attribute)
Removes the specified attribute from the user's entry. |
void |
setMultiValues(java.lang.String attribute,
java.lang.String[] values)
Sets the attribute/value for the user's entry in the Directory. |
void |
setSingleValue(java.lang.String attribute,
java.lang.String value)
Sets the attribute/value pair for the user's entry in the Directory. |
void |
startTransaction()
Starts a batch of settings change. |
Methods inherited from class com.nitido.nim.NonCachableNugget |
---|
isCachable |
Methods inherited from class com.nitido.nim.Nugget |
---|
destroy, destroyImpl, getEntity, getNuggetName, getSetting, getSettings, init, requestBegin, requestEnd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient OpenHash _modifyAttr
protected transient java.util.HashSet _removeAttr
protected transient java.util.HashMap _cachedAttr
protected transient int _transactionLevel
Constructor Detail |
---|
public IPlanetSettingsNuggetImpl(NuggetVisa visa)
Method Detail |
---|
public void activate() throws ActivationException
activate
in class IPlanetSettingsNugget
ActivationException
- If unable to activate the Nuggetpublic void deactivate() throws ActivationException
deactivate
in class IPlanetSettingsNugget
ActivationException
- If unable to deactivate the Nuggetprotected void initImpl() throws InitializationFailedException, InvalidSettingException
Nugget
initImpl
in class Nugget
InitializationFailedException
- If unable to initialize the nugget with the given parameters.
InvalidSettingException
- If any of the expected initialization settings are null.public java.lang.String getDescriptor()
getDescriptor
in class IPlanetSettingsNugget
public void setSingleValue(java.lang.String attribute, java.lang.String value) throws IPlanetServerException
IPlanetSettingsNugget
setSingleValue
in class IPlanetSettingsNugget
attribute
- The attribute name
value
- The new value.
IPlanetServerException
- If there is a connection problem with the Directory object.public java.lang.String[] getMultiValues(java.lang.String attribute) throws IPlanetServerException
IPlanetSettingsNugget
Note: if the attribute has only one value stored, it simply returns an array of size one no matter whether the underlying attribute is single-value or multi-values.
getMultiValues
in class IPlanetSettingsNugget
IPlanetServerException
- If there is a connection problem with the Directory object.public void setMultiValues(java.lang.String attribute, java.lang.String[] values) throws IPlanetServerException
IPlanetSettingsNugget
setMultiValues
in class IPlanetSettingsNugget
attribute
- The attribute name
values
- The new values.
IPlanetServerException
- If there is a connection problem with the Directory object.protected void removeMultiValues(java.lang.String attribute) throws IPlanetServerException
IPlanetSettingsNugget
removeMultiValues
in class IPlanetSettingsNugget
IPlanetServerException
- If there is a connection problem with the Directory object.public void startTransaction() throws IPlanetServerException
IPlanetSettingsNugget
Please see the class description for more details on why and when to use these transaction methods.
startTransaction
in class IPlanetSettingsNugget
IPlanetServerException
public void commitTransaction() throws IPlanetServerException
IPlanetSettingsNugget
Please see the class description for more details on why and when to use these transaction methods.
commitTransaction
in class IPlanetSettingsNugget
IPlanetServerException
public void abortTransaction() throws IPlanetServerException
IPlanetSettingsNugget
If no transaction was in process when this method is called, this method will not do anything and no exception will be thrown.
Please see the class description for more details on why and when to use these transaction methods.
abortTransaction
in class IPlanetSettingsNugget
IPlanetServerException
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.