Package com.vdoc.sdk.commons.utils
Class ListsUtils
java.lang.Object
com.vdoc.sdk.commons.utils.ListsUtils
Lists utility class
Created on 21 oct. 2010
- Author:
- vmartinon TODO Not SDK ! This code must be updated for next versions
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Collection<IOptionList.IOption> getExternalListContent(IResource resource, IList iList) Gets the values for an externalIListstatic StringgetLabelFromKey(IList list, String key, String local) GetIList's option key label in specific local.static Collection<? extends IOptionList.IOption> getListValues(IList list) Get list valuesstatic Collection<? extends IOptionList.IOption> getListValues(IList list, IResource resource)
-
Method Details
-
getListValues
public static Collection<? extends IOptionList.IOption> getListValues(IList list) throws ModuleException, RemoteException, SQLException Get list values- Parameters:
list- the list- Returns:
- the values
- Throws:
ModuleException- on errorRemoteException- on errorSQLException- on error
-
getLabelFromKey
GetIList's option key label in specific local.- Parameters:
list- the source listkey- the option keylocal- once ofICatalog's local- Returns:
- the label
-
getListValues
public static Collection<? extends IOptionList.IOption> getListValues(IList list, IResource resource) throws ModuleException, RemoteException, SQLException - Parameters:
list- the list to get valuesresource- (nullable) used in case of External list with bind- Returns:
- the list value.
- Throws:
ModuleException- on errorSQLException- on errorRemoteException- on error
-
getExternalListContent
protected static Collection<IOptionList.IOption> getExternalListContent(IResource resource, IList iList) throws PortalModuleException Gets the values for an externalIList- Parameters:
resource- the resource from which we take parameters- Throws:
PortalModuleException
-