Interface ModelObjectBase<T extends ModelObjectBase<T,R>,R extends ModelObjectReferenceBase<T,R>>
- All Superinterfaces:
CanRender<Renderer<? extends Renderer<?>>>
,HasFields
,HasReference<ModelEntityReference>
,ModelEntity
,ModelEntityBase<T,
,R> ModelObject
- All Known Subinterfaces:
Baseline
,BaselineCollection
,Category
,Document
,Plan
,Project
,RichPage
,TestRun
,TimePoint
,UpdatableBaseline
,UpdatableBaselineCollection
,UpdatableCategory
,UpdatableDocument
,UpdatableModelObjectBase<T,
,R> UpdatablePlan
,UpdatableProject
,UpdatableRichPage
,UpdatableTestRun
,UpdatableTimePoint
,UpdatableUser
,UpdatableUserGroup
,UpdatableWikiPage
,UpdatableWorkItem
,User
,UserGroup
,WikiPage
,WorkItem
public interface ModelObjectBase<T extends ModelObjectBase<T,R>,R extends ModelObjectReferenceBase<T,R>>
extends ModelEntityBase<T,R>, ModelObject, HasFields
Generic version of
ModelObject
interface. Should only be used in rare cases of generic code where unchecked cast would otherwise be needed.- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns a reference including the requested and actual revisions.Returns a reference without the requested and actual revisions, so it is much faster thanModelObject.getReference()
, because it does not have to read the actual revisions.getUpdatable
(WriteTransaction transaction) history()
Returns history of object.Methods inherited from interface com.polarion.alm.shared.api.model.ModelEntity
equals, hashCode, isUnresolvable, render, transaction
Methods inherited from interface com.polarion.alm.shared.api.model.ModelObject
can, copyFieldsTo, fields, forget, getOldApi, label, resolve
-
Method Details
-
getReferenceToCurrent
Description copied from interface:ModelObject
Returns a reference without the requested and actual revisions, so it is much faster thanModelObject.getReference()
, because it does not have to read the actual revisions.- Specified by:
getReferenceToCurrent
in interfaceModelObject
-
getReference
Description copied from interface:ModelObject
Returns a reference including the requested and actual revisions. If you are not interested in those, consider using the much fasterModelObject.getReferenceToCurrent()
method.- Specified by:
getReference
in interfaceHasReference<T extends ModelObjectBase<T,
R>> - Specified by:
getReference
in interfaceModelEntityBase<T extends ModelObjectBase<T,
R>, R extends ModelObjectReferenceBase<T, R>> - Specified by:
getReference
in interfaceModelObject
-
history
Description copied from interface:ModelObject
Returns history of object. If object is versioned (has requested revision) then history up to this revision will be returned. The history list is sorted from the oldest (coming first) to the newest (last).- Specified by:
history
in interfaceModelObject
-