Class MimeTypeIconCustomDataProvider
java.lang.Object
ch.tocco.nice2.dms.impl.customdataprovider.MimeTypeIconCustomDataProvider
- All Implemented Interfaces:
CustomDataProvider
- Direct Known Subclasses:
AttachmentMimeTypeIconCustomDataProvider
@Component
@Qualifier("mimeTypeIconCustomDataProvider")
public class MimeTypeIconCustomDataProvider
extends Object
implements CustomDataProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMimeTypeIconCustomDataProvider
(ContentTreeService contentTreeService, TypeManager typeManager, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionCollects the custom data for this field and returns it as aTypedValue
.protected CustomDataValue
<String> getDataInternal
(String mimeType)
-
Field Details
-
securityManager
-
-
Constructor Details
-
MimeTypeIconCustomDataProvider
public MimeTypeIconCustomDataProvider(ContentTreeService contentTreeService, TypeManager typeManager, SecurityManager securityManager)
-
-
Method Details
-
getData
public CustomDataValue<?> getData(@Nullable @Nullable Entity entity) throws CustomDataProviderException Description copied from interface:CustomDataProvider
Collects the custom data for this field and returns it as aTypedValue
.- Specified by:
getData
in interfaceCustomDataProvider
- Parameters:
entity
- The current entity, which gets loaded in the grid or form (is null in create scope).- Returns:
- a
TypedValue
containing the custom data for this field. - Throws:
CustomDataProviderException
- in case of error.
-
getDataInternal
-