lumis.service.wsrp.producer
Class RegistrationManagementInterfaceDataProvider

Package class diagram package RegistrationManagementInterfaceDataProvider
java.lang.Object
  extended by lumis.doui.source.AbstractObjectDataProvider<TabularSource,lumis.service.wsrp.producer.RemoteConsumerRegistration>
      extended by 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 a TabularData with the RemoteConsumerRegistration associated with the current producer.

Since:
6.0.0

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
RegistrationManagementInterfaceDataProvider()
          Default constructor
 
Method Summary
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.
 
Methods inherited from class lumis.doui.source.AbstractObjectDataProvider
loadData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationManagementInterfaceDataProvider

public RegistrationManagementInterfaceDataProvider()
Default constructor

Since:
6.0.0
Method Detail

loadObjects

protected 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 class AbstractObjectDataProvider<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
See Also:
#getTotalRows(SessionConfig, TabularSource, ITransaction)}

readProperty

protected Object readProperty(lumis.service.wsrp.producer.RemoteConsumerRegistration object,
                              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 named getPropertyName or isPropertyName, with no parameters.

Overrides:
readProperty in class AbstractObjectDataProvider<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 class AbstractObjectDataProvider<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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.