/** * Sets the value of this property as either shared or * individual value.<p> * * If the given type equals {@link CmsProperty#TYPE_SHARED} then * the value is set as a shared (resource) value, otherwise it * is set as individual (structure) value.<p> * * @param value the value to set * @param type the value type to set */ public void setValue(String value, String type) { checkFrozen(); setAutoCreatePropertyDefinition(true); if (TYPE_SHARED.equalsIgnoreCase(type)) { // set the provided value as shared (resource) value setResourceValue(value); } else { // set the provided value as individual (structure) value setStructureValue(value); } }
/** * Sets the value of this property as either shared or * individual value.<p> * * If the given type equals {@link CmsProperty#TYPE_SHARED} then * the value is set as a shared (resource) value, otherwise it * is set as individual (structure) value.<p> * * @param value the value to set * @param type the value type to set */ public void setValue(String value, String type) { checkFrozen(); setAutoCreatePropertyDefinition(true); if (TYPE_SHARED.equalsIgnoreCase(type)) { // set the provided value as shared (resource) value setResourceValue(value); } else { // set the provided value as individual (structure) value setStructureValue(value); } }
property.setResourceValue(m_propertyValue); } else {
property.setResourceValue(m_propertyValue); } else {
property.setResourceValue(m_propertyValue); } else {
property.setResourceValue(resolver.resolveMacros(property.getResourceValue()));
property.setResourceValue(resolver.resolveMacros(property.getResourceValue()));
if ((attrib != null) && attrib.getValue().equals(A_CmsImport.N_PROPERTY_ATTRIB_TYPE_SHARED)) { property.setResourceValue(value); } else {
if ((attrib != null) && attrib.getValue().equals(A_CmsImport.N_PROPERTY_ATTRIB_TYPE_SHARED)) { property.setResourceValue(value); } else {
case CmsProperty.RESOURCE_RECORD_MAPPING: property.setResourceValue(propertyValue); break; default: property.setResourceValue(null); break; case CmsProperty.RESOURCE_RECORD_MAPPING: property.setResourceValue(propertyValue); break; default:
if (currentProperty.getStructureValue() != null) { currentProperty.setStructureValue(CmsProperty.DELETE_VALUE); currentProperty.setResourceValue(null); writeProperty = true; } else if (currentProperty.getResourceValue() != null) { currentProperty.setResourceValue(CmsProperty.DELETE_VALUE); currentProperty.setStructureValue(null); writeProperty = true; currentProperty.setResourceValue(null); } else { currentProperty.setResourceValue(propValue); currentProperty.setStructureValue(null); currentProperty.setResourceValue(null); } else { currentProperty.setResourceValue(propValue); currentProperty.setStructureValue(null);
property.setStructureValue(propertyValue); } else if (mappingType == CmsProperty.RESOURCE_RECORD_MAPPING) { property.setResourceValue(propertyValue); } else { throw new CmsDbConsistencyException(Messages.get().container(
newProp.setStructureValue(propertyValue); } else { newProp.setResourceValue(propertyValue); newProp.setResourceValue(oldProp.getResourceValue()); } else { newProp.setResourceValue(propertyValue);
} else if (mappingType == CmsProperty.RESOURCE_RECORD_MAPPING) { property.setResourceValue(propertyValue); } else { throw new CmsDbConsistencyException(
currentProperty.setResourceValue(null); } else { currentProperty.setResourceValue(currentPropertyValue); currentProperty.setResourceValue(null); } else { currentProperty.setResourceValue(currentPropertyValue);
currentProperty.setResourceValue(null); } else { currentProperty.setResourceValue(currentPropertyValue); currentProperty.setResourceValue(null); } else { currentProperty.setResourceValue(currentPropertyValue);
newProp.setStructureValue(propertyValue); } else { newProp.setResourceValue(propertyValue); newProp.setResourceValue(oldProp.getResourceValue()); } else { newProp.setResourceValue(propertyValue);
property.setStructureValue(propertyValue); } else if (mappingType == CmsProperty.RESOURCE_RECORD_MAPPING) { property.setResourceValue(propertyValue); } else { throw new CmsDbConsistencyException(
newProp.setStructureValue(propertyValue); } else { newProp.setResourceValue(propertyValue); newProp.setResourceValue(oldProp.getResourceValue()); } else { newProp.setResourceValue(propertyValue);
newProp.setStructureValue(propertyValue); } else { newProp.setResourceValue(propertyValue); newProp.setResourceValue(oldProp.getResourceValue()); } else { newProp.setResourceValue(propertyValue);