public interface Type extends Service, TypeTypes
Type
interface exposes the ItemModel
types that this Content Library Service
supports.
A library item has an optional type which can be specified with
the ItemModel.getType()
property. For items
with a type that is supported by a plugin, the Content Library Service may
understand the files which are part of the library item and can produce metadata
for the item.
In other cases, uploads may require a process in which one upload implies subsequent uploads. For example, an Open Virtualization Format (OVF) package is composed of an OVF descriptor file and the associated virtual disk files. Uploading an OVF descriptor can enable the Content Library Service to understand that the complete OVF package requires additional disk files, and it can set up the transfers for the disks automatically by adding the file entries for the disks when the OVF descriptor is uploaded.
When a type is not supported by a plugin, or the type is not specified, the Content Library Service can handle a library item in a default way, without adding metadata to the item or guiding the upload process.
TypeTypes.Info
Modifier and Type | Method and Description |
---|---|
java.util.List<TypeTypes.Info> |
list()
Returns a
List of TypeTypes.Info
instances which describe the type support plugins in this Content Library. |
void |
list(AsyncCallback<java.util.List<TypeTypes.Info>> asyncCallback)
Returns a
List of TypeTypes.Info
instances which describe the type support plugins in this Content Library. |
void |
list(AsyncCallback<java.util.List<TypeTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns a
List of TypeTypes.Info
instances which describe the type support plugins in this Content Library. |
java.util.List<TypeTypes.Info> |
list(InvocationConfig invocationConfig)
Returns a
List of TypeTypes.Info
instances which describe the type support plugins in this Content Library. |
java.util.List<TypeTypes.Info> list()
List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.
Synchronous method overload. Result of the invocation will be reported as a method return value.
List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.TypeIntrospection
. java.util.List<TypeTypes.Info> list(InvocationConfig invocationConfig)
List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.Unauthorized
- if you do not have all of the privileges described as follows: ContentLibrary.TypeIntrospection
. void list(AsyncCallback<java.util.List<TypeTypes.Info>> asyncCallback)
List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.
Operation Errors:
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.TypeIntrospection
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<TypeTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The List
of TypeTypes.Info
instances which describe the type support plugins in this Content Library.
Operation Errors:
Unauthorized
- if you do not have all of the privileges described as follows:
ContentLibrary.TypeIntrospection
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.