Package com.polarion.alm.tracker.model
Interface IWithLinkedOslcResources
- All Superinterfaces:
IAdaptable,IChangeListener,IHasCustomValues,IHasValues,IPObject,IUniqueObject,IWorkflowObject
- Since:
- 3.17.2
-
Field Summary
FieldsFields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECTFields inherited from interface com.polarion.alm.tracker.model.IWorkflowObject
KEY_STATUS, KEY_TYPE, KEY_WORKFLOW_SIGNATURES -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLinkedOslcResource(URI uri, IEnumOption role, String label) Adds the OSLC link.Returns the collection ofILinkedOslcResourceStructstructures contained in this item.getLinkedOslcResourceStruct(URI uri, IEnumOption role) get the existing OSLC link struct.booleanremoveLinkedOslcResource(URI uri, IEnumOption role) Removes the OSLC link based on URI and role regardless of revision.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adaptMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomFieldMethods inherited from interface com.polarion.platform.persistence.model.IPObject
copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, updateMethods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProjectIdMethods inherited from interface com.polarion.alm.tracker.model.IWorkflowObject
can, getAvailableActions, getInitialAction, getProject, getStatus, getTrackerService, getType, getUnavailableActions, getWorkflowSignatures, getWorkflowSignaturesManager, performAction, resetWorkflow, setType
-
Field Details
-
KEY_LINKED_OSLC_RESOURCES
- Since:
- 3.10.1
- See Also:
-
-
Method Details
-
addLinkedOslcResource
Adds the OSLC link. If the link already exists, it will NOT add another one. Links are the same, when URI and link role are equal.- Parameters:
uri- The URI of the OSLC link.role- The role of the OSLC link.label- The label (can benull).- Returns:
trueif a link was added.- Since:
- 3.10.1
-
getLinkedOslcResourceStruct
@Nullable ILinkedOslcResourceStruct getLinkedOslcResourceStruct(@NotNull URI uri, @NotNull IEnumOption role) get the existing OSLC link struct.- Parameters:
uri- The URI of the OSLC link.role- The role of the OSLC link.- Returns:
ILinkedOslcResourceStructlink struct.- Since:
- 3.22.1
-
getLinkedOslcResourcesStructs
Returns the collection ofILinkedOslcResourceStructstructures contained in this item.- Since:
- 3.10.1
-
removeLinkedOslcResource
Removes the OSLC link based on URI and role regardless of revision. Does nothing, if there is no such link.- Parameters:
uri- The URI of the OSLC link.role- The role of the OSLC link.- Returns:
trueif the link was removed- Since:
- 3.10.1
-