public interface IComponent extends IComponentHandle, IAuditable
Feature access profile values:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INITIAL_BASELINE_NAME
Name of the initial baseline.
|
static java.lang.String |
INITIAL_BASELINE_PROPERTY
The initial baseline property.
|
static IItemType |
ITEM_TYPE
Component item type.
|
static java.lang.String |
NAME_PROPERTY
The name property.
|
static java.lang.String |
ROOT_FOLDER_PROPERTY
The root folder property.
|
MERGE_PREDECESSOR_STATE_PROPERTY, PREDECESSOR_STATE_PROPERTY
CONTEXT_ID_PROPERTY, ITEM_ID_PROPERTY, MAX_LARGE_STRING_BYTES, MAX_MEDIUM_STRING_BYTES, MAX_SMALL_STRING_BYTES, MODIFIED_BY_PROPERTY, MODIFIED_PROPERTY, STATE_ID_PROPERTY
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomAttributes()
Get custom attributes.
|
IBaselineHandle |
getInitialBaseline()
Returns the initial baseline of this component.
|
java.lang.String |
getName()
Returns the component name.
|
IFolderHandle |
getRootFolder()
Returns the root folder of this component.
|
getMergePredecessorState, getPredecessorState
isNewItem
getContextId, getItemHandle, getModifiedBy, getRedactedCopy, getRequestedModified, getRequestedStateId, getStateHandle, getWorkingCopy, hasHistory, isComplete, isPropertySet, isRedactedCopy, isWorkingCopy, modified, setContextId, setRequestedModified, setRequestedStateId
equals, getAdapter, getFullState, getItemId, getItemType, getOrigin, getStateId, hasFullState, hasStateId, isAuditable, isConfigurationAware, isImmutable, isSimple, isUnmanaged, makeImmutable, protect, sameItemId, sameStateId, size
static final IItemType ITEM_TYPE
static final java.lang.String NAME_PROPERTY
getName()
static final java.lang.String ROOT_FOLDER_PROPERTY
getRootFolder()
static final java.lang.String INITIAL_BASELINE_PROPERTY
getInitialBaseline()
static final java.lang.String INITIAL_BASELINE_NAME
java.lang.String getName()
null
IFolderHandle getRootFolder()
The party that initially creates the component's root folder (in some workspace) is responsible for recording it with the component.
TODO Issue: In the world of siloed components, the root folder for a
component exists in the initial configuration. If two parties each add
the same new component to separate workspaces (in separate repos) using
addComponent(IComponent)
, we need to ensure that they
both end up with the same root folder item. Otherwise, the two components
will never be commensurable, and change sets that work for one may not
work for the other. The solution is to assign a root folder item id at
component creation time; i.e., in the implementation of
IItemFactory.createComponent(IAudtiable,String)
, or,
better still, in the EMF factory method so that we can initialize
components created by IItemFactory.createAuditable
.
null
if noneIBaselineHandle getInitialBaseline()
null
)java.util.Map<java.lang.String,java.lang.Object> getCustomAttributes()
null
.