|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoaprmi.server.RemoteObject
xdrs_impl.genericdb.GenericXDirectoryService
This class is a XDirectoryService implementation that is backed by a database.
| Field Summary |
| Fields inherited from class soaprmi.server.RemoteObject |
port |
| Fields inherited from interface xdrs.XDirectoryService |
NAMESPACE, ROOT |
| Fields inherited from interface xdrs.authorization.NodeAuthorization |
ADMIN, EVERYBODY, NOBODY |
| Constructor Summary | |
protected |
GenericXDirectoryService(DBImplementation db)
|
| Method Summary | |
void |
addDNForUser(java.lang.String user,
java.lang.String dn)
|
void |
addGroupToSuperGroup(java.lang.String group,
java.lang.String superGroup)
|
void |
addNode(java.lang.String path,
org.gjt.xpp.XmlNode nodeXml)
Add the given node as a child of the node associated with the given path. |
void |
addUsersToGroup(java.lang.String[] users,
java.lang.String group)
|
void |
addUserToGroup(java.lang.String user,
java.lang.String group)
|
void |
checkReadAccess(java.lang.String user,
java.lang.String path)
|
protected void |
closeConnection(java.sql.Connection connection)
|
void |
copyNodes(java.lang.String[] sourcePaths,
java.lang.String targetPath)
Copy a set of nodes from one location to another. |
void |
createUser(java.lang.String user,
java.lang.String dn)
|
void |
deleteAllDNsForUser(java.lang.String user)
|
void |
deleteDNForUser(java.lang.String user,
java.lang.String dn)
|
void |
deleteGroup(java.lang.String group)
|
void |
deleteGroups(java.lang.String[] groups)
|
void |
deleteNodes(java.lang.String dirPath,
java.lang.String[] childrenNames)
Delete children nodes that are continaed in directory identified by path. |
void |
deleteUser(java.lang.String user)
|
void |
deleteUsers(java.lang.String[] users)
|
org.gjt.xpp.XmlNode[] |
getChildrenWithoutHtml(java.lang.String path)
Get list of XML nodes that are contained inside directory. |
java.lang.String[] |
getGroups(java.lang.String user)
|
org.gjt.xpp.XmlNode |
getNode(java.lang.String path)
Get an XmlNode representation of whatever is at the given path. |
java.lang.String |
getNodeHtml(java.lang.String path)
Get an XmlNode representation for the given path's html. |
java.lang.String |
getUserForDN(java.lang.String name)
|
void |
isAuthorized(java.security.Principal dn,
org.xmlpull.v1.builder.XmlElement xsulEnvelope)
|
java.lang.String[] |
keywordSearch(java.lang.String[] keywords,
boolean doAnd,
int maxResults)
Search using keywords to find nodes. |
java.lang.String[] |
listGroups()
|
java.lang.String[] |
listSubGroupsOfGroup(java.lang.String group,
boolean recurse)
|
java.lang.String[] |
listUsers()
|
java.lang.String[] |
listUsersOfGroup(java.lang.String group,
boolean recurse)
|
protected abstract void |
loadDriver()
|
void |
modifyNode(java.lang.String path,
org.gjt.xpp.XmlNode nodeXml)
Update the values of a node, pointed to by the given path, with those in the given node. |
void |
moveNodes(java.lang.String[] sourcePaths,
java.lang.String targetPath)
Move a set of nodes from one location to another. |
protected abstract java.sql.Connection |
openConnection()
|
void |
removeGroupFromSuperGroup(java.lang.String group,
java.lang.String superGroup)
|
void |
removeUserFromGroup(java.lang.String user,
java.lang.String group)
|
void |
removeUsersFromGroup(java.lang.String[] users,
java.lang.String group)
|
void |
setPermissions(java.lang.String path,
java.lang.String owner,
java.lang.String readWriteGroup,
java.lang.String readOnlyGroup,
boolean recurse)
|
| Methods inherited from class soaprmi.server.RemoteObject |
equals, getReference, getSoapRMIPort, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected GenericXDirectoryService(DBImplementation db)
throws java.sql.SQLException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
org.gjt.xpp.XmlPullParserException,
soaprmi.RemoteException
| Method Detail |
protected abstract void loadDriver()
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
protected abstract java.sql.Connection openConnection()
throws java.sql.SQLException
java.sql.SQLException
protected void closeConnection(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLException
public org.gjt.xpp.XmlNode[] getChildrenWithoutHtml(java.lang.String path)
throws soaprmi.RemoteException
XDirectoryService
getChildrenWithoutHtml in interface XDirectoryServicesoaprmi.RemoteException - If the given path does not exist, node identified
by path is not direcotry.
public java.lang.String getNodeHtml(java.lang.String path)
throws soaprmi.RemoteException
XDirectoryService
getNodeHtml in interface XDirectoryServicepath - The path whose html will be returned.
soaprmi.RemoteException - If the given path does not exist, there is a
problem generating the XmlNode, or the node
associated with the given path does not have
html.
public void deleteNodes(java.lang.String dirPath,
java.lang.String[] childrenNames)
throws soaprmi.RemoteException
XDirectoryService
deleteNodes in interface XDirectoryServicedirPath - The path to the direcotry nodechildrenNames - list of children nodes to delete.
soaprmi.RemoteException - If the given path does not exist, there is
a problem deleting the node, or if there is an
attempt to delete the ROOT.
public void addNode(java.lang.String path,
org.gjt.xpp.XmlNode nodeXml)
throws soaprmi.RemoteException
XDirectoryService
addNode in interface XDirectoryServicepath - The proposed parent for the given node.nodeXml - The node that will be added.
soaprmi.RemoteException - If the given path does not exist, the given path
plus the given node's name already exists, the
given node is not of a supported type, or the
given path points to a node that cannot have
children.
public void modifyNode(java.lang.String path,
org.gjt.xpp.XmlNode nodeXml)
throws soaprmi.RemoteException
XDirectoryService
modifyNode in interface XDirectoryServicepath - The path to the node to be modified.nodeXml - A node containing new values for specific fields.
soaprmi.RemoteException - If the given path does not exist, the type of the
given node's type does not match the type of the
node associated with the given path, or the given
node tries to change the name of the node
associated with the given path.
public void moveNodes(java.lang.String[] sourcePaths,
java.lang.String targetPath)
throws soaprmi.RemoteException
XDirectoryService
moveNodes in interface XDirectoryServicesourcePaths - The paths to the nodes to be moved.
soaprmi.RemoteException - If the given sourcePaths do not exist, or the
targetPath exists and is not a directory.
public org.gjt.xpp.XmlNode getNode(java.lang.String path)
throws soaprmi.RemoteException
XDirectoryService
getNode in interface XDirectoryServicepath - The path from which to extract an XmlNode.
soaprmi.RemoteException - If the given path does not exist, or there is a
problem generating the XmlNode.
public void copyNodes(java.lang.String[] sourcePaths,
java.lang.String targetPath)
throws soaprmi.RemoteException
XDirectoryService
copyNodes in interface XDirectoryServicesourcePaths - The paths to the nodes to be copied.
soaprmi.RemoteException - If the given sourcePaths do not exist, or the
targetPath exists and is not a directory.
public java.lang.String[] keywordSearch(java.lang.String[] keywords,
boolean doAnd,
int maxResults)
throws soaprmi.RemoteException
XDirectoryService
keywordSearch in interface XDirectoryServicekeywords - The keywords for which to search.doAnd - Whether to AND the keywrods together or not.maxResults - The max number of results to return.
soaprmi.RemoteException
public void setPermissions(java.lang.String path,
java.lang.String owner,
java.lang.String readWriteGroup,
java.lang.String readOnlyGroup,
boolean recurse)
throws soaprmi.RemoteException
setPermissions in interface NodeAuthorizationsoaprmi.RemoteException
public void isAuthorized(java.security.Principal dn,
org.xmlpull.v1.builder.XmlElement xsulEnvelope)
throws xsul.XsulException
xsul.XsulException
public void checkReadAccess(java.lang.String user,
java.lang.String path)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public void createUser(java.lang.String user,
java.lang.String dn)
throws soaprmi.RemoteException
createUser in interface UserManagementsoaprmi.RemoteException
public void addUserToGroup(java.lang.String user,
java.lang.String group)
throws soaprmi.RemoteException
addUserToGroup in interface UserManagementsoaprmi.RemoteException
public void addUsersToGroup(java.lang.String[] users,
java.lang.String group)
throws soaprmi.RemoteException
addUsersToGroup in interface UserManagementsoaprmi.RemoteException
public void addGroupToSuperGroup(java.lang.String group,
java.lang.String superGroup)
throws soaprmi.RemoteException
addGroupToSuperGroup in interface UserManagementsoaprmi.RemoteException
public void deleteUser(java.lang.String user)
throws soaprmi.RemoteException
deleteUser in interface UserManagementsoaprmi.RemoteException
public void deleteUsers(java.lang.String[] users)
throws soaprmi.RemoteException
deleteUsers in interface UserManagementsoaprmi.RemoteException
public void removeUserFromGroup(java.lang.String user,
java.lang.String group)
throws soaprmi.RemoteException
removeUserFromGroup in interface UserManagementsoaprmi.RemoteException
public void removeUsersFromGroup(java.lang.String[] users,
java.lang.String group)
throws soaprmi.RemoteException
removeUsersFromGroup in interface UserManagementsoaprmi.RemoteException
public void removeGroupFromSuperGroup(java.lang.String group,
java.lang.String superGroup)
throws soaprmi.RemoteException
removeGroupFromSuperGroup in interface UserManagementsoaprmi.RemoteException
public void deleteGroup(java.lang.String group)
throws soaprmi.RemoteException
deleteGroup in interface UserManagementsoaprmi.RemoteException
public void deleteGroups(java.lang.String[] groups)
throws soaprmi.RemoteException
deleteGroups in interface UserManagementsoaprmi.RemoteException
public java.lang.String[] listUsersOfGroup(java.lang.String group,
boolean recurse)
throws soaprmi.RemoteException
listUsersOfGroup in interface UserManagementsoaprmi.RemoteException
public java.lang.String[] listSubGroupsOfGroup(java.lang.String group,
boolean recurse)
throws soaprmi.RemoteException
listSubGroupsOfGroup in interface UserManagementsoaprmi.RemoteException
public java.lang.String[] listGroups()
throws soaprmi.RemoteException
listGroups in interface UserManagementsoaprmi.RemoteException
public java.lang.String[] getGroups(java.lang.String user)
throws soaprmi.RemoteException
getGroups in interface UserManagementsoaprmi.RemoteException
public java.lang.String[] listUsers()
throws soaprmi.RemoteException
listUsers in interface UserManagementsoaprmi.RemoteException
public java.lang.String getUserForDN(java.lang.String name)
throws soaprmi.RemoteException
getUserForDN in interface UserManagementsoaprmi.RemoteException
public void addDNForUser(java.lang.String user,
java.lang.String dn)
throws soaprmi.RemoteException
addDNForUser in interface UserManagementsoaprmi.RemoteException
public void deleteDNForUser(java.lang.String user,
java.lang.String dn)
throws soaprmi.RemoteException
deleteDNForUser in interface UserManagementsoaprmi.RemoteException
public void deleteAllDNsForUser(java.lang.String user)
throws soaprmi.RemoteException
deleteAllDNsForUser in interface UserManagementsoaprmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||