|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.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 java.lang.Class |
GROUP_ENTITY_TYPE
|
static java.lang.Class |
LEAF_ENTITY_TYPE
|
static int |
NULL_TYPE_ID
|
Method Summary | |
void |
addEntityTypeIfNecessary(java.lang.Class newType,
java.lang.String description)
Check if we have the type in our cache. |
static void |
addIfNecessary(java.lang.Class newType,
java.lang.String description)
Add the new type if it does not already exist. |
void |
deleteEntityType(java.lang.Class type)
Synchronize on update lock to serialize adds, deletes and updates while letting reads proceed. |
java.util.Iterator |
getAllEntityTypeIDs()
|
java.util.Iterator |
getAllEntityTypes()
|
static java.lang.String |
getDescriptiveName(java.lang.Class type)
Interface to the entity types cache. |
java.lang.String |
getDescriptiveNameForType(java.lang.Class type)
Interface to the entity types cache. |
java.lang.Integer |
getEntityIDFromType(java.lang.Class type)
Interface to the entity types cache. |
static java.lang.Class |
getEntityType(java.lang.Integer typeID)
Interface to the entity types cache. |
java.lang.Class |
getEntityTypeFromID(java.lang.Integer id)
Interface to the entity types cache. |
static java.lang.Integer |
getEntityTypeID(java.lang.Class type)
Interface to the entity types cache. |
static void |
refresh()
Interface to the entity types cache. |
void |
setEntityTypesByID(java.util.Map m)
|
void |
setEntityTypesByType(java.util.Map m)
|
static EntityTypes |
singleton()
|
void |
updateEntityType(java.lang.Class type,
java.lang.String newDescription)
Synchronize on update lock to serialize adds, deletes and updates while letting reads proceed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int NULL_TYPE_ID
public static java.lang.Class GROUP_ENTITY_TYPE
public static java.lang.Class LEAF_ENTITY_TYPE
Method Detail |
public static void addIfNecessary(java.lang.Class newType, java.lang.String description) throws java.lang.Exception
java.lang.Exception
public void addEntityTypeIfNecessary(java.lang.Class newType, java.lang.String description) throws java.lang.Exception
java.lang.Exception
public void deleteEntityType(java.lang.Class type) throws java.sql.SQLException
java.sql.SQLException
public java.util.Iterator getAllEntityTypeIDs()
public java.util.Iterator getAllEntityTypes()
public static java.lang.String getDescriptiveName(java.lang.Class type)
public java.lang.String getDescriptiveNameForType(java.lang.Class type)
public java.lang.Integer getEntityIDFromType(java.lang.Class type)
public static java.lang.Class getEntityType(java.lang.Integer typeID)
public java.lang.Class getEntityTypeFromID(java.lang.Integer id)
public static java.lang.Integer getEntityTypeID(java.lang.Class type)
public static void refresh()
public void setEntityTypesByID(java.util.Map m)
public void setEntityTypesByType(java.util.Map m)
public static EntityTypes singleton()
public void updateEntityType(java.lang.Class type, java.lang.String newDescription) throws java.lang.Exception
java.lang.Exception
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |