Class 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
    Version:
    $Revision: 13092 $ $Date: 2011-05-28 18:19:06 -0300 (Sat, 28 May 2011) $
    • Constructor Detail

      • RegistrationManagementInterfaceDataProvider

        public RegistrationManagementInterfaceDataProvider()
        Default constructor
        Since:
        6.0.0
    • 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 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
      • 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 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