|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.sdk.common.DKMimeTypeMgmtICM
Use this class to manage the MIME types available in the datastore.This class provides the functions to retrieve, add and update the system defined and user defined MIME types.
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageIdICM |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKConstantICM |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant |
For details, see the class or interface |
Constructor Summary | |
DKMimeTypeMgmtICM(dkDatastore ds)
Constructs a new MIME type management object to manage the MIME types in the specified datastore. |
Method Summary | |
void |
add(DKMimeTypeDefICM mimeTypeObject)
Adds the specified MIME type object to persistent store. |
void |
clearCache()
Clears all cache data will be cleared. |
dkDatastore |
getDatastore()
Gets the datastore object whose MIME types are managed. |
java.lang.String[] |
listMimeTypeNames()
Gets a list of MIME type names from persistent store. |
dkCollection |
listMimeTypes()
Gets a list of MIME types from persistent store. |
DKMimeTypeDefICM |
retrieveMimeType(int mimeTypeId)
Retrieves the specified MIME type object from persistent store for the specified Id. |
DKMimeTypeDefICM |
retrieveMimeType(int mimeTypeId,
java.lang.String languageCode)
Retrieves the specified MIME type object from persistent store for the specified language code. |
DKMimeTypeDefICM |
retrieveMimeType(java.lang.String mimeType)
Retrieves the specified MIME type object from persistent store for the specified name. |
DKMimeTypeDefICM |
retrieveMimeType(java.lang.String mimeType,
java.lang.String languageCode)
Retrieves the specified MIME type object from persistent store for the specified language code. |
void |
setDatastore(dkDatastore ds)
Sets the datastore object whose MIME types are to be managed. |
void |
update(DKMimeTypeDefICM mimeTypeObject)
Updates the specified MIME type object from persistent store. |
void |
update(DKMimeTypeDefICM mimeTypeObject,
java.lang.String languageCode)
Updates the specified MIME type object from persistent store for the specified language code. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DKMimeTypeMgmtICM(dkDatastore ds) throws DKException, java.lang.Exception
ds
- a reference to a datastore whose MIME types are to be managedDKException
- if a problem is encounteredMethod Detail |
public void setDatastore(dkDatastore ds) throws DKException, java.lang.Exception
ds
- a reference to a datastore whose MIME types are to be managed.DKException
- if a problem is encounteredpublic dkDatastore getDatastore()
dkDatastore
objectDKException
- if a problem is encounteredpublic dkCollection listMimeTypes() throws DKException, java.lang.Exception
DKException
- if error occurs
See Also: listMimeTypeNamespublic java.lang.String[] listMimeTypeNames() throws DKException, java.lang.Exception
DKException
- if error occurspublic void add(DKMimeTypeDefICM mimeTypeObject) throws DKException, java.lang.Exception
mimeType
- MIME type object to be added.DKException
- if errorpublic void update(DKMimeTypeDefICM mimeTypeObject) throws DKException, java.lang.Exception
mimeType
- MIME type object to be updated.DKException
- if errorpublic DKMimeTypeDefICM retrieveMimeType(int mimeTypeId) throws DKException, java.lang.Exception
mimeTypeId
- Id of MIME type object to be retrieved.DKException
- if errorpublic DKMimeTypeDefICM retrieveMimeType(java.lang.String mimeType) throws DKException, java.lang.Exception
mimeType
- type name of MIME type object to be retrieved.
The name can be up to 32 characters.DKException
- if errorpublic void update(DKMimeTypeDefICM mimeTypeObject, java.lang.String languageCode) throws DKException, java.lang.Exception
mimeType
- MIME type object to be updated.languageCode
- language code.DKException
- if errorpublic DKMimeTypeDefICM retrieveMimeType(int mimeTypeId, java.lang.String languageCode) throws DKException, java.lang.Exception
mimeTypeId
- id of MIME type object to be retrieved.languageCode
- language code.DKException
- if errorpublic DKMimeTypeDefICM retrieveMimeType(java.lang.String mimeType, java.lang.String languageCode) throws DKException, java.lang.Exception
mimeType
- name of MIME type object to be retrieved.languageCode
- language code.DKException
- if errorpublic void clearCache()
|
EIP Java APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |