Interface ModelObject
- All Superinterfaces:
CanRender<Renderer<? extends Renderer<?>>>
,HasFields
,HasReference<ModelEntityReference>
,ModelEntity
- All Known Subinterfaces:
Baseline
,BaselineCollection
,Category
,Document
,ModelObjectBase<T,
,R> Plan
,Project
,RichPage
,Script
,TestRun
,TimePoint
,UpdatableBaseline
,UpdatableBaselineCollection
,UpdatableCategory
,UpdatableDocument
,UpdatableModelObject
,UpdatableModelObjectBase<T,
,R> UpdatablePlan
,UpdatableProject
,UpdatableRichPage
,UpdatableScript
,UpdatableTestRun
,UpdatableTimePoint
,UpdatableUser
,UpdatableUserGroup
,UpdatableWikiPage
,UpdatableWorkItem
,User
,UserGroup
,WikiPage
,WorkItem
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptioncan()
copyFieldsTo
(UpdatableModelObject target) fields()
void
forget()
com.polarion.platform.persistence.model.IPObject
Returns a reference including the requested and actual revisions.Returns a reference without the requested and actual revisions, so it is much faster thangetReference()
, because it does not have to read the actual revisions.getUpdatable
(WriteTransaction transaction) IterableWithSize<? extends ModelObjectReference>
history()
Returns history of object.label()
Returns some non empty user friendly label of the object.void
resolve()
Methods inherited from interface com.polarion.alm.shared.api.model.ModelEntity
equals, hashCode, isUnresolvable, render, transaction
-
Method Details
-
getReference
Returns a reference including the requested and actual revisions. If you are not interested in those, consider using the much fastergetReferenceToCurrent()
method.- Specified by:
getReference
in interfaceHasReference<ModelEntityReference>
-
getReferenceToCurrent
Returns a reference without the requested and actual revisions, so it is much faster thangetReference()
, because it does not have to read the actual revisions. -
history
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). -
fields
-
resolve
void resolve() -
forget
void forget() -
can
- Specified by:
can
in interfaceModelEntity
- Since:
- 3.9.1
-
getOldApi
@NotNull @GwtIncompatible com.polarion.platform.persistence.model.IPObject getOldApi() -
label
Returns some non empty user friendly label of the object. It does not throw exception when the object is unresolvable or user has no permission to read it, but instead just returns the id.- Since:
- 3.9.2
-