Class AttachmentMimeTypeIconCustomDataProvider
java.lang.Object
ch.tocco.nice2.dms.impl.customdataprovider.MimeTypeIconCustomDataProvider
ch.tocco.nice2.dms.impl.customdataprovider.AttachmentMimeTypeIconCustomDataProvider
- All Implemented Interfaces:
CustomDataProvider
@Component
public class AttachmentMimeTypeIconCustomDataProvider
extends MimeTypeIconCustomDataProvider
Optimized version of
MimeTypeIconCustomDataProvider for Email_attachment entities
which does not require a resource entity.-
Field Summary
Fields inherited from class ch.tocco.nice2.dms.impl.customdataprovider.MimeTypeIconCustomDataProvider
securityManager -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentMimeTypeIconCustomDataProvider(ContentTreeService contentTreeService, TypeManager typeManager, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionCollects the custom data for this field and returns it as aTypedValue.Methods inherited from class ch.tocco.nice2.dms.impl.customdataprovider.MimeTypeIconCustomDataProvider
getDataInternal
-
Constructor Details
-
AttachmentMimeTypeIconCustomDataProvider
public AttachmentMimeTypeIconCustomDataProvider(ContentTreeService contentTreeService, TypeManager typeManager, SecurityManager securityManager)
-
-
Method Details
-
getData
public CustomDataValue<?> getData(@Nullable @Nullable Entity entity) throws CustomDataProviderException Description copied from interface:CustomDataProviderCollects the custom data for this field and returns it as aTypedValue.- Specified by:
getDatain interfaceCustomDataProvider- Overrides:
getDatain classMimeTypeIconCustomDataProvider- Parameters:
entity- The current entity, which gets loaded in the grid or form (is null in create scope).- Returns:
- a
TypedValuecontaining the custom data for this field. - Throws:
CustomDataProviderException- in case of error.
-