|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.EntityTypes
public class EntityTypes
This class provides access to the entity types used by IBasicEntities
and the classes in org.jasig.portal.groups and
org.jasig.portal.concurrency.
Each type is associated with an Integer used to represent the
type in the portal data store. This class translates between the
Integer and Class values.
IBasicEntity| Field Summary | |
|---|---|
static Class |
GROUP_ENTITY_TYPE
|
static Class |
LEAF_ENTITY_TYPE
|
static int |
NULL_TYPE_ID
|
| Method Summary | |
|---|---|
void |
addEntityTypeIfNecessary(Class newType,
String description)
Check if we have the type in our cache. |
static void |
addIfNecessary(Class newType,
String description)
Add the new type if it does not already exist. |
void |
deleteEntityType(Class type)
Synchronize on update lock to serialize adds, deletes and updates while letting reads proceed. |
Iterator |
getAllEntityTypeIDs()
|
Iterator |
getAllEntityTypes()
|
static String |
getDescriptiveName(Class type)
Interface to the entity types cache. |
String |
getDescriptiveNameForType(Class type)
Interface to the entity types cache. |
Integer |
getEntityIDFromType(Class type)
Interface to the entity types cache. |
static Class |
getEntityType(Integer typeID)
Interface to the entity types cache. |
Class |
getEntityTypeFromID(Integer id)
Interface to the entity types cache. |
static Integer |
getEntityTypeID(Class type)
Interface to the entity types cache. |
static void |
refresh()
Interface to the entity types cache. |
void |
setEntityTypesByID(Map m)
|
void |
setEntityTypesByType(Map m)
|
static EntityTypes |
singleton()
|
static EntityTypes |
singleton(DataSource ds)
|
void |
updateEntityType(Class type,
String newDescription)
Synchronize on update lock to serialize adds, deletes and updates while letting reads proceed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int NULL_TYPE_ID
public static Class GROUP_ENTITY_TYPE
public static Class LEAF_ENTITY_TYPE
| Method Detail |
|---|
public static void addIfNecessary(Class newType,
String description)
throws Exception
Exception
public void addEntityTypeIfNecessary(Class newType,
String description)
throws Exception
Exception
public void deleteEntityType(Class type)
throws SQLException
SQLExceptionpublic Iterator getAllEntityTypeIDs()
public Iterator getAllEntityTypes()
public static String getDescriptiveName(Class type)
public String getDescriptiveNameForType(Class type)
public Integer getEntityIDFromType(Class type)
public static Class getEntityType(Integer typeID)
public Class getEntityTypeFromID(Integer id)
public static Integer getEntityTypeID(Class type)
public static void refresh()
public void setEntityTypesByID(Map m)
public void setEntityTypesByType(Map m)
public static EntityTypes singleton()
public static EntityTypes singleton(DataSource ds)
public void updateEntityType(Class type,
String newDescription)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||