blob: 0409667e628d69f62a598b8abc03b29f9a58c4fd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2016 Orange.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*******************************************************************************/
package org.eclipse.om2m.flexcontainer.service;
import java.util.List;
import java.util.Map;
import org.eclipse.om2m.commons.exceptions.Om2mException;
import org.eclipse.om2m.commons.resource.CustomAttribute;
import org.eclipse.om2m.commons.resource.RequestPrimitive;
public interface FlexContainerService {
/**
* Get the most updated value of a custom attribute
*
* @param name
* name of the custom attribute
* @return the most updated value of the custom attribute
*/
public String getCustomAttributeValue(String customAttributeName) throws Om2mException;
/**
* Get the most updated values of a list of custom attributes
*
* @param customAttributeNames
* name of the custom attributes
* @return the most updated values of the custom attributes
*/
public Map<String, String> getCustomAttributeValues(List<String> customAttributeNames) throws Om2mException;
/**
* Set a new value for a customAttribute
*
* @param customAttributes
* custom attributes
* @param requestPrimitive
* request primitive
*/
public void setCustomAttributeValues(List<CustomAttribute> customAttributes, RequestPrimitive requestPrimitive)
throws Om2mException;
/**
* Retrieve the flexContainerLocation
*
* @return flexContainer location
*/
public String getFlexContainerLocation();
}