Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <midgard/midgard.h>
MidgardMetadata;
MidgardMetadataClass;
MidgardMetadataPrivate;
MidgardMetadata * midgard_metadata_new (MidgardDBObject *object
);
"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
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.
|
MidgardObject for which metadata is created |
Returns : |
newly allocated midgard_metadata instance |
"approved"
property "approved" MidgardTimestamp* : Read
ISO datetime when object's record has been (un)approved.
"approver"
property"approver" gchar* : Read
Guid of the person who (un)approved object's record.
Default value: NULL
"authors"
property"authors" gchar* : Read / Write
The person who is an author.
Default value: ""
"created"
property "created" MidgardTimestamp* : Read
ISO datetime when object's record has been created.
"creator"
property"creator" gchar* : Read
Guid of the person who created object's record.
Default value: NULL
"deleted"
property"deleted" gboolean : Read
Whether object is deleted or not.
Default value: FALSE
"exported"
property "exported" MidgardTimestamp* : Read
Whether object has been exported or not.
"hidden"
property"hidden" gboolean : Read / Write
Whether object should be hidden or not.
Default value: FALSE
"imported"
property "imported" MidgardTimestamp* : Read
Whether object has been imported or not.
"isapproved"
property"isapproved" gboolean : Read
Whether object is approved or not.
Default value: FALSE
"islocked"
property"islocked" gboolean : Read
Whether object is locked or unlocked.
Default value: FALSE
"locked"
property "locked" MidgardTimestamp* : Read
ISO datetime when object's record has been (un)locked.
"locker"
property"locker" gchar* : Read
Guid of the person who (un)locked object's record.
Default value: NULL
"navnoentry"
property"navnoentry" gboolean : Read / Write
Whether object is part of navigation (e.g. menu).
Default value: FALSE
"owner"
property"owner" gchar* : Read / Write
Group's guid which is an owner of the object.
Default value: ""
"published"
property "published" MidgardTimestamp* : Read / Write
ISO datetime when object should be published (by default it's created time).
"revised"
property "revised" MidgardTimestamp* : Read
ISO datetime when object's record has been revised.
"revisor"
property"revisor" gchar* : Read
Guid of the person who revised object's record.
Default value: NULL
"scheduleend"
property "scheduleend" MidgardTimestamp* : Read / Write
ISO datetime when publication time ends.
"schedulestart"
property "schedulestart" MidgardTimestamp* : Read / Write
ISO datetime when publication time starts.