|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Entity
com.nitido.nim.ContainerEntity
public class ContainerEntity
The ContainerEntity class is the Entity that represents an authenticated Nimlet container.
This class disables all the Entity credential space and user space access methods. It also disables the nugget management methods. Instead, it provides a method "getNimletClass( String name )" for loading Nimlets.
The reason for this ban is because the ContainerEntity may be using the backend administrator privilege, which may not have any corresponding user profile. For example, if both AuthenticationService and DataControlService are using the same backend LDAP server, we may be creating ContainerEntity with the "cn=Directory Manager" credential. The directory manager does not have any user profile and any attempt to access its user profile will fail.
Field Summary |
---|
Fields inherited from class com.nitido.nim.Entity |
---|
_datacontrol, _identifyingCred, _nuggets, _released, _requestCount |
Constructor Summary | |
---|---|
ContainerEntity(NiMKernelServiceVisa visa,
Credential credential,
DataControl datacontrol)
|
Method Summary | |
---|---|
void |
addToCredentialSpace(java.lang.String key,
Credential value)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
addToUserSpace(java.lang.String key,
java.io.Serializable value)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
Nugget |
createNugget(java.lang.String nuggetName,
java.lang.String nuggetType,
java.util.Hashtable settings)
This method always throw PermissionDeniedException because ContainerEntity has no privilege to create or access nuggets. |
Nugget |
createNugget(java.lang.String nuggetName,
java.lang.String nuggetType,
java.util.Hashtable settings,
Credential credential)
This method always throw PermissionDeniedException because ContainerEntity has no privilege to create or access nuggets. |
java.lang.String[] |
getCredentialSpaceKeys()
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
java.lang.String[] |
getCredentialSpaceKeys(java.lang.String startsWith)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
java.util.Vector |
getFromCredentialSpace(java.lang.String key)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
java.util.Vector |
getFromUserSpace(java.lang.String key)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
java.lang.Class |
getNimletClass(java.lang.String className)
This method returns the class object for the given class name. |
Nugget |
getNugget(java.lang.String nuggetName)
This method always throw PermissionDeniedException because ContainerEntity has no privilege to create or access nuggets. |
java.lang.String[] |
getUserSpaceKeys()
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
java.lang.String[] |
getUserSpaceKeys(java.lang.String startsWith)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
Credential |
getValueFromCredentialSpace(java.lang.String key)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
java.io.Serializable |
getValueFromUserSpace(java.lang.String key)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
modifyCredentialSpace(ModifierContainer container)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
modifyUserSpace(ModifierContainer container)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
removeFromCredentialSpace(java.lang.String key)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
removeFromCredentialSpace(java.lang.String key,
Credential value)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
removeFromUserSpace(java.lang.String key)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
removeFromUserSpace(java.lang.String key,
java.io.Serializable value)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
replaceInCredentialSpace(java.lang.String key,
Credential value)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
void |
replaceInUserSpace(java.lang.String key,
java.io.Serializable value)
This method always throw PermissionDeniedException because ContainerEntity has no access to credential space and user space. |
Methods inherited from class com.nitido.nim.Entity |
---|
changeDataControlCredential, changeIdentifyingCredential, finalize, getID, getIdentifyingCredential, getNiM, getNuggetNames, releaseEntity, releaseNugget, requestBegin, requestEnd, setIdentifyingCredential, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContainerEntity(NiMKernelServiceVisa visa, Credential credential, DataControl datacontrol) throws NiMRuntimeException
NiMRuntimeException
Method Detail |
---|
public java.lang.Class getNimletClass(java.lang.String className) throws IllegalNimletClassException
className
- The class name of the Nimlet to be loaded.
IllegalNimletClassException
- This exception is thrown if:
public void modifyCredentialSpace(ModifierContainer container) throws PermissionDeniedException
modifyCredentialSpace
in class Entity
container
- Encapsulates the list of modifications to be executed on the
Credential space.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the operations described by the given container.public void addToCredentialSpace(java.lang.String key, Credential value) throws PermissionDeniedException
addToCredentialSpace
in class Entity
key
- The key used to identify the given credentialvalue
- The credential to be added to the credential space of the entity.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void replaceInCredentialSpace(java.lang.String key, Credential value) throws PermissionDeniedException
replaceInCredentialSpace
in class Entity
key
- The key used to identify the given credentialvalue
- The credential to be added to the credential space of the
entity.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void removeFromCredentialSpace(java.lang.String key, Credential value) throws PermissionDeniedException
removeFromCredentialSpace
in class Entity
key
- The key used to identify the credential to be removed.value
- The credential object to be removed from the credential space.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void removeFromCredentialSpace(java.lang.String key) throws PermissionDeniedException
removeFromCredentialSpace
in class Entity
key
- The key used to identify the credentials to be removed.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public Credential getValueFromCredentialSpace(java.lang.String key) throws PermissionDeniedException
getValueFromCredentialSpace
in class Entity
key
- The key that uniquely identifies a set of credentials.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.util.Vector getFromCredentialSpace(java.lang.String key) throws PermissionDeniedException
getFromCredentialSpace
in class Entity
key
- The key used to identify the requested credentials.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.lang.String[] getCredentialSpaceKeys() throws PermissionDeniedException
getCredentialSpaceKeys
in class Entity
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.lang.String[] getCredentialSpaceKeys(java.lang.String startsWith) throws PermissionDeniedException
getCredentialSpaceKeys
in class Entity
startsWith
- The prefix string used to search for the currently
available credential keys. If no key matches the given
prefix, this method returns an empty array
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void modifyUserSpace(ModifierContainer container) throws PermissionDeniedException
modifyUserSpace
in class Entity
container
- Encapsulates the list of modifications to be executed on
the user space of the entity.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the operations described by the given container.public void addToUserSpace(java.lang.String key, java.io.Serializable value) throws PermissionDeniedException
addToUserSpace
in class Entity
key
- The key used to identify object being added to the user space.value
- The object being added to the user space.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void replaceInUserSpace(java.lang.String key, java.io.Serializable value) throws PermissionDeniedException
replaceInUserSpace
in class Entity
key
- The key used to identify the object being stored.value
- The object to be stored in the user space.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void removeFromUserSpace(java.lang.String key, java.io.Serializable value) throws PermissionDeniedException
removeFromUserSpace
in class Entity
key
- The key used to identify the credential to be removed.value
- The object to be removed.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public void removeFromUserSpace(java.lang.String key) throws PermissionDeniedException
removeFromUserSpace
in class Entity
key
- The key used to identify the objects being removed.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.io.Serializable getValueFromUserSpace(java.lang.String key) throws PermissionDeniedException
getValueFromUserSpace
in class Entity
key
- The key that uniquely idenfifies a set of objects in the
user space.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.util.Vector getFromUserSpace(java.lang.String key) throws PermissionDeniedException
getFromUserSpace
in class Entity
key
- The key used to identify the set of objects in the user
space.
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.lang.String[] getUserSpaceKeys() throws PermissionDeniedException
getUserSpaceKeys
in class Entity
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public java.lang.String[] getUserSpaceKeys(java.lang.String startsWith) throws PermissionDeniedException
getUserSpaceKeys
in class Entity
startsWith
- The prefix string used to search for the currently
available user space keys. If no key matches the given
prefix, this method returns an empty array
PermissionDeniedException
- This exception is thrown if the Entity is not entitled to
perform the requested action.public Nugget getNugget(java.lang.String nuggetName) throws PermissionDeniedException
getNugget
in class Entity
nuggetName
- The name of the nugget that was passed when the nugget was
created through the createNugget() method on Entity.
PermissionDeniedException
- If the identifying credential of the entity does not have
permission to create the requested nugget.public Nugget createNugget(java.lang.String nuggetName, java.lang.String nuggetType, java.util.Hashtable settings, Credential credential) throws PermissionDeniedException
PermissionDeniedException
public Nugget createNugget(java.lang.String nuggetName, java.lang.String nuggetType, java.util.Hashtable settings)
createNugget
in class Entity
nuggetName
- The unique name for the nugget within the entity.nuggetType
- The type of the nugget to be instantiated.settings
- The set of name/value pairs that specify the settings of
the Nugget being created.
|
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.