org.eclipse.higgins.userprofile.idas.util
Class IdasUtils
java.lang.Object
org.eclipse.higgins.userprofile.idas.util.IdasUtils
- public final class IdasUtils
- extends Object
Class with helper routines for IdAS.
- Author:
- Pilipenko
getSimpleValueData
public static Object getSimpleValueData(org.eclipse.higgins.idas.api.IHasAttributes ha,
URI attribute)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
ha - IHasAttributes instanceattribute - URI to get a value from
- Returns:
- Object
- Throws:
org.eclipse.higgins.idas.api.IdASException - if some errors occurs during getting data
getSimpleValueDataAsByteBuffer
public static ByteBuffer getSimpleValueDataAsByteBuffer(org.eclipse.higgins.idas.api.IHasAttributes ha,
URI attribute)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
ha - IHasAttributes instanceattribute - URI to get a value from
- Returns:
- ByteBuffer
- Throws:
org.eclipse.higgins.idas.api.IdASException - if some errors occurs during getting data
getSimpleValueDataAsByteArray
public static byte[] getSimpleValueDataAsByteArray(org.eclipse.higgins.idas.api.IHasAttributes ha,
URI attribure)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
ha - IHasAttributes instanceattribure - URI to get a value from
- Returns:
- byte[]
- Throws:
org.eclipse.higgins.idas.api.IdASException - if some errors occurs during getting data
saveSimpleValueCollection
public static void saveSimpleValueCollection(org.eclipse.higgins.idas.api.IAttribute att,
Collection collection)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
att - IAttribute to which store values collectioncollection - values to be stored
- Throws:
org.eclipse.higgins.idas.api.IdASException - if some errors occurs during saving data
loadSimpleValueList
public static List loadSimpleValueList(org.eclipse.higgins.idas.api.IAttribute att)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
att - IAttribute from which get the values collection
- Returns:
- List
- Throws:
org.eclipse.higgins.idas.api.IdASException - if some errors occurs during getting data
loadSimpleValueSet
public static Set loadSimpleValueSet(org.eclipse.higgins.idas.api.IAttribute att)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
att - IAttribute from which get the values collection
- Returns:
- Set
- Throws:
org.eclipse.higgins.idas.api.IdASException - if some errors occurs during getting data
saveComplexValueMap
public static void saveComplexValueMap(org.eclipse.higgins.idas.api.IAttribute complexAttr,
URI keyAttr,
URI valueAttr,
Map map)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
complexAttr - attribute with complex values to which to store datakeyAttr - simple attribute in the complexAttr containing key for mapvalueAttr - simple attribute in the complexAttr containing value for mapmap - containing the data to store
- Throws:
org.eclipse.higgins.idas.api.IdASException - IdASException if any idas error occurs
loadComplexValueMap
public static Map loadComplexValueMap(org.eclipse.higgins.idas.api.IAttribute complexAttr,
URI keyAttr,
URI valueAttr)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
complexAttr - attribute with complex values from which to load datakeyAttr - simple attribute in the complexAttr containing key for mapvalueAttr - simple attribute in the complexAttr containing value for map
- Returns:
- Map with loaded data
- Throws:
org.eclipse.higgins.idas.api.IdASException - if any idas error occurs