Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class DKDatastoreAdminDL

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.dkAbstractDatastoreAdmin
        |
        +--com.ibm.mm.sdk.common.DKDatastoreAdminDL
All Implemented Interfaces:
DKConstant, DKConstantDL, dkDatastoreAdmin, DKMessageId, DKMessageIdDL, java.io.Serializable

public class DKDatastoreAdminDL
extends dkAbstractDatastoreAdmin
implements DKConstantDL, DKMessageIdDL

DKDatastoreAdminDL : This class represents and processes datastore administration functions for DL.

See Also:
Serialized Form

Fields inherited from interface com.ibm.mm.sdk.common.DKConstantDL
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageIdDL
DK_DL_MSG_INVNBR_TEXTMAPPING, DK_DL_MSG_MSGID_NOT_FOUND
 
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId
    For details, see the class or interface
 
Constructor Summary
DKDatastoreAdminDL(dkDatastore ds)
           
 
Method Summary
 dkAccessControl accessControl()
          Deprecated. Replace by authorizationMgmt
 void addContentDef(dkContentDef contentDef)
          Adds a new content class definition into the DL library server.
 void deleteContentDef(dkContentDef contentDef)
          Deletes a content class definition in the DL library server
 dkContentDef getContentDef(int id)
          Gets the content definition of a specified content Id.
 dkContentDef getContentDef(java.lang.String contentType)
          Gets the content definition of a specified content type.
 dkContentDef getContentDefOfMimeType(java.lang.String mimeType)
          Gets the content definition of a specified mime type.
 dkCollection listContentDef()
          List all content classes defined in the DL library server
 dkCollection listContentDef(java.lang.String mimeType)
          List all content classes with the specified mimeType in the DL library server
 void setDatastore(dkDatastore ds)
          Sets the reference to the owner datastore object
 void updateContentDef(dkContentDef contentDef)
          Updates a content class definition in the DL library server.
 dkUserManagement userManagement()
          Gets the reference to the user management object
 
Methods inherited from class com.ibm.mm.sdk.common.dkAbstractDatastoreAdmin
adminDomainsMgmt, authorizationMgmt, clearCache, configurationManagement, getDatastore, workFlowManagement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DKDatastoreAdminDL

public DKDatastoreAdminDL(dkDatastore ds)
Method Detail

setDatastore

public void setDatastore(dkDatastore ds)
Sets the reference to the owner datastore object
Overrides:
setDatastore in class dkAbstractDatastoreAdmin
Parameters:
ds - reference to datastore

accessControl

public dkAccessControl accessControl()
                              throws DKException,
                                     java.lang.Exception
Deprecated. Replace by authorizationMgmt

Gets the reference to the access control object
Overrides:
accessControl in class dkAbstractDatastoreAdmin
Returns:
the dkAccessControl object
See Also:
dkAbstractDatastoreAdmin.authorizationMgmt()

userManagement

public dkUserManagement userManagement()
                                throws DKException,
                                       java.lang.Exception
Gets the reference to the user management object
Overrides:
userManagement in class dkAbstractDatastoreAdmin
Returns:
the dkUserManagement object

listContentDef

public dkCollection listContentDef()
                            throws DKException,
                                   java.lang.Exception
List all content classes defined in the DL library server
Returns:
a dkCollection of content definition objects

listContentDef

public dkCollection listContentDef(java.lang.String mimeType)
                            throws DKException,
                                   java.lang.Exception
List all content classes with the specified mimeType in the DL library server
Parameters:
mimetype - the specified mime type
Returns:
a dkCollection of content definition objects

addContentDef

public void addContentDef(dkContentDef contentDef)
                   throws DKException,
                          java.lang.Exception
Adds a new content class definition into the DL library server. The system generated content class Id will be passed back to the contentDef.
Parameters:
contentDef - a content class definition object for input/output

updateContentDef

public void updateContentDef(dkContentDef contentDef)
                      throws DKException,
                             java.lang.Exception
Updates a content class definition in the DL library server. Can only update description, mime type and file extension
Parameters:
contentDef - a content class definition object

deleteContentDef

public void deleteContentDef(dkContentDef contentDef)
                      throws DKException,
                             java.lang.Exception
Deletes a content class definition in the DL library server
Parameters:
contentDef - a content class definition object

getContentDef

public dkContentDef getContentDef(java.lang.String contentType)
                           throws DKException,
                                  java.lang.Exception
Gets the content definition of a specified content type. The content type is the content class name in DL
Parameters:
contentType - the content class name
Returns:
a content class definition object

getContentDef

public dkContentDef getContentDef(int id)
                           throws DKException,
                                  java.lang.Exception
Gets the content definition of a specified content Id. The content Id is the content class Id in DL
Parameters:
id - the content class id
Returns:
a content class definition object

getContentDefOfMimeType

public dkContentDef getContentDefOfMimeType(java.lang.String mimeType)
                                     throws DKException,
                                            java.lang.Exception
Gets the content definition of a specified mime type. This will return the first matched content class definition
Parameters:
mimetType - the mime type
Returns:
a content class definition object

EIP Java APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.