Interface IThing
- All Superinterfaces:
Cloneable
,ICacheObjectListener
,ISortInfo
,IThingBaseInfo
,IThingBaseView
,IThingDateInfo
,IThingDateView
,IThingIDBase
,IThingInfo
,IThingInfoView
,IThingKeywordsInfo
,IThingNameInfo
,IThingNameView
,IThingNoteInfo
,IThingParentInfo
,IThingParentView
,Serializable
- All Known Subinterfaces:
IArchived
,IBizPolicyData
,ICategory
,IContainer
,IContent
,IDirServiceThing
,IFolder
,IForm
,IForum
,IGroup
,IHandlerData
,ILink
,IMechanicsData
,IMessage
,IPortlet
,IPrincipal
,IRelation
,IRole
,ISchedule
,IServiceThing
,IStyle
,ITemplate
,IThingComponentData
,ITopic
,ITopic
,IUser
,IWorkspace
,IXType
public interface IThing
extends IThingIDBase, IThingBaseInfo, IThingParentInfo, IThingDateInfo, IThingNameInfo, IThingNoteInfo, IThingInfo, IThingKeywordsInfo, ICacheObjectListener, ISortInfo, Serializable, Cloneable
This is the base thing interface.
All things must implement it.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.webmethods.portal.service.meta2.thing.IThingNameInfo
IThingNameInfo.INameAtom
-
Field Summary
FieldsFields inherited from interface com.webmethods.portal.service.meta2.thing.IThingBaseInfo
ACL_CAPABILITY, ACL_FREE, ACL_LEVEL_0, ACL_LEVEL_1, ACL_LEVEL_2, ACL_NORMAL, AUTH_LEVEL_ANONYMOUS, AUTH_LEVEL_BASIC, AUTH_LEVEL_DEFAULT, AUTH_LEVEL_FULL_ACCESS, AUTH_LEVEL_NTLM
-
Method Summary
Modifier and TypeMethodDescriptionint
addToContainer
(IThingID thingID) Add a reference to this thing to a container.copy
(IThingID idParent, IThingID idOwner, IMetaContext mc) creates a new thing under parent with that owner parent, owner, and mc must be from the same datasourcevoid
deactivate
(IThingID userID) removes the thing from the UIvoid
deactivate
(IThingID deadContainer, IThingID userID) removes the thing from the UI adds a reference in the given containervoid
removes from UI and sets time to be destroyed The next time the purger runs, this thing will be destroyed if the max age has passed.void
removes from UI and sets time to be destroyed The next time the purger runs, this thing will be destroyed if the max age has passed.void
destroy()
Destroy this thing.Returns tree path for this thing view in the form of separated dbids starting from the root folder For example 2|1001|1002|20990Get the Version Info object for this thingint
hashCode()
pre-defined hash codevoid
loadThings
(IXType xtype) This is an optimization method that allows if neccessary bulk-load data for all things of this type that belong to the specified container.void
onLoad()
Deprecated.for internal useonSave
(IThingID idParent, IThingID idOwner, IMetaContext mc) Deprecated.for internal usevoid
reactivate
(IThingID userID) restores the thing to the UI This only works if the thing was deactivated, not deleted or destroyed userID becomes the owner of the thing if not nullvoid
Relate one thing to another.void
removeFromContainer
(IThingID thingID) Removes a reference to this thing from a container.setProperties
(Map<String, ?> map) sets properties in a single SQL call (per class) returns map of changed values (for events)setXTypeID
(int xtype) sets the xtype.void
Remove a relationship from one thing to another.Methods inherited from interface com.webmethods.portal.service.cache.ICacheObjectListener
evictCallback, refreshCallback
Methods inherited from interface com.webmethods.portal.service.meta2.storage.ISortInfo
getSortID, putSortInfo, setSortID
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingBaseInfo
putIsVersioned, putState, putThingInfo, setThingInfo
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingBaseView
getAuthLevel, getIsVersioned, getOwnerID, getState, getStyleID
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingDateInfo
putDates, setModified, setModified
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingDateView
getCreationDate, getLastModifiedDate
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingIDBase
getDbID, getTypeID, getXTypeID
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingInfo
putInfo, setInfo
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingInfoView
getInfo
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingKeywordsInfo
getKeywords, putKeywords, setKeywords
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingNameInfo
getAllLanguages, getDescription, getName, getNames, getThingLang, putNameDesc, setDescription, setDescription, setName, setName, setNameDesc
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingNameView
getDescription, getName
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingNoteInfo
addNote, getNotes, removeNote
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingParentInfo
putParentID, setParentID
Methods inherited from interface com.webmethods.portal.service.meta2.thing.IThingParentView
getParentID
-
Field Details
-
INVALID_ID
Deprecated.just use null
-
-
Method Details
-
deactivate
removes the thing from the UI adds a reference in the given container- Parameters:
deadContainer
- container to move thing touserID
- performing action- Throws:
MetaException
-
deactivate
removes the thing from the UI- Parameters:
userID
- performing action- Throws:
MetaException
-
reactivate
restores the thing to the UI This only works if the thing was deactivated, not deleted or destroyed userID becomes the owner of the thing if not null- Parameters:
userID
-- Throws:
MetaException
-
delete
removes from UI and sets time to be destroyed The next time the purger runs, this thing will be destroyed if the max age has passed.- Parameters:
maxAge
- in millisdeadContainer
- - put a reference in this containeruserID
- - user deleting thing- Throws:
MetaException
-
delete
removes from UI and sets time to be destroyed The next time the purger runs, this thing will be destroyed if the max age has passed.- Parameters:
maxAge
- in millisuserID
- - user deleting thing- Throws:
MetaException
-
destroy
Destroy this thing. May have side-effects. can throw exception if item is "eternal" item will remove all content, subscriptions, relationships, primary children associated with this thing- Throws:
MetaException
-
setXTypeID
sets the xtype. Note that this effective changes the type of the thing the xtype must be the same base type as current xtype- Returns:
- new thingID
- Throws:
MetaException
-
getVersionInfo
Get the Version Info object for this thing- Returns:
- null if not versioned
- Throws:
MetaException
-
addToContainer
Add a reference to this thing to a container. This does not affect the primary container. Use this to add things to topics, or to link an item to a folder that is not its primary container.- Parameters:
thingID
-- Returns:
- relTypeID of relation
IRelation
- Throws:
MetaException
- if container or ID not valid
-
removeFromContainer
Removes a reference to this thing from a container. This does not affect the primary container.- Throws:
MetaException
-
relate
Relate one thing to another. Can not be used to create a containment relationship.- Parameters:
relType
- Type identifier for the relationship. Must be registered via MetadataService. fFrom indicates direction of the relationship: * true means from me to the other thing * false means from the other thing to me- Throws:
MetaException
- See Also:
-
unrelate
Remove a relationship from one thing to another. Can not be used to remove a containment relationship.- Parameters:
targetID
-relType
- Type identifier for the relationship does not need to be IRelationfFrom
- indicates direction of the relationship: * true means from me to the other thing * false means from the other thing to me- Throws:
MetaException
- if target or relation is invalid- See Also:
-
onLoad
Deprecated.for internal useserialization support loads all possible data for serialization- Throws:
MetaException
-
onSave
@Deprecated IThingID onSave(IThingID idParent, IThingID idOwner, IMetaContext mc) throws MetaException Deprecated.for internal usestores all possible data as a new thing, returns new thing ID- Throws:
MetaException
-
copy
creates a new thing under parent with that owner parent, owner, and mc must be from the same datasource- Parameters:
idParent
- parent of new thingidOwner
- owner of new thingmc
- meta context of new thing- Returns:
- Throws:
MetaException
-
hashCode
int hashCode()pre-defined hash code -
setProperties
sets properties in a single SQL call (per class) returns map of changed values (for events)- Throws:
MetaException
-
getThingID
IThingID getThingID()- Returns:
- IThingID for thing
-
getTreePath
Returns tree path for this thing view in the form of separated dbids starting from the root folder For example 2|1001|1002|20990- Returns:
- Throws:
MetaException
-
loadThings
This is an optimization method that allows if neccessary bulk-load data for all things of this type that belong to the specified container. The implementation will be responsible for loading all thing type specific data.- Parameters:
containerID
-- Throws:
MetaException
-