public interface IThingService extends IMetaComponent
IThingID
,
IThing
,
IThingIDService
Modifier and Type | Field and Description |
---|---|
static int |
ROOTFOLDER_DBID
db ID of root folder
(/meta/pmDB/folder/000000002)
|
static int |
ROOTTOPIC_DBID
db ID of root topic
(/meta/pmDB/topic/0000000003)
|
Modifier and Type | Method and Description |
---|---|
void |
cacheThingID(IThingID thingID)
Deprecated.
|
IThingID |
createThing(int xtypeID,
IThingID parentID,
IThingID ownerID)
Create a Thing.
|
IThingID |
createThing(String xtypeName,
IThingID parentID,
IThingID ownerID)
Create a Thing.
|
IThingID |
createThingForMigration(int xtypeID,
Integer thingID,
IThingID parentID,
IThingID ownerID)
Create a Thing.
|
IThingID |
createThingProtected(int xtypeID,
IThingID parentID,
IThingID ownerID)
creates an object in "protected" ID space so the object can never be
inadvertently deleted (below base ID)
internal use only
|
IThingID |
createVersionedThing(IThingID thingID,
String resourceID,
String versionID,
int updateType,
String updateID,
IThingID serviceID)
Creates an IVersionInfo object and attaches it to thingID
|
boolean |
exists(IThingID thingID)
Goes into the DB and verifies that this item still exists.
|
void |
flushCache(IThingID thingID)
Remove an object from the internal thing cache, if the cache is enabled.
|
void |
flushCacheAll(boolean flushRemote)
flushes (removes) all objects from internal thing cache
|
void |
flushCacheForClasses(String[] classNames,
boolean flushRemote)
Flushes objects from thing cache which names match to those specified
|
void |
flushRemoteCaches(IThingID thingID)
Remove an object from remote, synced up thing caches.
|
int |
getDbIdBase()
the base value for user-created DB objects
|
IFolder |
getRootFolder()
Get the root Folder.
|
IThingID |
getRootFolderID()
Get the root Folder ID.
|
ITopic |
getRootTopic()
Get the root Topic.
|
IThingID |
getRootTopicID()
Get the root Topic ID.
|
IThing |
getThingFromID(IThingID thingID,
boolean noArchive)
Deprecated.
|
IThing |
getThingFromIDForUpdate(IThingID thingID) |
IThingID |
getThingIDFromDbID(int dbID)
Deprecated.
|
int |
getThingState(IThingID thingID)
Deprecated.
use IThingID#getDBState
|
void |
loadThings(int xtypeID)
Bulks loads data for all things of a given xtype
|
void |
refreshLocalThingOnly(IThingID thingID) |
void |
refreshThing(IThingID thingID,
boolean refreshLocal)
sends a refresh message to thingID.
|
IThingIDList |
undeleteAllUndestroyed()
Attempts to undelete all things that are in the "undestroyed" state.
|
getMetaContext, setMetaContext
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
static final int ROOTFOLDER_DBID
static final int ROOTTOPIC_DBID
@Deprecated IThing getThingFromID(IThingID thingID, boolean noArchive)
IThingID.getThing()
thingID
- ID of objectnoArchive
- don't return an archived object@Deprecated IThingID getThingIDFromDbID(int dbID)
@Deprecated void cacheThingID(IThingID thingID)
thingID
- void flushCache(IThingID thingID)
void flushCacheAll(boolean flushRemote)
void flushCacheForClasses(String[] classNames, boolean flushRemote)
classNames
- flushRemote
- void flushRemoteCaches(IThingID thingID)
IThingIDList undeleteAllUndestroyed() throws MetaException
MetaException
void refreshThing(IThingID thingID, boolean refreshLocal)
thingID
- id of thing to refreshrefreshLocal
- true if local cache should be updatedvoid refreshLocalThingOnly(IThingID thingID)
IThingID createThing(int xtypeID, IThingID parentID, IThingID ownerID) throws MetaException
xtypeID
- xtype of new objectparentID
- parent of new type. Optional for some types, required for othersownerID
- Owner (generally principal) of object. Can be ignored for some types.MetaException
- for a variety of reasons:
createThing(int, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
IThingID createThingForMigration(int xtypeID, Integer thingID, IThingID parentID, IThingID ownerID) throws MetaException
xtypeID
- xtype of new objectthingID
- thingID of the old thingparentID
- parent of new type. Optional for some types, required for othersownerID
- Owner (generally principal) of object. Can be ignored for some types.MetaException
- for a variety of reasons:
createThing(int, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
IThingID createThing(String xtypeName, IThingID parentID, IThingID ownerID) throws MetaException
xtypeName
- xtype of new objectparentID
- parent of new type. Optional for some types, required for othersownerID
- Owner (generally principal) of object. Can be ignored for some types.MetaException
- for a variety of reasons:
createThing(int, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
IThingID createThingProtected(int xtypeID, IThingID parentID, IThingID ownerID) throws MetaException
MetaException
#getDbIdBase, #createThing
IThingID createVersionedThing(IThingID thingID, String resourceID, String versionID, int updateType, String updateID, IThingID serviceID) throws MetaException
thingID
- ID of thing to versionresourceID
- ResourceversionID
- VersionMetaException
- if thing is already versioned, thing doesn't exist,or other errorboolean exists(IThingID thingID)
thingID
- id of thing to check. Only uses dbID part@Deprecated int getThingState(IThingID thingID)
thingID
- ID of thing to check. Only uses dbIDIThingState.UNKNOWN
on errorIThingID.getDBState()
,
IThingState
IFolder getRootFolder()
IThingID getRootFolderID()
ITopic getRootTopic()
IThingID getRootTopicID()
void loadThings(int xtypeID) throws MetaException
xtypeID
- MetaException
int getDbIdBase()