public interface IThing extends IThingIDBase, IThingBaseInfo, IThingParentInfo, IThingDateInfo, IThingNameInfo, IThingNoteInfo, IThingInfo, IThingKeywordsInfo, ICacheObjectListener, ISortInfo, Serializable, Cloneable
IThingID
,
IThingService
IThingNameInfo.INameAtom
Modifier and Type | Field and Description |
---|---|
static IThingID |
INVALID_ID
Deprecated.
just use null
|
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
Modifier and Type | Method and Description |
---|---|
int |
addToContainer(IThingID thingID)
Add a reference to this thing to a container.
|
IThingID |
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 datasource
|
void |
deactivate(IThingID userID)
removes the thing from the UI
|
void |
deactivate(IThingID deadContainer,
IThingID userID)
removes the thing from the UI
adds a reference in the given container
|
void |
delete(long maxAge,
IThingID userID)
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 |
delete(long maxAge,
IThingID deadContainer,
IThingID userID)
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.
|
IThingID |
getThingID() |
IURI |
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
|
IVersionInfo |
getVersionInfo()
Get the Version Info object for this thing
|
int |
hashCode()
pre-defined hash code
|
void |
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 use
|
IThingID |
onSave(IThingID idParent,
IThingID idOwner,
IMetaContext mc)
Deprecated.
for internal use
|
void |
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 null
|
void |
relate(IThingID thingID2,
boolean fFrom,
int relType)
Relate one thing to another.
|
void |
removeFromContainer(IThingID thingID)
Removes a reference to this thing from a container.
|
DifferenceMap |
setProperties(Map<String,?> map)
sets properties in a single SQL call (per class)
returns map of changed values (for events)
|
IThingID |
setXTypeID(int xtype)
sets the xtype.
|
void |
unrelate(IThingID targetID,
boolean fFrom,
int relType)
Remove a relationship from one thing to another.
|
getDbID, getTypeID, getXTypeID
putIsVersioned, putState, putThingInfo, setThingInfo
getAuthLevel, getIsVersioned, getOwnerID, getState, getStyleID
putParentID, setParentID
getParentID
putDates, setModified, setModified
getCreationDate, getLastModifiedDate
getAllLanguages, getDescription, getName, getNames, getThingLang, putNameDesc, setDescription, setDescription, setName, setName, setNameDesc
getDescription, getName
addNote, getNotes, removeNote
putInfo, setInfo
getInfo
getKeywords, putKeywords, setKeywords
evictCallback, refreshCallback
getSortID, putSortInfo, setSortID
@Deprecated static final IThingID INVALID_ID
void deactivate(IThingID deadContainer, IThingID userID) throws MetaException
deadContainer
- container to move thing touserID
- performing actionMetaException
void deactivate(IThingID userID) throws MetaException
userID
- performing actionMetaException
void reactivate(IThingID userID) throws MetaException
userID
- MetaException
void delete(long maxAge, IThingID deadContainer, IThingID userID) throws MetaException
maxAge
- in millisdeadContainer
- - put a reference in this containeruserID
- - user deleting thingMetaException
void delete(long maxAge, IThingID userID) throws MetaException
maxAge
- in millisuserID
- - user deleting thingMetaException
void destroy() throws MetaException
MetaException
IThingID setXTypeID(int xtype) throws MetaException
MetaException
IVersionInfo getVersionInfo() throws MetaException
MetaException
int addToContainer(IThingID thingID) throws MetaException
thingID
- IRelation
MetaException
- if container or ID not validvoid removeFromContainer(IThingID thingID) throws MetaException
MetaException
void relate(IThingID thingID2, boolean fFrom, int relType) throws MetaException
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 meMetaException
IRelation
,
IRelationService
void unrelate(IThingID targetID, boolean fFrom, int relType) throws MetaException
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 meMetaException
- if target or relation is invalidIRelation
,
IRelationService
@Deprecated void onLoad() throws MetaException
MetaException
@Deprecated IThingID onSave(IThingID idParent, IThingID idOwner, IMetaContext mc) throws MetaException
MetaException
IThingID copy(IThingID idParent, IThingID idOwner, IMetaContext mc) throws MetaException
idParent
- parent of new thingidOwner
- owner of new thingmc
- meta context of new thingMetaException
DifferenceMap setProperties(Map<String,?> map) throws MetaException
MetaException
IThingID getThingID()
IURI getTreePath() throws MetaException
MetaException
void loadThings(IXType xtype) throws MetaException
containerID
- MetaException