|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote interface for the NamespaceManager EJB, used to interact with the WLAI namespace repository.
Method Summary | |
INamespace |
addNamespace(INamespace parent,
java.lang.String childName)
Adds a namespace of the given name to the given parent namespace. |
boolean |
exists(QualifiedName aQualifiedName)
Determine whether the namespace represented by a qualified name exists in the repository. |
INamespace |
getNamespace(QualifiedName name)
Gets the namespace with the given qualified name. |
INamespaceObject |
getObject(NamespaceObjectHandle handle)
Get a namespace object from a namespace object handle. |
NamespaceObjectHandle |
getObjectHandle(QualifiedName aQualifiedName)
Get a namespace object handle using a qualified name. |
QualifiedName |
getQualifiedNameFromString(java.lang.String qnameStr)
Get a QualifiedName object from the external string form of a qualified name. |
QualifiedName |
getQualifiedNameFromString(java.lang.String qnameStr,
boolean allowNonExistent)
Get a QualifiedName object from the external string form of a qualified name, optionally allowing the lowest level qualifier to not exist. |
INamespace |
getRootNamespace()
Get the root namespace, which is the parent of all namespaces in the WLAI system. |
boolean |
hasChildren(INamespace aNamespace)
Determine whether a given namespace contains any child namespaces. |
java.util.Iterator |
listObjects(INamespace namespace)
Returns an iterator over the objects (NamespaceObjectHandle) contained in the given namespace. |
INamespace |
removeNamespace(QualifiedName name)
Removes the namespace with the given qualified name from its parent namespace. |
void |
updateNamespace(INamespace namespace)
Updates the given namespace with any changes that have been made to it since it was retrieved. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public INamespace addNamespace(INamespace parent, java.lang.String childName) throws NamespaceException, java.rmi.RemoteException
parent
- an INamespace object specifying the parent namepace.childName
- the name of the new child namespace.public INamespace removeNamespace(QualifiedName name) throws NamespaceException, java.rmi.RemoteException
name
- the QualifiedName denoting the namespace to remove.public void updateNamespace(INamespace namespace) throws NamespaceException, java.rmi.RemoteException
namespace
- The namespace to update in the repository.public INamespace getNamespace(QualifiedName name) throws NamespaceException, java.rmi.RemoteException
name
- QualifiedName of the namespace to retrieve.public java.util.Iterator listObjects(INamespace namespace) throws NamespaceException, java.rmi.RemoteException
INamespace root = namespaceMgr.getRootNamespace(); Iterator iterator = namespaceMgr.listObjects(root); while (iterator.hasNext()) { NamespaceObjectHandle handle = (NamespaceObjectHandle)iterator.next(); if (handle.isAssignableTo(IApplicationViewDescriptor.class)) { // Use our ApplicationViewManager instance to resolve this handle IApplicationViewDescriptor avd = appViewMgr.getApplicationView(handle.getQualifiedName()); } else if (handle.isAssignableTo(INamespace.class)) { // Use our NamespaceManager instance to resolve this handle INamespace namespace = namespaceMgr.getNamespace(handle.getQualifiedName()); } }
public INamespace getRootNamespace() throws NamespaceException, java.rmi.RemoteException
public INamespaceObject getObject(NamespaceObjectHandle handle) throws NamespaceException, java.rmi.RemoteException
handle
- the namespace object handle of the object to retrieve.public NamespaceObjectHandle getObjectHandle(QualifiedName aQualifiedName) throws NamespaceException, java.rmi.RemoteException
aQualifiedName
- for the object to be retrieved.public QualifiedName getQualifiedNameFromString(java.lang.String qnameStr) throws NamespaceException, java.rmi.RemoteException
qnameStr
- A string in dot-separated notation that represents a
qualified name (e.g. 'foo.bar').getQualifiedNameFromString(String, boolean)
public QualifiedName getQualifiedNameFromString(java.lang.String qnameStr, boolean allowNonExistent) throws NamespaceException, java.rmi.RemoteException
qnameStr
- A string in dot-separated notation that represents a
qualified name (e.g. 'foo.bar').allowNonExistent
- Indicates whether to allow string values that
refer to non-existent lowest level qualifiers. If true, the final
(lowest level) qualifier in the stringified QualifiedName is
allowed to be non-existent. Otherwise, all qualifiers must exist.public boolean hasChildren(INamespace aNamespace) throws NamespaceException, java.rmi.RemoteException
aNamespace
- - the namespace to examine for child namespaces.public boolean exists(QualifiedName aQualifiedName) throws NamespaceException, java.rmi.RemoteException
aQualifiedName
- - the qualified name of the namespace to
find in the repository.
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |