@Override
public void fillProperties(Map<String, PropertyData<?>> properties, BindingsObjectFactory objFactory,
List<String> requestedIds) {
DocumentVersion pwc = fContainer.getPwc();
// First get the properties of the container (like custom type
// properties, etc)
fContainer.fillProperties(properties, objFactory, requestedIds);
// overwrite the version specific properties (like modification date,
// user, etc.)
// and set some properties specific to the version
super.fillProperties(properties, objFactory, requestedIds);
if (FilterParser.isContainedInFilter(PropertyIds.IS_IMMUTABLE, requestedIds)) {
properties.put(PropertyIds.IS_IMMUTABLE, objFactory.createPropertyBooleanData(PropertyIds.IS_IMMUTABLE,
false));
}
// fill the version related properties
if (FilterParser.isContainedInFilter(PropertyIds.IS_LATEST_VERSION, requestedIds)) {
properties.put(PropertyIds.IS_LATEST_VERSION, objFactory.createPropertyBooleanData(
PropertyIds.IS_LATEST_VERSION, isLatestVersion()));
}
if (FilterParser.isContainedInFilter(PropertyIds.IS_MAJOR_VERSION, requestedIds)) {
properties.put(PropertyIds.IS_MAJOR_VERSION, objFactory.createPropertyBooleanData(
PropertyIds.IS_MAJOR_VERSION, fIsMajor));
}
if (FilterParser.isContainedInFilter(PropertyIds.IS_LATEST_MAJOR_VERSION, requestedIds)) {
properties.put(PropertyIds.IS_LATEST_MAJOR_VERSION, objFactory.createPropertyBooleanData(
PropertyIds.IS_LATEST_MAJOR_VERSION, isLatestMajorVersion()));
}
if (FilterParser.isContainedInFilter(PropertyIds.VERSION_SERIES_ID, requestedIds)) {
properties.put(PropertyIds.VERSION_SERIES_ID, objFactory.createPropertyIdData(
PropertyIds.VERSION_SERIES_ID, fContainer.getId()));
}
if (FilterParser.isContainedInFilter(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, requestedIds)) {
properties.put(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, objFactory.createPropertyBooleanData(
PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, fContainer.isCheckedOut()));
}
if (FilterParser.isContainedInFilter(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, requestedIds)) {
properties.put(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, objFactory.createPropertyStringData(
PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, fContainer.getCheckedOutBy()));
}
if (FilterParser.isContainedInFilter(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, requestedIds)) {
properties.put(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, objFactory.createPropertyIdData(
PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, pwc == null ? null : pwc.getId()));
}
if (FilterParser.isContainedInFilter(PropertyIds.CHECKIN_COMMENT, requestedIds)) {
properties.put(PropertyIds.CHECKIN_COMMENT, objFactory.createPropertyStringData(
PropertyIds.CHECKIN_COMMENT, fComment));
}