Package com.polarion.alm.tracker.model
Interface IWithLinkedOslcResources
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,IPObject
,IUniqueObject
,IWorkflowObject
- Since:
- 3.17.2
-
Field Summary
Fields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT
Fields inherited from interface com.polarion.alm.tracker.model.IWorkflowObject
KEY_STATUS, KEY_TYPE, KEY_WORKFLOW_SIGNATURES
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addLinkedOslcResource
(URI uri, IEnumOption role, String label) Adds the OSLC link.Returns the collection ofILinkedOslcResourceStruct
structures contained in this item.getLinkedOslcResourceStruct
(URI uri, IEnumOption role) get the existing OSLC link struct.boolean
removeLinkedOslcResource
(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
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods 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, update
Methods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProjectId
Methods 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:
true
if 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:
ILinkedOslcResourceStruct
link struct.- Since:
- 3.22.1
-
getLinkedOslcResourcesStructs
Returns the collection ofILinkedOslcResourceStruct
structures 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:
true
if the link was removed- Since:
- 3.10.1
-