/** * Sets the name of this property.<p> * * @param name the name of this property * * @deprecated use {@link #setName(String)} instead */ public void setKey(String name) { checkFrozen(); setName(name); }
m_timeFrameEnd = DATEFORMAT_SQL.parse(value).getTime(); } else if (PARAM_KEY_PPROPERTY_TIME.equals(key)) { m_propertyTime.setName(value); } else if (PARAM_KEY_CATEGORIES.equals(key)) { m_categories = CmsStringUtil.splitAsList(value, ','); } else if (PARAM_KEY_PPROPERTY_CATEGORIES.equals(key)) { m_propertyCategories.setName(value); } else {
m_timeFrameEnd = DATEFORMAT_SQL.parse(value).getTime(); } else if (PARAM_KEY_PPROPERTY_TIME.equals(key)) { m_propertyTime.setName(value); } else if (PARAM_KEY_CATEGORIES.equals(key)) { m_categories = CmsStringUtil.splitAsList(value, ','); } else if (PARAM_KEY_PPROPERTY_CATEGORIES.equals(key)) { m_propertyCategories.setName(value); } else if (PARAM_EXCLUDETIMERANGE.equalsIgnoreCase(key)) { setExcludeTimerange(new Boolean(value).booleanValue());
/** * Deletes a property for a file or folder.<p> * * @param resourcename the name of a resource for which the property should be deleted * @param key the name of the property * * @throws CmsException if something goes wrong * * @deprecated use <code>{@link #writePropertyObject(String, CmsProperty)}</code> instead. */ public void deleteProperty(String resourcename, String key) throws CmsException { CmsProperty property = new CmsProperty(); property.setName(key); property.setStructureValue(CmsProperty.DELETE_VALUE); writePropertyObject(resourcename, property); }
/** * Writes a property as a structure value for a file or folder.<p> * * @param resourceName the resource-name for which the property will be set * @param key the property definition name * @param value the value for the property to be set * * @throws CmsException if operation was not successful * * @deprecated use <code>{@link #writePropertyObject(String, CmsProperty)}</code> instead. */ public void writeProperty(String resourceName, String key, String value) throws CmsException { CmsProperty property = new CmsProperty(); property.setName(key); property.setStructureValue(value); writePropertyObject(resourceName, property); }
if (property == null) { property = new CmsProperty(); property.setName(m_propertyName); property.setAutoCreatePropertyDefinition(true); m_properties.put(m_propertyName, property);
if (property == null) { property = new CmsProperty(); property.setName(m_propertyName); property.setAutoCreatePropertyDefinition(true); m_properties.put(m_propertyName, property);
if (property == null) { property = new CmsProperty(); property.setName(m_propertyName); property.setAutoCreatePropertyDefinition(true); m_properties.put(m_propertyName, property);
if (property == null) { property = new CmsProperty(); property.setName(key); property.setAutoCreatePropertyDefinition(true); properties.put(key, property);
if (property == null) { property = new CmsProperty(); property.setName(key); property.setAutoCreatePropertyDefinition(true); properties.put(key, property);
/** * Writes a property for a file or folder.<p> * * @param resourcename the resource-name for which the property will be set * @param key the property-definition name * @param value the value for the property to be set * @param addDefinition flag to indicate if unknown definitions should be added * * @throws CmsException if operation was not successful * * @deprecated use <code>{@link #writePropertyObject(String, CmsProperty)}</code> instead. */ public void writeProperty(String resourcename, String key, String value, boolean addDefinition) throws CmsException { CmsProperty property = new CmsProperty(); property.setName(key); property.setStructureValue(value); property.setAutoCreatePropertyDefinition(addDefinition); writePropertyObject(resourcename, property); }
newProperty.setName(propertyDefinition); cms.writePropertyObject(cms.getRequestContext().removeSiteRoot(res.getRootPath()), newProperty); changedResources.add(res);
/** * Creates a single property object and sets the value individual or shared depending on the OpenCms settings.<p> * * @param name the name of the property * @param value the value to set * @return an initialized property object */ protected static CmsProperty createPropertyObject(String name, String value) { CmsProperty prop = new CmsProperty(); prop.setAutoCreatePropertyDefinition(true); prop.setName(name); if (OpenCms.getWorkplaceManager().isDefaultPropertiesOnStructure()) { prop.setValue(value, CmsProperty.TYPE_INDIVIDUAL); } else { prop.setValue(value, CmsProperty.TYPE_SHARED); } return prop; }
/** * Creates a single property object and sets the value individual or shared depending on the OpenCms settings.<p> * * @param name the name of the property * @param value the value to set * @return an initialized property object */ protected static CmsProperty createPropertyObject(String name, String value) { CmsProperty prop = new CmsProperty(); prop.setAutoCreatePropertyDefinition(true); prop.setName(name); if (OpenCms.getWorkplaceManager().isDefaultPropertiesOnStructure()) { prop.setValue(value, CmsProperty.TYPE_INDIVIDUAL); } else { prop.setValue(value, CmsProperty.TYPE_SHARED); } return prop; }
property.setName(key);
property.setName(key);
newProp.setName(propertyName); CmsProperty oldProp = cms.readPropertyObject(resource, propertyName, false); if (oldProp.isNullProperty()) {
newProp.setName(propertyName); CmsProperty oldProp = getCms().readPropertyObject(resourcePath, propertyName, false); if (oldProp.isNullProperty()) {
currentProperty.setName(CmsPropertyDefinition.PROPERTY_TITLE); if (OpenCms.getWorkplaceManager().isDefaultPropertiesOnStructure()) {
currentProperty.setName(CmsPropertyDefinition.PROPERTY_TITLE); if (OpenCms.getWorkplaceManager().isDefaultPropertiesOnStructure()) {