org.PingOO.DLAI.slave.MLM
Class Request
java.lang.Object
|
+--org.PingOO.DLAI.slave.MLM.Request
- public final class Request
- extends java.lang.Object
Asks question to the server by using the upper protocol.
- Since:
- PingOO 2.0
- Version:
- 2.0
- Author:
- Fabrice Bouyé (bouye@cur-archamps.fr)
|
Field Summary |
private javax.swing.JInternalFrame |
parentFrame
The parent frame. |
private UpperProtocol |
protocol
The object used to send to and receive messages from the server. |
|
Constructor Summary |
Request(UpperProtocol protocol,
javax.swing.JInternalFrame parentFrame)
Creates a new request object. |
|
Method Summary |
private DirectoryComponent |
addComponent(DirectoryComponent parentNode,
DirectoryComponent childNode)
|
void |
copyComponent(DirectoryTree tree,
DirectoryNode parentNode,
java.lang.String name,
DirectoryComponent targetComponent)
|
void |
createListGroup(DirectoryTree tree,
DirectoryNode parentNode)
Creates a new group node. |
void |
createListSheet(DirectoryTree tree,
DirectoryNode parentNode)
Creates a new user sheet. |
int |
getMaxDepth()
|
DirectoryTree |
getTree()
Asks the server for a tree representation of the LDAP directory. |
void |
move(DirectoryTree tree,
DirectoryComponent component,
DirectoryComponent targetComponent)
|
void |
remove(DirectoryTree tree,
DirectoryComponent component)
|
void |
saveComponent(DirectoryComponent component)
|
void |
saveDirectory(DirectoryComponent root)
|
void |
saveDirectory(DirectoryTree tree)
|
void |
saveDirectory(DirectoryTreeModel model)
|
void |
saveTree(DirectoryTree tree)
|
void |
updateComponent(DirectoryTree tree,
DirectoryComponent component)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
protocol
private UpperProtocol protocol
- The object used to send to and receive messages from the server.
parentFrame
private javax.swing.JInternalFrame parentFrame
- The parent frame.
Request
public Request(UpperProtocol protocol,
javax.swing.JInternalFrame parentFrame)
- Creates a new request object.
- Parameters:
protocol - The protocol to which send the requests.
getTree
public DirectoryTree getTree()
- Asks the server for a tree representation of the LDAP directory.
- Returns:
- A directory tree representation of the LDAP directory,
null il he server did not return any information.
getMaxDepth
public int getMaxDepth()
addComponent
private DirectoryComponent addComponent(DirectoryComponent parentNode,
DirectoryComponent childNode)
createListGroup
public void createListGroup(DirectoryTree tree,
DirectoryNode parentNode)
- Creates a new group node.
- Parameters:
parentNode - The node wher to insert the new group.
createListSheet
public void createListSheet(DirectoryTree tree,
DirectoryNode parentNode)
- Creates a new user sheet.
- Parameters:
parentNode - The node wher to insert the new user sheet.
updateComponent
public void updateComponent(DirectoryTree tree,
DirectoryComponent component)
remove
public void remove(DirectoryTree tree,
DirectoryComponent component)
move
public void move(DirectoryTree tree,
DirectoryComponent component,
DirectoryComponent targetComponent)
saveComponent
public void saveComponent(DirectoryComponent component)
saveTree
public void saveTree(DirectoryTree tree)
saveDirectory
public void saveDirectory(DirectoryComponent root)
saveDirectory
public void saveDirectory(DirectoryTreeModel model)
saveDirectory
public void saveDirectory(DirectoryTree tree)
copyComponent
public void copyComponent(DirectoryTree tree,
DirectoryNode parentNode,
java.lang.String name,
DirectoryComponent targetComponent)