Index

DKDatastoreAdminDL

Purpose:

DKDatastoreAdminDL enables the user to query, add, delete, or modify content classes defined in the DL Library Server.

Class summary:

class DKEXPORT DKDatastoreAdminDL : public dkDatastoreAdmin
{
  public:
   DKDatastoreAdminDL(DKDatastoreDL* ds);
   virtual ~DKDatastoreAdminDL();
   virtual dkDatastore* getDatastore();
   virtual void setDatastore(dkDatastore* ds);
   virtual dkAccessControl* accessControl();
   virtual dkUserManagement* userManagement();
   virtual dkCollection* listContentDef();
   virtual dkCollection* listContentDef(const char* mimeType);
   virtual void addContentDef(const dkContentDef& contentDef);
   virtual void deleteContentDef(const dkContentDef& contentDef);
   virtual void updateContentDef(const dkContentDef& contentDef);
   virtual dkContentDef* getContentDef(const char* contentType);
   virtual dkContentDef* getContentDef(long id);
   virtual dkContentDef* getContentDefOfMimeType(const char* mimeType);
};

Members:

Constructors and destructor
   DKDatastoreAdminDL(DKDatastoreDL* ds);
   virtual ~DKDatastoreAdminDL();

Member functions
Gets the reference to the owner datastore object.

getDatastore
   virtual dkDatastore* getDatastore();

setDatastore
Sets the reference to the owner datastore object.
   virtual void setDatastore(dkDatastore* ds);

accessControl
Gets the access control service object.
   virtual dkAccessControl* accessControl();

userManagement
Gets the user management service object.
   virtual dkUserManagement* userManagement();

listContentDef
Lists all content classes defined in the DL library server.
   virtual dkCollection* listContentDef();

listContentDef
Lists all content classes with the specified MIME type in the DL library server.
   virtual dkCollection* listContentDef(const char* mimeType);

addContentDef
Adds a new content definition into DL library server. The system generated content class Id will be passed back to the contentDef.

Parameters
contentDef -- A content definition object for input/output.

   virtual void addContentDef(const dkContentDef& contentDef);

deleteContentDef
Deletes the content definition from the DL library server.

Parameters
contentDef -- A content definition object.

   virtual void deleteContentDef(const dkContentDef& contentDef);

updateContentDef
Updates an existing content definition in the DL library server. (Only allows an update to the description, MIME type and file extension.)

Parameters
contentDef -- A content definition object.

   virtual void updateContentDef(const dkContentDef& contentDef);

getContentDef
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.

   virtual dkContentDef* getContentDef(const char* contentType);

getContentDef
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.

   virtual dkContentDef* getContentDef(long id);

getContentDefOfMimeType
Gets the content definition of a specified MIME type. This will return the first matched content class definition.

Parameters
mimeType -- The MIME type.

   virtual dkContentDef* getContentDefOfMimeType(const char* mimeType);

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