org.PingOO.DLAI.slave.UGM
Class EntryCreator

java.lang.Object
  |
  +--org.PingOO.DLAI.slave.UGM.EntryCreator

class EntryCreator
extends java.lang.Object

Creates components.

Since:
PingOO 2.0
Version:
2.0
Author:
Fabrice Bouyé (bouye@cur-archamps.fr)

Constructor Summary
private EntryCreator()
          Hides the constructor from the outside.
 
Method Summary
static DirectoryComponent createAlias(javax.swing.JInternalFrame parentFrame, DirectoryComponent parent, SheetLeaf[] targetArray, java.lang.String type)
          Creates a new directory component.
static DirectoryComponent createEntry(javax.swing.JInternalFrame parentFrame, DirectoryComponent parent, java.lang.String type)
          Creates a new directory component.
static DirectoryComponent createEntry(javax.swing.JInternalFrame parentFrame, java.lang.String type)
          Creates a new directory component.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

EntryCreator

private EntryCreator()
Hides the constructor from the outside.
Method Detail

createEntry

public static DirectoryComponent createEntry(javax.swing.JInternalFrame parentFrame,
                                             java.lang.String type)
Creates a new directory component.
Parameters:
parentFrame - The parent frame (for blocking purpose).
type - The type of the component to be created : DirectoryNode.USER_GROUP_CHILD, DirectoryNode.USER_SHEET_CHILD, DirectoryNode.USER_ALIAS_CHILD or DirectoryNode.ADMINISTRATOR_ALIAS_CHILD.
Returns:
The created component or null if the user cancelled the creation.

createEntry

public static DirectoryComponent createEntry(javax.swing.JInternalFrame parentFrame,
                                             DirectoryComponent parent,
                                             java.lang.String type)
Creates a new directory component.
Note : creates ony user sheet and user group.
Parameters:
parentFrame - The parent frame (for blocking purpose).
parent - The parent component of the one to be created.
type - The type of the component to be created : DirectoryNode.USER_GROUP_CHILD or DirectoryNode.USER_SHEET_CHILD.
Returns:
The created component or null if the user cancelled the creation.

createAlias

public static DirectoryComponent createAlias(javax.swing.JInternalFrame parentFrame,
                                             DirectoryComponent parent,
                                             SheetLeaf[] targetArray,
                                             java.lang.String type)
Creates a new directory component.
Note : creates ony user alias and administrator alias.
Parameters:
parentFrame - The parent frame (for blocking purpose).
parent - The parent component of the one to be created.
targetArray - An array of possible targets for the alias.
type - The type of the component to be created : DirectoryNode.USER_ALIAS_CHILD or DirectoryNode.ADMINISTRATOR_ALIAS_CHILD.
Returns:
The created component or null if the user cancelled the creation.