Services:UUIDs

From MacroDeckDevWiki

Jump to: navigation, search

UUIDs or Universally Unique IDentifiers are used by nearly everything in MacroDeck. Users, groups, permissions, data items, data groups, data item types, data group types, and so on. Anywhere where an identifier is used uses a UUID. This isn't the fastest way to have identifiers, but it prevents collisions, and allows us to look things up easily. We use a lot of UUIDs around MacroDeck.

Contents

List of UUID Constants

Creator/Owner UUIDs

These UUIDs might appear as the creator or owner of a data object.

Constant Value Description
USER_CSAKON 9add1be8-a635-49d7-aa0f-91b6638e9dd0 Chad Sakonchick's UUID
USER_ZIGGYTHEHAMSTER c4a038aa-372a-4f5c-81b7-351660f7049b Keith Gable's UUID
GROUP_MACRODECK 253d41a1-8b62-4ca8-9f8d-99bb42bc0dd8 MacroDeck Developers Group ID
CREATOR_MACRODECK 7b7e7c62-0a56-4785-93d5-6e689c9793c9 Whenever MacroDeck itself creates an item in the database, it sets itself as the creator. For example, every user's blog is created by MacroDeck. However, blog entries are not.

Data Item Type UUIDs

UUIDs corresponding to defaultly defined data item types.

Constant Value Description
DTYPE_POST 13569fca-5b8c-4ec3-8738-350165a37592 A blog post/entry.
DTYPE_EVENT 1a5527bb-515b-4f69-807e-facf578e0f2d A calendar event.
DTYPE_COMMENT 9a232c1d-55f7-4edd-8b60-e942eca82ea2 A comment to a blog post/entry.

Data Group Type UUIDs

UUIDs corresponding to defaultly defined data group types.

Constant Value Description
DGROUP_BLOG f7ae8ebd-c49a-4c9c-8f8c-425d32e64d88 A user/group/site's blog. A set of entries.
DGROUP_CALENDAR ae32a6aa-bfb2-4126-87a1-7041da0ce6e5 A calendar (i.e. a set of events). There might be more than one per user.
DGROUP_COMMENTS 841d7152-1a50-43c5-b53f-75437faad6a2 A set of comments whose parent is the particular blog entry.

Misc. UUIDs

UUIDs which are used which don't fall under any other category.

Constant Value Description
BLOG_MACRODECK 9a9fc352-89d4-4b92-a94b-45a8cac106bb The data grouping ID of the MacroDeck Development Blog. See DataService.

See Also

Personal tools