Package com.polarion.alm.projects.model
Interface IProject
- All Superinterfaces:
IAdaptable
,IChangeListener
,IGroupEntity
,IHasCustomValues
,IHasValues
,ILocatedObject
,IPObject
- All Known Subinterfaces:
ITrackerProject
IPObject
representation of the project.
Note: Projects and project groups are available as
IPObjects
so that it's easy to read them and manipulate some
of their properties. However, they encapsulate lower level objects and
therefore it's not possible to create and delete projects by the means of
standard IPObject
ways.
- Author:
- dobisekm
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.polarion.alm.projects.model.ILocatedObject
KEY_LOCATION
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getIcon()
getId()
getLead()
Returns the current location of the project folder in the repository.getName()
boolean
isActive()
void
setActive
(boolean active) void
Sets the project's background color (e.g., "#7630a1"), which is used in the navigation header for the project's icon and picker.void
setDescription
(Text description) void
Sets the path to the project's icon (e.g.void
void
void
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
can, 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
-
Field Details
-
PROTO
- See Also:
-
KEY_PROJECT_GROUP
- See Also:
-
KEY_ID
- See Also:
-
KEY_NAME
- See Also:
-
KEY_DESCRIPTION
- See Also:
-
KEY_LEAD
- See Also:
-
KEY_ACTIVE
- See Also:
-
KEY_ICON
- Since:
- 3.22.2
- See Also:
-
KEY_COLOR
- Since:
- 3.22.2
- See Also:
-
KEY_LOCK_WORK_RECORDS_DATE
- Since:
- 3.3
- See Also:
-
-
Method Details
-
getProjectGroup
IProjectGroup getProjectGroup() -
getLocation
Returns the current location of the project folder in the repository. (The revision of this project instance is ignored.)Note that
getValue(IGroupEntity.KEY_LOCATION)
does NOT return the same value. That method returns the location of theproject.xml
file, and for revision projects, it returns this location within the revision.- Specified by:
getLocation
in interfaceILocatedObject
- Returns:
- The absolute location without a revision.
-
getId
String getId() -
getName
String getName() -
setName
-
getDescription
Text getDescription() -
setDescription
-
getLead
IUser getLead() -
setLead
-
isActive
boolean isActive() -
setActive
void setActive(boolean active) -
getLockWorkRecordsDate
DateOnly getLockWorkRecordsDate()- Since:
- 3.3
-
setLockWorkRecordsDate
- Since:
- 3.3
-
setIcon
Sets the path to the project's icon (e.g. "/polarion/ria/images/topicIcons/project.svg").- Since:
- 3.22.2
-
getIcon
- Returns:
- The path to the project's icon (e.g. "/polarion/ria/images/topicIcons/project.svg").
- Since:
- 3.22.2
-
getIconOrDefault
- Returns:
- The path to the project's icon (e.g. "/polarion/ria/images/topicIcons/project.svg") or the default project's icon if the icon is not set for the project.
- Since:
- 3.22.2
-
getColorOrDefault
- Returns:
- The project's background color (e.g. "#7630a1") or the default project's color if the color is not set for the project.
- Since:
- 3.22.2
-
setColor
Sets the project's background color (e.g., "#7630a1"), which is used in the navigation header for the project's icon and picker.- Since:
- 3.22.2
-
getColor
- Returns:
- The project's background color (e.g. "#7630a1").
- Since:
- 3.22.2
-