Class AbstractPrivilegedRelationDataProvider

java.lang.Object
ch.tocco.nice2.netui.spi.bind.AbstractPrivilegedRelationDataProvider
All Implemented Interfaces:
CustomDataProvider
Direct Known Subclasses:
MembershipAdministrationAddressPrivilegedCustomDataProvider, MembershipAdministrationUserNrCustomDataProviderPrivileged, MembershipAdministrationUserPrivilegedCustomDataProvider

@Deprecated public abstract class AbstractPrivilegedRelationDataProvider extends Object implements CustomDataProvider
Deprecated.
This class can be extended to create a CustomDataProvider which runs in privileged mode. This can be useful to enhance the performance by avoiding the processing of heavy acl rules. This class only should be used if performance is a problem and if it doesn't matter whether the acl rules for the specific relation are being processed or not. Usage example: If you have read access on licences, then you have read access on the related users anyway and it's unnecessary to check that again. Then you could use this class to get the default display of the user.
  • Constructor Details

  • Method Details

    • getDefaultDisplayOfRelation

      public CustomDataValue<String> getDefaultDisplayOfRelation(Entity entity, String relationPath)
      Deprecated.
      Returns the default display of an entity related to the passed entity.
      Parameters:
      entity - The current entity, which gets loaded in the grid or form (is null in create scope).
      relationPath - The path to the relation you want to get the defaultDisplay from.
      Returns:
      a TypedValue containing the default display of the passed relation.
    • getFieldData

      public CustomDataValue<String> getFieldData(Entity entity, String pathToField)
      Deprecated.
      Returns the value of a specific field of an related entity
      Parameters:
      entity - The current entity, which gets loaded in the grid or form (is null in create scope).
      pathToField - The path to a field (for ex.: "relUser.user_nr").
      Returns:
      a TypedValue containing the custom data for passed field.