Package ch.tocco.nice2.netui.spi.bind
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 Summary
ConstructorDescriptionAbstractPrivilegedRelationDataProvider
(DefaultDisplayService defaultDisplayService, SecurityManager securityManager, TypeManager typeManager) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultDisplayOfRelation
(Entity entity, String relationPath) Deprecated.Returns the default display of an entity related to the passed entity.getFieldData
(Entity entity, String pathToField) Deprecated.Returns the value of a specific field of an related entityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.netui.spi.bind.CustomDataProvider
getData
-
Constructor Details
-
AbstractPrivilegedRelationDataProvider
public AbstractPrivilegedRelationDataProvider(DefaultDisplayService defaultDisplayService, SecurityManager securityManager, TypeManager typeManager) Deprecated.
-
-
Method Details
-
getDefaultDisplayOfRelation
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
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.
-