public interface IDataModelProvider
Provides information concerning the data model of the Cockpit project.
So far, only the custom parts of the data model can be retrieved. I.e.
the defined custom properties for each object type including the data
type and in the case of enumeration properties the value range.
The custom value range for fix enumeration properties as they occur in
some project data types (like e.g. priority and status for requirements)
can be retrieved from the data provider of the according project data
module (e.g. IRequirementDataProvider for the requirement module).
Hint: The required objectTypeID constants can be found in the
documentation of the respective object type interface (IPlan, IFolder,
IRequirement, ...). If a concrete data item (implementing ICockpitData)
is available, then the objectTypeID of this item can also be retrieved by
calling "getTypeID()" on this item.
The IDataModelProvider can be referenced directly within a
document template by its name dataModelProvider.
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllowedValuesOfCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns the value range of the data type of the specified custom
property of the specified object type.
|
java.util.List<java.lang.String> |
getCategoryIDsForObjectType(java.lang.String objectTypeID)
Returns the ids of all categories of an object type.
|
java.util.List<java.lang.String> |
getCustomPropertiesForObjectTypeCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
Returns the ids of all custom properties of the specified object type
that are visible for the specified category.
|
java.util.List<java.lang.String> |
getCustomPropertyIdsForObjectType(java.lang.String objectTypeID)
Returns a list with the IDs of all custom properties of the specified
object type.
|
java.lang.String |
getDatatypeDisplaynameOfProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns the display name of the data type of the specified custom
property of the specified object type.
|
java.lang.String |
getDatatypeIDOfProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns the data type id of the specified custom property of the
specified object type.
|
java.lang.String |
getDisplaynameOfCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
Returns the display name of a category.
|
java.lang.String |
getDisplaynameOfProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns the displayname of the specified custom property of the
specified object type.
|
java.lang.String |
getIconOfCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
Returns the icon of a category.
|
boolean |
hasCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
Returns whether an object type has a specific category.
|
boolean |
hasCustomProperties(java.lang.String objectTypeID)
Returns whether any custom properties are defined for the specified
object type.
|
boolean |
hasCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns whether the specified custom property is defined for the
specified object type.
|
boolean |
hasNonDefaultCategories(java.lang.String objectTypeID)
Returns whether an object type has non-default categories.
|
boolean |
isEnumerationCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns whether the specified custom property of the specified object
type is an enumeration property.
|
boolean |
isFileCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
Returns whether the specified custom property of the specified object
type is a file property.
|
boolean hasCustomProperties(java.lang.String objectTypeID)
objectTypeID - ID of the object type (see main description of
this interface)java.util.List<java.lang.String> getCustomPropertyIdsForObjectType(java.lang.String objectTypeID)
objectTypeID - ID of the object type (see main description of
this interface)boolean hasCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom propertyjava.lang.String getDisplaynameOfProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom property (as retrieved from
getCustomPropertyIdsForObjectType(String))java.lang.String getDatatypeIDOfProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom property (as retrieved from
getCustomPropertyIdsForObjectType(String))java.lang.String getDatatypeDisplaynameOfProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom property (as retrieved from
getCustomPropertyIdsForObjectType(String))boolean isFileCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom property (as retrieved from
getCustomPropertyIdsForObjectType(String))boolean isEnumerationCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom property (as retrieved from
getCustomPropertyIdsForObjectType(String))java.util.List<java.lang.String> getAllowedValuesOfCustomProperty(java.lang.String objectTypeID,
java.lang.String propertyTypeID)
isEnumerationCustomProperty(String, String))objectTypeID - ID of the object type (see main description of
this interface)propertyTypeID - ID of the custom property (as retrieved from
getCustomPropertyIdsForObjectType(String))java.util.List<java.lang.String> getCategoryIDsForObjectType(java.lang.String objectTypeID)
objectTypeID - ID of the object type (see main description of
this interface)java.lang.String getDisplaynameOfCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
objectTypeID - objectTypeID ID of the object type (see main
description of this interface)categoryID - the category IDjava.lang.String getIconOfCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
objectTypeID - objectTypeID ID of the object type (see main
description of this interface)categoryID - the category IDboolean hasNonDefaultCategories(java.lang.String objectTypeID)
objectTypeID - ID of the object type (see main description of
this interface)boolean hasCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
objectTypeID - ID of the object type (see main description of
this interface)categoryID - the category IDjava.util.List<java.lang.String> getCustomPropertiesForObjectTypeCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
objectTypeID - ID of the object type (see main description of
this interface)categoryID - the category ID