|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.slave.UGM.Request
Asks question to the server by using the upper protocol.
| 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)
Adds a component in the directory tree. |
void |
changeUserPassword(UserSheet user)
Changes the user' system password. |
void |
changeWebPassword(UserSheet user)
Changes the user' web password. |
void |
copyComponent(DirectoryTree tree,
DirectoryNode parentNode,
java.lang.String name,
DirectoryComponent targetComponent)
|
AdministratorAlias |
createAdministratorAlias(DirectoryNode parentNode,
AdministratorAlias childNode)
Creates a new administrator alias. |
UserAlias |
createUserAlias(DirectoryNode parentNode,
UserAlias childNode)
Creates a new user alias. |
UserGroup |
createUserGroup(DirectoryNode parentNode,
UserGroup childNode)
Creates a new group node. |
UserSheet |
createUserSheet(DirectoryNode parentNode,
UserSheet childNode)
Creates a new user sheet. |
void |
getAttribute(DirectoryComponent component,
java.lang.String key)
Get one attribute from the server for the given object. |
java.lang.String[] |
getAvailablePrograms()
|
DirectoryTree |
getDirectoryTree()
Asks the server for a tree representation of the LDAP directory. |
int |
getMaxDepth()
Return the max depth of the tree in the data base. |
void |
moveComponent(DirectoryComponent component,
UserGroup targetNode)
Moves a component to a new node. |
void |
removeComponent(DirectoryComponent component)
Removes a component from the directory tree. |
void |
saveComponent(DirectoryComponent component)
Save a component. |
void |
saveDirectory(DirectoryComponent root)
|
void |
saveDirectory(DirectoryTree tree)
|
void |
saveDirectory(DirectoryTreeModel model)
|
void |
saveTree(DirectoryNode node)
Saves the entire tree form a given root node. |
void |
saveTree(DirectoryTree tree)
Saves the entire tree. |
void |
saveTree(DirectoryTreeModel model)
Saves the entire tree. |
void |
setAttribute(DirectoryComponent component,
java.lang.String key)
Set one attribute for the given object on the server's database. |
void |
setAttribute(DirectoryComponent component,
java.lang.String key,
java.lang.Object value)
Set one attribute for the given object on the server's database. |
void |
updateComponent(DirectoryComponent component)
Updates the content of the component. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private UpperProtocol protocol
private javax.swing.JInternalFrame parentFrame
| Constructor Detail |
public Request(UpperProtocol protocol,
javax.swing.JInternalFrame parentFrame)
protocol - The protocol to which send the requests.| Method Detail |
public java.lang.String[] getAvailablePrograms()
public DirectoryTree getDirectoryTree()
throws RequestFailedException,
PingOOProtocolException
null il he server did not return any information (but did not refused the request).public int getMaxDepth()
private DirectoryComponent addComponent(DirectoryComponent parentNode,
DirectoryComponent childNode)
throws RequestFailedException,
PingOOProtocolException
parentNode - The parent of the child.childNode - The child to add.null if insertion was refused for some reason orther thant explicit server refusal.
public UserGroup createUserGroup(DirectoryNode parentNode,
UserGroup childNode)
throws RequestFailedException,
PingOOProtocolException
parentNode - The node where to insert the new group.childNode - The group to add.null if the insertion failed (without beeing rejected by the server).
public UserSheet createUserSheet(DirectoryNode parentNode,
UserSheet childNode)
throws RequestFailedException,
PingOOProtocolException
parentNode - The node where to insert the new user sheet.childNode - The user to add.null if the insertion failed (without beeing rejected by the server).
public UserAlias createUserAlias(DirectoryNode parentNode,
UserAlias childNode)
throws RequestFailedException,
PingOOProtocolException
parentNode - The node where to insert the new user alias.childNode - The alias to add.null if the insertion failed (without beeing rejected by the server).
public AdministratorAlias createAdministratorAlias(DirectoryNode parentNode,
AdministratorAlias childNode)
throws RequestFailedException,
PingOOProtocolException
parentNode - The node where to insert the new administrator alias.childNode - The administrator to add.null if the insertion failed (without beeing rejected by the server).
public void updateComponent(DirectoryComponent component)
throws RequestFailedException,
PingOOProtocolException
component - The component to update.
public void setAttribute(DirectoryComponent component,
java.lang.String key)
throws RequestFailedException,
PingOOProtocolException
Forbidden to use to set passwords !!
component - The targeted component.key - The key of the required attribute.
public void setAttribute(DirectoryComponent component,
java.lang.String key,
java.lang.Object value)
throws RequestFailedException,
PingOOProtocolException
Forbidden to use to set passwords !!
component - The targeted component.key - The key of the required attribute.
public void getAttribute(DirectoryComponent component,
java.lang.String key)
throws RequestFailedException,
PingOOProtocolException
Forbidden to use to get passwords !!
component - The targeted component.key - The key of the required attribute.
public void removeComponent(DirectoryComponent component)
throws RequestFailedException,
PingOOProtocolException
component - The component to remove.true if the operation was successfull, false otherwise.
public void moveComponent(DirectoryComponent component,
UserGroup targetNode)
throws RequestFailedException,
PingOOProtocolException
component - The component to move.targetNode - The targeted component.
public void saveComponent(DirectoryComponent component)
throws RequestFailedException,
PingOOProtocolException
public void changeUserPassword(UserSheet user)
throws RequestFailedException,
PingOOProtocolException
user - The targeted user.
public void changeWebPassword(UserSheet user)
throws RequestFailedException,
PingOOProtocolException
user - The targeted user.
public void saveTree(DirectoryTree tree)
throws RequestFailedException,
PingOOProtocolException
tree - The tree to be saved.
public void saveTree(DirectoryTreeModel model)
throws RequestFailedException,
PingOOProtocolException
model - The tree to be saved.
public void saveTree(DirectoryNode node)
throws RequestFailedException,
PingOOProtocolException
model - The node from where save the tree.public void saveDirectory(DirectoryComponent root)
public void saveDirectory(DirectoryTreeModel model)
public void saveDirectory(DirectoryTree tree)
public void copyComponent(DirectoryTree tree,
DirectoryNode parentNode,
java.lang.String name,
DirectoryComponent targetComponent)
throws RequestFailedException,
PingOOProtocolException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||