MidgardMetadata

MidgardMetadata

Synopsis

#include <midgard/midgard.h>

                    MidgardMetadata;
                    MidgardMetadataClass;
                    MidgardMetadataPrivate;
MidgardMetadata *   midgard_metadata_new                (MidgardDBObject *object);

Object Hierarchy

  GObject
   +----MidgardDBObject
         +----MidgardMetadata

Properties

  "approved"                 MidgardTimestamp*     : Read
  "approver"                 gchar*                : Read
  "authors"                  gchar*                : Read / Write
  "created"                  MidgardTimestamp*     : Read
  "creator"                  gchar*                : Read
  "deleted"                  gboolean              : Read
  "exported"                 MidgardTimestamp*     : Read
  "hidden"                   gboolean              : Read / Write
  "imported"                 MidgardTimestamp*     : Read
  "isapproved"               gboolean              : Read
  "islocked"                 gboolean              : Read
  "locked"                   MidgardTimestamp*     : Read
  "locker"                   gchar*                : Read
  "navnoentry"               gboolean              : Read / Write
  "owner"                    gchar*                : Read / Write
  "published"                MidgardTimestamp*     : Read / Write
  "revised"                  MidgardTimestamp*     : Read
  "revision"                 guint                 : Read
  "revisor"                  gchar*                : Read
  "scheduleend"              MidgardTimestamp*     : Read / Write
  "schedulestart"            MidgardTimestamp*     : Read / Write
  "score"                    gint                  : Read / Write
  "size"                     guint                 : Read

Description

Details

MidgardMetadata

typedef struct _MidgardMetadata MidgardMetadata;


MidgardMetadataClass

typedef struct {
	MidgardDBObjectClass parent;
} MidgardMetadataClass;


MidgardMetadataPrivate

typedef struct _MidgardMetadataPrivate MidgardMetadataPrivate;


midgard_metadata_new ()

MidgardMetadata *   midgard_metadata_new                (MidgardDBObject *object);

Creates new midgard_metadata instance for the given MidgardObject instance.

Do not use g_object_new() as metadata constructor. MidgardObject pointer is internally assigned as a pointer to midgard object for which particular metadata object instance was created.

MidgardMetadata object has two "kinds" of properties. The first one is settable ( and overwritten ) only by metadata implementation. The second one is freely settable by application. In this case midgard core keep value of such property "as is".

Do not free MidgardMetadata object's memory as it is automatically freed when particular MidgardObject object's instance memory is freed.

object :

MidgardObject for which metadata is created

Returns :

newly allocated midgard_metadata instance

Property Details

The "approved" property

  "approved"                 MidgardTimestamp*     : Read

ISO datetime when object's record has been (un)approved.


The "approver" property

  "approver"                 gchar*                : Read

Guid of the person who (un)approved object's record.

Default value: NULL


The "authors" property

  "authors"                  gchar*                : Read / Write

The person who is an author.

Default value: ""


The "created" property

  "created"                  MidgardTimestamp*     : Read

ISO datetime when object's record has been created.


The "creator" property

  "creator"                  gchar*                : Read

Guid of the person who created object's record.

Default value: NULL


The "deleted" property

  "deleted"                  gboolean              : Read

Whether object is deleted or not.

Default value: FALSE


The "exported" property

  "exported"                 MidgardTimestamp*     : Read

Whether object has been exported or not.


The "hidden" property

  "hidden"                   gboolean              : Read / Write

Whether object should be hidden or not.

Default value: FALSE


The "imported" property

  "imported"                 MidgardTimestamp*     : Read

Whether object has been imported or not.


The "isapproved" property

  "isapproved"               gboolean              : Read

Whether object is approved or not.

Default value: FALSE


The "islocked" property

  "islocked"                 gboolean              : Read

Whether object is locked or unlocked.

Default value: FALSE


The "locked" property

  "locked"                   MidgardTimestamp*     : Read

ISO datetime when object's record has been (un)locked.


The "locker" property

  "locker"                   gchar*                : Read

Guid of the person who (un)locked object's record.

Default value: NULL


The "navnoentry" property

  "navnoentry"               gboolean              : Read / Write

Whether object is part of navigation (e.g. menu).

Default value: FALSE


The "owner" property

  "owner"                    gchar*                : Read / Write

Group's guid which is an owner of the object.

Default value: ""


The "published" property

  "published"                MidgardTimestamp*     : Read / Write

ISO datetime when object should be published (by default it's created time).


The "revised" property

  "revised"                  MidgardTimestamp*     : Read

ISO datetime when object's record has been revised.


The "revision" property

  "revision"                 guint                 : Read

Object's record revision number.

Default value: 0


The "revisor" property

  "revisor"                  gchar*                : Read

Guid of the person who revised object's record.

Default value: NULL


The "scheduleend" property

  "scheduleend"              MidgardTimestamp*     : Read / Write

ISO datetime when publication time ends.


The "schedulestart" property

  "schedulestart"            MidgardTimestamp*     : Read / Write

ISO datetime when publication time starts.


The "score" property

  "score"                    gint                  : Read / Write

Object's record score.

Default value: 0


The "size" property

  "size"                     guint                 : Read

Object's size in bytes.

Default value: 0