public class SubscribersListEnumerator extends Object implements Enumerator, Serviceable, Contextualizable
Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_ametysObjectResolver
The Ametys object resolver
|
private Context |
_context
The Avalon context
|
private SmsListDAO |
_subscriberListDAO
Subscriber list DAO
|
Constructor and Description |
---|
SubscribersListEnumerator() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
void |
service(ServiceManager manager) |
private SmsListDAO _subscriberListDAO
private AmetysObjectResolver _ametysObjectResolver
public SubscribersListEnumerator()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public I18nizableText getEntry(String value) throws Exception
Enumerator
getEntry
in interface Enumerator
value
- the value.null
if not found.Exception
- if an error occurs.public Map<Object,I18nizableText> getEntries() throws Exception
Enumerator
getEntries
in interface Enumerator
Exception
- if an error occurs.