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