org.apache.jetspeed.services.registry
Class RegistryFragment

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.apache.jetspeed.services.registry.RegistryFragment
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class RegistryFragment
extends java.util.Hashtable
implements java.io.Serializable

Bean like implementation of a multi-object registry usable by Castor XML serialization

Version:
$Id: RegistryFragment.java,v 1.11 2005/03/21 18:21:44 sgala Exp $
Author:
RaphaŽl Luta
See Also:
Serialized Form

Constructor Summary
RegistryFragment()
           
 
Method Summary
 void addEntry(java.lang.String name, RegistryEntry entry)
          Add a new entry in the fragment.
 java.util.Vector getClients()
           
 java.util.Vector getControllers()
           
 java.util.Vector getControls()
           
 java.util.Vector getEntries(java.lang.String name)
           
 java.util.Vector getMedias()
           
 java.util.Vector getPortlets()
           
 java.util.Vector getSecurityEntries()
           
 java.util.Vector getSkins()
           
 boolean hasChanged()
           
 boolean isDirty()
           
 void removeEntry(java.lang.String name, java.lang.String entryName)
          Remove an existing entry in the fragment.
 void setChanged(boolean value)
          Sets the changed flag indicating wether this fragment has some changes to load
 void setClients(java.util.Vector clients)
           
 void setControllers(java.util.Vector controllers)
           
 void setControls(java.util.Vector controls)
           
 void setDirty(boolean value)
          Sets the dirty flag indicating wether this fragment has some uncommitted changes
 void setEntry(java.lang.String name, RegistryEntry entry)
          Modify an existing entry in the fragment.
 void setMedias(java.util.Vector medias)
           
 void setPortlets(java.util.Vector portlets)
           
 void setSecurityEntries(java.util.Vector securityEntries)
           
 void setSkins(java.util.Vector skins)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryFragment

public RegistryFragment()
Method Detail

isDirty

public boolean isDirty()
Returns:
true if this fragment has some unpersisted changes

setDirty

public void setDirty(boolean value)
Sets the dirty flag indicating wether this fragment has some uncommitted changes

Parameters:
value - the new dirty state for this fragment

hasChanged

public boolean hasChanged()
Returns:
true if this fragment has some persisted changes that need loading

setChanged

public void setChanged(boolean value)
Sets the changed flag indicating wether this fragment has some changes to load

Parameters:
value - the new dirty state for this fragment

getEntries

public java.util.Vector getEntries(java.lang.String name)
Parameters:
name - a valid Registry name.
Returns:
the entries stored in this Fragment that are suitable for the requested registry

addEntry

public void addEntry(java.lang.String name,
                     RegistryEntry entry)
Add a new entry in the fragment. It does not check for name duplication

Parameters:
name - a valid Registry name.
entry - the entry to add

removeEntry

public void removeEntry(java.lang.String name,
                        java.lang.String entryName)
Remove an existing entry in the fragment.

Parameters:
name - a valid Registry name.
entryName - the name of the entry to remove

setEntry

public void setEntry(java.lang.String name,
                     RegistryEntry entry)
Modify an existing entry in the fragment.

Parameters:
name - a valid Registry name.
entry - the entry to add

getPortlets

public java.util.Vector getPortlets()

setPortlets

public void setPortlets(java.util.Vector portlets)

getControls

public java.util.Vector getControls()

setControls

public void setControls(java.util.Vector controls)

getControllers

public java.util.Vector getControllers()

setControllers

public void setControllers(java.util.Vector controllers)

getMedias

public java.util.Vector getMedias()

setMedias

public void setMedias(java.util.Vector medias)

getSkins

public java.util.Vector getSkins()

setSkins

public void setSkins(java.util.Vector skins)

getSecurityEntries

public java.util.Vector getSecurityEntries()

setSecurityEntries

public void setSecurityEntries(java.util.Vector securityEntries)

getClients

public java.util.Vector getClients()

setClients

public void setClients(java.util.Vector clients)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.