public class RegistrationManagementInterfaceDataProvider extends AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
IDataProvider
responsible for populating a TabularData
with
the RemoteConsumerRegistration
associated with the current producer.INTERFACE_INSTANCE_PROPERTY_FIELDS, INTERFACE_INSTANCE_PROPERTY_FILTERS, INTERFACE_INSTANCE_PROPERTY_MAX_ROWS, INTERFACE_INSTANCE_PROPERTY_ORDER_BY, MAX_NUM_ORDER_BY_FIELDS
Constructor and Description |
---|
RegistrationManagementInterfaceDataProvider()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
getTotalRows(SessionConfig sessionConfig,
TabularSource source,
ITransaction transaction)
Returns the total rows to be set on the generated tabular data.
|
protected List<lumis.service.wsrp.producer.RemoteConsumerRegistration> |
loadObjects(SessionConfig sessionConfig,
TabularSource source,
ITransaction transaction)
Loads the objects.
|
protected Object |
readProperty(lumis.service.wsrp.producer.RemoteConsumerRegistration object,
String propertyName)
Reads the property value of an object.
|
loadData
public RegistrationManagementInterfaceDataProvider()
protected List<lumis.service.wsrp.producer.RemoteConsumerRegistration> loadObjects(SessionConfig sessionConfig, TabularSource source, ITransaction transaction) throws PortalException
AbstractObjectDataProvider
loadObjects
in class AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
sessionConfig
- the user session information.source
- the source that will be populated.transaction
- the transaction for persistence access.PortalException
#getTotalRows(SessionConfig, TabularSource, ITransaction)}
protected Object readProperty(lumis.service.wsrp.producer.RemoteConsumerRegistration object, String propertyName) throws UnexpectedException
AbstractObjectDataProvider
If the propertyName is propertyName
, this method tries to read
the value from methods named getPropertyName
or isPropertyName
,
with no parameters.
readProperty
in class AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
object
- the object instance.propertyName
- the property name.UnexpectedException
- if there was an exception thrown by the accessor method.protected int getTotalRows(SessionConfig sessionConfig, TabularSource source, ITransaction transaction) throws PortalException
AbstractObjectDataProvider
If the value returned is a negative value, the total rows on the tabular data is not set. This is the default implementation.
getTotalRows
in class AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
sessionConfig
- the user session information.source
- the source that will be populated.transaction
- the transaction for persistence access.PortalException
LumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.