## Uses of Interface
com.ibm.openpages.api.metadata.IFileTypeDefinition

- Packages that use IFileTypeDefinition
  Package | Description
  --- | ---
  com.ibm.openpages.api.metadata | This package and its components provides access to OpenPages metadata.
  com.ibm.openpages.api.resource | Provides interfaces to work with the OpenPages content data: folders, GRC objects and document attachments.
  com.ibm.openpages.api.service | Provides the main interfaces to work with the API services.

- - ### Uses of IFileTypeDefinition in com.ibm.openpages.api.metadata

    Methods in com.ibm.openpages.api.metadata that return types with arguments of type IFileTypeDefinition
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<IFileTypeDefinition>` | ITypeDefinition.`getFileTypes()` Returns all the valid combinations of file extensions and MIME types defined for this type.

  - ### Uses of IFileTypeDefinition in com.ibm.openpages.api.resource

    Methods in com.ibm.openpages.api.resource that return IFileTypeDefinition
    Modifier and Type | Method and Description
    --- | ---
    `IFileTypeDefinition` | IDocument.`getFileTypeDefinition()` Returns the file type definition.

    Methods in com.ibm.openpages.api.resource with parameters of type IFileTypeDefinition
    Modifier and Type | Method and Description
    --- | ---
    `IDocument` | IResourceFactory.`createDocument(java.lang.String name, ITypeDefinition typeDefinition, IFileTypeDefinition fileTypeDefinition)` Creates a new instance of the IDocument interface to be persisted in the system.
    `void` | IDocument.`setContent(byte[] content, IFileTypeDefinition fileTypeDefinition)` Sets the file content for this document.
    `void` | IDocument.`setContent(java.io.InputStream contentStream, long contentLength, IFileTypeDefinition fileTypeDefinition)` Sets the file content for this document.

  - ### Uses of IFileTypeDefinition in com.ibm.openpages.api.service

    Methods in com.ibm.openpages.api.service that return IFileTypeDefinition
    Modifier and Type | Method and Description
    --- | ---
    `IFileTypeDefinition` | IMetaDataService.`getFileType(Id id)` Return a supported file type based on it's Id.
    `IFileTypeDefinition` | IMetaDataService.`getFileType(java.lang.String extension)` Return a supported file type based on the file extension.
    `IFileTypeDefinition` | IMetaDataService.`getFileType(java.lang.String extension, java.lang.String mimeType)` Gets a file type from the set of all possible file types defined in the OpenPages instance for a given mime type and extension combination.
    `IFileTypeDefinition` | IMetaDataService.`getFileTypeByMimeType(java.lang.String mimeType)` Return a supported file type based on mime type.

Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2022. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.