Package lumis.service.wsrp.producer
Class RegistrationManagementInterfaceDataProvider
- java.lang.Object
-
- lumis.doui.source.AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
-
- lumis.service.wsrp.producer.RegistrationManagementInterfaceDataProvider
-
- All Implemented Interfaces:
IDataProvider<TabularSource>
public class RegistrationManagementInterfaceDataProvider extends AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
/**IDataProvider
responsible for populating aTabularData
with theRemoteConsumerRegistration
associated with the current producer.- Since:
- 6.0.0
- Version:
- $Revision: 13092 $ $Date: 2011-05-28 18:19:06 -0300 (Sat, 28 May 2011) $
-
-
Field Summary
-
Fields inherited from interface lumis.doui.source.IDataProvider
INTERFACE_INSTANCE_PROPERTY_FIELDS, INTERFACE_INSTANCE_PROPERTY_FILTERS, INTERFACE_INSTANCE_PROPERTY_MAX_ROWS, INTERFACE_INSTANCE_PROPERTY_ORDER_BY, MAX_NUM_ORDER_BY_FIELDS
-
-
Constructor Summary
Constructors Constructor Description RegistrationManagementInterfaceDataProvider()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getTotalRows(SessionConfig sessionConfig, TabularSource source, ITransaction transaction)
Returns the total rows to be set on the generated tabular data.protected java.util.List<lumis.service.wsrp.producer.RemoteConsumerRegistration>
loadObjects(SessionConfig sessionConfig, TabularSource source, ITransaction transaction)
Loads the objects.protected java.lang.Object
readProperty(lumis.service.wsrp.producer.RemoteConsumerRegistration object, java.lang.String propertyName)
Reads the property value of an object.-
Methods inherited from class lumis.doui.source.AbstractObjectDataProvider
loadData
-
-
-
-
Method Detail
-
loadObjects
protected java.util.List<lumis.service.wsrp.producer.RemoteConsumerRegistration> loadObjects(SessionConfig sessionConfig, TabularSource source, ITransaction transaction) throws PortalException
Description copied from class:AbstractObjectDataProvider
Loads the objects. The properties of the objects returned will be used to populate the source's tabular data.- Specified by:
loadObjects
in classAbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
- Parameters:
sessionConfig
- the user session information.source
- the source that will be populated.transaction
- the transaction for persistence access.- Returns:
- a list of objects with the data to populate the source.
- Throws:
PortalException
-
readProperty
protected java.lang.Object readProperty(lumis.service.wsrp.producer.RemoteConsumerRegistration object, java.lang.String propertyName) throws UnexpectedException
Description copied from class:AbstractObjectDataProvider
Reads the property value of an object.If the propertyName is
propertyName
, this method tries to read the value from methods namedgetPropertyName
orisPropertyName
, with no parameters.- Overrides:
readProperty
in classAbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
- Parameters:
object
- the object instance.propertyName
- the property name.- Returns:
- the property value or null if its accessor method could not be accessed.
- Throws:
UnexpectedException
- if there was an exception thrown by the accessor method.
-
getTotalRows
protected int getTotalRows(SessionConfig sessionConfig, TabularSource source, ITransaction transaction) throws PortalException
Description copied from class:AbstractObjectDataProvider
Returns the total rows to be set on the generated tabular data.If the value returned is a negative value, the total rows on the tabular data is not set. This is the default implementation.
- Overrides:
getTotalRows
in classAbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
- Parameters:
sessionConfig
- the user session information.source
- the source that will be populated.transaction
- the transaction for persistence access.- Returns:
- the total rows to be set on the generated tabular data, or a negative value if it should not be set.
- Throws:
PortalException
-
-