|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxdrs_impl.hashtable.ServiceImpl
Implementation of XDRS that is based on hash table and uses XSoap for communication.
| Field Summary |
| Fields inherited from interface xdrs.XDirectoryService |
NAMESPACE, ROOT |
| Fields inherited from interface xdrs.authorization.NodeAuthorization |
ADMIN, EVERYBODY, NOBODY |
| Constructor Summary | |
ServiceImpl()
|
|
| Method Summary | |
void |
addDNForUser(java.lang.String someOldDN,
java.lang.String newDn)
|
void |
addGroup(java.lang.String group,
java.lang.String superGroup)
|
void |
addGroupToSuperGroup(java.lang.String group,
java.lang.String superGroup)
|
void |
addNode(java.lang.String pathToDir,
org.gjt.xpp.XmlNode node)
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 |
copyNode(java.lang.String sourcePath,
java.lang.String tagetPath)
|
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 dn)
|
void |
deleteGroups(java.lang.String[] dn)
|
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 dn)
|
void |
deleteUsers(java.lang.String[] dn)
|
org.gjt.xpp.XmlNode[] |
getChildrenWithoutHtml(java.lang.String pathNode)
Get list of XML nodes that are contained inside directory. |
java.lang.String[] |
getGroups(java.lang.String userName)
|
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 |
getOwner(java.lang.String path)
|
java.lang.String[] |
getPermissions(java.lang.String path)
|
java.lang.String |
getReadOnlyGroup(java.lang.String pathToNode)
|
java.lang.String |
getReadWriteGroup(java.lang.String pathToNode)
|
java.lang.String |
getUserForDN()
|
java.lang.String |
getUserForDN(java.lang.String dn)
|
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)
|
void |
modifyNode(java.lang.String path,
org.gjt.xpp.XmlNode node)
Update the values of a node, pointed to by the given path, with those in the given node. |
void |
moveNode(java.lang.String sourcePath,
java.lang.String tagetPath)
|
void |
moveNodes(java.lang.String[] sourcePaths,
java.lang.String targetPath)
Move a set of nodes from one location to another. |
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[] dns,
java.lang.String group)
|
void |
setPermissions(java.lang.String pathToDirectoryNode,
java.lang.String dnOfOwner,
java.lang.String dnOfReadWriteGroup,
java.lang.String dnOfReadOnlyGroup,
boolean recursive)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServiceImpl()
throws org.gjt.xpp.XmlPullParserException
| Method Detail |
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 org.gjt.xpp.XmlNode[] getChildrenWithoutHtml(java.lang.String pathNode)
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 addNode(java.lang.String pathToDir,
org.gjt.xpp.XmlNode node)
throws soaprmi.RemoteException
XDirectoryService
addNode in interface XDirectoryServicepathToDir - The proposed parent for the given node.node - 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 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 void copyNode(java.lang.String sourcePath,
java.lang.String tagetPath)
throws soaprmi.RemoteException
soaprmi.RemoteException
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 modifyNode(java.lang.String path,
org.gjt.xpp.XmlNode node)
throws soaprmi.RemoteException
XDirectoryService
modifyNode in interface XDirectoryServicepath - The path to the node to be modified.node - 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 void moveNode(java.lang.String sourcePath,
java.lang.String tagetPath)
throws soaprmi.RemoteException
soaprmi.RemoteException
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 java.lang.String getOwner(java.lang.String path)
throws soaprmi.RemoteException
soaprmi.RemoteException
public java.lang.String getReadWriteGroup(java.lang.String pathToNode)
throws soaprmi.RemoteException
soaprmi.RemoteException
public java.lang.String getReadOnlyGroup(java.lang.String pathToNode)
throws soaprmi.RemoteException
soaprmi.RemoteException
public void setPermissions(java.lang.String pathToDirectoryNode,
java.lang.String dnOfOwner,
java.lang.String dnOfReadWriteGroup,
java.lang.String dnOfReadOnlyGroup,
boolean recursive)
throws soaprmi.RemoteException
setPermissions in interface NodeAuthorizationsoaprmi.RemoteException
public void createUser(java.lang.String user,
java.lang.String dn)
throws soaprmi.RemoteException
createUser in interface UserManagementsoaprmi.RemoteException
public java.lang.String getUserForDN(java.lang.String dn)
throws soaprmi.RemoteException
getUserForDN 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 addGroup(java.lang.String group,
java.lang.String superGroup)
throws soaprmi.RemoteException
soaprmi.RemoteException
public void deleteUser(java.lang.String dn)
throws soaprmi.RemoteException
deleteUser in interface UserManagementsoaprmi.RemoteException
public void deleteUsers(java.lang.String[] dn)
throws soaprmi.RemoteException
deleteUsers in interface UserManagementsoaprmi.RemoteException
public void deleteGroup(java.lang.String dn)
throws soaprmi.RemoteException
deleteGroup in interface UserManagementsoaprmi.RemoteException
public void deleteGroups(java.lang.String[] dn)
throws soaprmi.RemoteException
deleteGroups 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 removeGroupFromSuperGroup(java.lang.String group,
java.lang.String superGroup)
throws soaprmi.RemoteException
removeGroupFromSuperGroup 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 removeUsersFromGroup(java.lang.String[] dns,
java.lang.String group)
throws soaprmi.RemoteException
removeUsersFromGroup 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 userName)
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()
throws soaprmi.RemoteException
soaprmi.RemoteException
public void addDNForUser(java.lang.String someOldDN,
java.lang.String newDn)
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
public java.lang.String[] getPermissions(java.lang.String path)
throws soaprmi.RemoteException
soaprmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||