org.gxos
Class Collections

java.lang.Object
  |
  +--org.gxos.Collections

public class Collections
extends java.lang.Object

Provides necessary methods for collection management such as collection creation and initialization.

$Id: Collections.java,v 1.4 2001/04/24 21:03:42 balsoy Exp $


Constructor Summary
Collections()
           
 
Method Summary
static Collection createAdmin(TreeObject root)
           
static Collection createCapabilities(TreeObject root)
           
static Collection createCollection(TreeObject parent, java.lang.String name)
          Returns an empty collection with default values set.
static Collection createDevices(TreeObject root)
           
static Collection createDocuments(TreeObject root)
           
static Collection createEvents(TreeObject root)
           
static Collection createMultimedia(TreeObject root)
           
static Collection createRootObject(java.lang.String rootName)
          Returns an empty root collection with default values set.
static Collection createUsers(TreeObject root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collections

public Collections()
Method Detail

createCollection

public static Collection createCollection(TreeObject parent,
                                          java.lang.String name)

Returns an empty collection with default values set. Its NodeTypeNodeTypeType.COLLECTION. NodeRooting is set to NoteRootingType.INTERNALNODE.

If the parent is given, then newly created collection is added to the parent's child list as well.

Parameters:
parent - Parent object of this newly created collection.
name - Name of this collection.

createRootObject

public static Collection createRootObject(java.lang.String rootName)

Returns an empty root collection with default values set. Its NodeType is set to NodeTypeType.ROOTCONTEXT. NodeRooting is set to NoteRootingType.ROOT.

Root collections do not require a parent object.

Parameters:
name - Name of the root collection.

createCapabilities

public static Collection createCapabilities(TreeObject root)

createUsers

public static Collection createUsers(TreeObject root)

createDevices

public static Collection createDevices(TreeObject root)

createDocuments

public static Collection createDocuments(TreeObject root)

createEvents

public static Collection createEvents(TreeObject root)

createAdmin

public static Collection createAdmin(TreeObject root)

createMultimedia

public static Collection createMultimedia(TreeObject root)