leitstand-inventory-model/src/main/java/io/leitstand/inventory/rs/ElementSettingsResource.java
@PUT
	@Path("/{element:"+UUID_PATTERN+"}/settings")
	public Response storeElementSettings(@Valid @PathParam("element") ElementId element, 
	                                     @Valid ElementSettings settings){
		
		if (isDifferent(element, settings.getElementId())) {
			throw new UnprocessableEntityException(VAL0003E_IMMUTABLE_ATTRIBUTE, 
												   "element_id", 
												   element, 
												   settings.getElementId());
		}
		
		return storeElementSettings(settings);
	}
/**
	 * Stores the general settings of the specified element.
	 * Creates a new element if the specified element does not exist.
	 * @param element the element UUID
	 * @param settings the element settings
	 * @return a created response if a new element was created, a success response if the settings of an existing element have been updated
	 */
Stores the general settings of the specified element.
Creates a new element if the specified element does not exist.
@param element the element UUID
@param settings the element settings
@return a created response if a new element was created, a success response if the settings of an existing element have been updated
Stores the general settings of the specified element . Creates a new element if the specified element does not exist . @param element the element UUID @param settings the element settings @return a created response if a new element was created a success response if the settings of an existing element have been updated
@PUT
	@Path("/{element:"+UUID_PATTERN+"}/settings")
	public Response storeElementSettings(@Valid @PathParam("element") ElementId element, 
	                                     @Valid ElementSettings settings){
		if (isDifferent(element, settings.getElementId())) {
			throw new UnprocessableEntityException(VAL0003E_IMMUTABLE_ATTRIBUTE, 
												   "element_id", 
												   element, 
												   settings.getElementId());
		}
		return storeElementSettings(settings);
	}
@ PUT @ Path ( "/{element:" + UUID_PATTERN + "}/settings" ) public Response storeElementSettings ( @ Valid @ PathParam ( "element" ) ElementId element , @ Valid ElementSettings settings ) { if ( isDifferent ( element , settings . getElementId ( ) ) ) { throw new UnprocessableEntityException ( VAL0003E_IMMUTABLE_ATTRIBUTE , "element_id" , element , settings . getElementId ( ) ) ; } return storeElementSettings ( settings ) ; }
Stores the general settings of the specified element.
Stores the general settings of the specified element .