org.jasig.portal.services
Class EntityPropertyRegistry

java.lang.Object
  extended by org.jasig.portal.services.EntityPropertyRegistry

public class EntityPropertyRegistry
extends Object

A Service to allow the querying and storing of properties relating to portal entities. Configured using /properties/EntityPropertyRegistry.xml see dtds/EntityPropertyRegistry.dtd for configuration file grammar

Version:
$Revision: 19776 $
Author:
Alex Vigdor av317@columbia.edu, Don Fracapane df7@columbia.edu Removed caching from this class and delegated it to the finder classes. Each finder can choose the method of caching if caching is appropriate.

Field Summary
protected static EntityPropertyRegistry _instance
           
protected  IEntityPropertyFinder[] finders
           
protected  Object[] finderTypes
           
protected  Class propsType
           
protected  IEntityPropertyStore store
           
protected  int storePrecedence
           
 
Constructor Summary
protected EntityPropertyRegistry()
           
 
Method Summary
 void addToCache(EntityProperties ep)
           
 void clearCache(EntityIdentifier entityID)
           
 EntityProperties getCachedProperties(EntityIdentifier entityID)
           
protected  EntityProperties getProperties(EntityIdentifier entityID)
           
static String getProperty(EntityIdentifier entityID, String name)
           
static String[] getPropertyNames(EntityIdentifier entityID)
           
protected  String getPropKey(EntityIdentifier entityID)
           
protected  void init()
           
static EntityPropertyRegistry instance()
           
static void storeProperty(EntityIdentifier entityID, String name, String value)
           
static void unStoreProperty(EntityIdentifier entityID, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

protected static EntityPropertyRegistry _instance

store

protected IEntityPropertyStore store

storePrecedence

protected int storePrecedence

finders

protected IEntityPropertyFinder[] finders

finderTypes

protected Object[] finderTypes

propsType

protected Class propsType
Constructor Detail

EntityPropertyRegistry

protected EntityPropertyRegistry()
Method Detail

init

protected void init()
             throws Exception
Throws:
Exception

instance

public static EntityPropertyRegistry instance()

getPropertyNames

public static String[] getPropertyNames(EntityIdentifier entityID)

getProperty

public static String getProperty(EntityIdentifier entityID,
                                 String name)

storeProperty

public static void storeProperty(EntityIdentifier entityID,
                                 String name,
                                 String value)

unStoreProperty

public static void unStoreProperty(EntityIdentifier entityID,
                                   String name)

getPropKey

protected String getPropKey(EntityIdentifier entityID)

getProperties

protected EntityProperties getProperties(EntityIdentifier entityID)

clearCache

public void clearCache(EntityIdentifier entityID)

addToCache

public void addToCache(EntityProperties ep)

getCachedProperties

public EntityProperties getCachedProperties(EntityIdentifier entityID)


Copyright © 2010 Jasig. All Rights Reserved.