public interface IXTypeService
IXType
typeID: int value of base typeIXType
,
ITypeService
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVED
archived xtype
|
static String |
BASIC
basic xtype
|
static String |
CONTENT
content xtype
|
static String |
FOLDER
folder xtype
|
static String |
FORM
form xtype
|
static String |
GROUP
group xtype
|
static String |
LINK
link xtype
|
static String |
PORTLET
porlet xtype.
|
static String |
RELATIONSHIP
relationship xtype
|
static String |
ROLE
role xtype
|
static String |
SCHEDULE
schedule xtype
|
static String |
SERVICE
service xtype
|
static String |
STYLE
style xtype
|
static String |
SUBSCRIPTION
subscription xtype
|
static String |
TASK
Task xtype
|
static String |
TEMPLATE
template xtype
|
static String |
TOPIC
topic xtype
|
static String |
USER
user xtype
|
static String |
WORKSPACE
workspace xtype.
|
static String |
XTYPE
xtype xtype
yes indeed
|
Modifier and Type | Method and Description |
---|---|
void |
convertXType(int xtypeOld,
int xtypeNew)
converts all things of old type to new type.
|
int |
getDefaultXTypeIDForTypeID(int typeID)
gets the default xtypeID for the given typeID
|
IXType |
getXType(int xtypeID)
gets the xtype thing
|
IXType |
getXType(String xtypeName)
gets the xtype thing
|
IThingFactory |
getXTypeFactory(int xtypeID)
gets the factory for this XType
|
int |
getXTypeID(String xtypeName)
looks up XType by name
|
String |
getXTypeName(int xtypeID)
gets the name of the xtype
|
Collection<IXType> |
getXTypes()
Returns collection of all registered xtypes
|
IThingID |
getXTypesFolderID()
gets the default folder for xtypes
usually /meta/pmDB/folder/0000000029
|
IThingIDList |
getXTypesForType(int type)
gets a list of all xtypes for a given type
|
int |
getXTypeTypeID(int xtypeID)
gets the base type for the XType
|
int |
getXTypextypeID()
gets the default xtypeID of the xtype base type
This is generally the first DB call during startup, so if it fails your
system is hosed.
|
void |
invalidate()
invalidate other servers in cluster
called when an XType has been added/deleted
internal use only
|
void |
invalidateClasses(String[] classes)
invalidate other servers in cluster
called when an XType has been added/deleted
internal use only
|
boolean |
isValidXType(int xtypeID) |
boolean |
isValidXType(String xtypeName) |
IThingIDList |
listXTypeThingIDs(int xtypeID,
int begin,
int end)
List all things of that xtype
|
void |
registerXType(int basetype,
String name,
String factory,
String spDestroy)
creates a new XType
You should use
IPortletProvider to create new xtypes
internal use only |
void |
unregisterXType(int xtypeID)
removes an XType.
|
static final String BASIC
static final String FOLDER
static final String TOPIC
static final String CONTENT
static final String LINK
static final String FORM
static final String WORKSPACE
static final String TEMPLATE
static final String PORTLET
static final String USER
static final String GROUP
static final String ROLE
static final String TASK
static final String SERVICE
static final String ARCHIVED
static final String SUBSCRIPTION
static final String SCHEDULE
static final String RELATIONSHIP
static final String XTYPE
static final String STYLE
int getXTypextypeID()
int getDefaultXTypeIDForTypeID(int typeID)
int getXTypeID(String xtypeName)
boolean isValidXType(String xtypeName)
boolean isValidXType(int xtypeID)
IXType getXType(int xtypeID)
Collection<IXType> getXTypes()
String getXTypeName(int xtypeID)
xtypeID
- int getXTypeTypeID(int xtypeID)
IThingFactory getXTypeFactory(int xtypeID)
IThingIDList getXTypesForType(int type) throws MetaException
MetaException
void invalidate()
void invalidateClasses(String[] classes)
IThingIDList listXTypeThingIDs(int xtypeID, int begin, int end) throws MetaException
xtypeID
- xtype to search forbegin
- end
- -1 mean allMetaException
IThingID getXTypesFolderID()
void registerXType(int basetype, String name, String factory, String spDestroy) throws MetaException
IPortletProvider
to create new xtypes
internal use onlybasetype
- see IThingType
name
- Name of xtype, must be unique, don't recommend weird charsfactory
- Xtype factory class (NOT xtype impl) IThingFactory
spDestroy
- Called when xtype instance is destroyed (not when xtype is unregistered)MetaException
void unregisterXType(int xtypeID) throws MetaException
IPortletProvider
to remove xtypes
internal use onlyxtypeID
- to deleteMetaException
void convertXType(int xtypeOld, int xtypeNew) throws MetaException
xtypeOld
- xtypeNew
- MetaException