Content types, Object ids, permissions and you

    Have you ever wondered what a content type is? or how the number 1, 102, or 38 is important to you?

     

    Throughout the application there are different types of content and Jive objects which are defined within our code base. To easily determine what type of content a specific object is, it is given a Content Type which is a unique identifier in the system for that particular type. For example, all documents in the system will return the number 102 when a call is made to document.getObjectType(). Below is a list of all of the object types and their corresponding content type IDs.

     

    ObjectContent Type
    THREAD1
    MESSAGE2
    USER3
    GROUP4
    THREAD_NAME5
    MESSAGE_SUBJECT6
    MESSAGE_BODY7
    CREATION_DATE8
    MODIFICATION_DATE9
    EXTENDED_PROPERTY10
    ANONYMOUS11
    REGISTERED_USERS12
    ATTACHMENT13
    COMMUNITY14
    COMMUNITY_NAME16
    SYSTEM17
    POLL18
    COMMUNITY_SEARCH_QUERY19
    PRIVATE_MESSAGE20
    PRIVATE_MESSAGE_FOLDER21
    ANNOUNCEMENT22
    SEARCH23
    CRONTASK24
    STATUS_LEVEL25
    AVATAR26
    QUESTION27
    COMMUNITY_QUESTION29
    SYSTEM_QUESTION30
    GATEWAY31
    BAN32
    ABUSE33
    WATCH_SETTINGS35
    DRAFT36
    BLOG37
    BLOGPOST38
    TRACKBACK40
    TAG41
    TAG_SET42
    CONTENT_OBJECT43
    STATUS_LEVEL_POINT44
    STATUS_LEVEL_SCENARIO45
    WATCHABLE_OBJECT46
    SEARCH_ENGINE47
    USER_STATUS48
    USER_RELATIONSHIP49
    USER_RELATIONSHIP_GRAPH50
    PROJECT_QUESTION51
    SOCIAL_GROUP_QUESTION52
    USER_RELATIONSHIP_LIST53
    PLUGIN69
    DOCUMENT102
    DOCUMENT_TITLE103
    DOCUMENT_FIELD104
    COMMENT105
    EXPIRATION_DATE106
    RATING107
    DOCUMENT_TYPE108
    SEARCH_QUERY109
    DOCUMENT_BODY110
    IMAGE111
    DOCUMENT_PRESENTER117
    DOCUMENT_STATE118
    DOCUMENT_FIELD_OPTION119
    DOCUMENT_VERSION120
    DOCUMENT_VERSION_COMMENT121
    DOCUMENT_FIELD_TYPE123
    DOCUMENT_ID124
    DOCUMENT_TYPE_ELEMENT125
    TEMPORARY_DOCUMENT_ID127
    DOCUMENT_BACKCHANNEL129
    READ_STAT_SESSION201
    READ_STAT202
    WORKGROUP_AGENT300
    WORKGROUP_QUEUE301
    WORKGROUP_GROUP302
    ACTIVITY310
    POPULARITY311
    IMPORT320
    I18N_TEXT330
    WIDGET340
    WIDGET_FRAME341
    WIDGET_LAYOUT342
    INVITATION350
    ENTITLEMENT360
    ROSTER400
    OFFLINE401
    PROFILE_FIELD500
    PROJECT600
    CHECKPOINT601
    TASK602
    DUE_DATE603
    PROJECT_STATUS604
    SOCIAL_GROUP700
    SOCIAL_GROUP_MEMBER701
    FAVORITE800
    EXTERNAL_URL801
    LABEL900
    BRIDGE1000
    VIDEO1100
    VIDEO_WATERMARK1101
    OSWORKFLOW_ENTRY2001
    OSWORKFLOW_STEP2002
    AUDIT_MESSAGE2003
    REFERENCE2010
    SYSTEM_CONTAINER-2
    USER_CONTAINER2020

     

     

    Most of these object types are not used by anything other than our internal code but a few of them can be used as part of a few select system properties or extended community properties.

     

    Permissions list:

     

     

    NamePerm (HEX)Perm (DEC)Database Value
    VIEW_COMMUNITY110
    CREATE_MESSAGE221
    CREATE_THREAD442
    CREATE_MESSAGE_ATTACHMENT883
    CREATE_POLL10164
    PRIVATE_MESSAGE20325
    RATE_MESSAGE40646
    MODERATOR801287
    RESERVED1002568
    COMMUNITY_ADMIN2005129
    VOTE_IN_POLL400102410
    CREATE_PRIVATE_MESSAGE_ATTACHMENT800204811
    CREATE_ANNOUNCEMENT1000409612
    EDIT_AVATAR2000819213
    READ_DOCUMENT40001638414
    RESERVED80003276815
    READ_COMMENT100006553616
    RESERVED2000013107217
    CREATE_DOCUMENT4000026214418
    RESERVED8000052428819
    CREATE_COMMENT100000104857620
    CREATE_DOC_ATTACHMENT200000209715221
    RESERVED400000419430422
    MODERATE_DOCUMENT800000838860823
    RESERVED10000001677721624
    RATE_DOCUMENT20000003355443225
    CREATE_IMAGE40000006710886426
    RESERVED800000013421772827
    HOSTED_ADMIN1000000026843545628
    CREATE_SOCIAL_GROUP2000000053687091229
    CREATE_CHAT_EVENT40000000107374182430
    CREATE_BLOG_POST80000000214748364831
    RESERVED100000000429496729632
    RESERVED200000000858993459233
    RESERVED4000000001717986918434
    RESERVED8000000003435973836835
    RESERVED10000000006871947673636
    RESERVED200000000013743895347237
    RESERVED400000000027487790694438
    RESERVED800000000054975581388839
    RESERVED10000000000109951162777640
    RESERVED20000000000219902325555241
    RESERVED40000000000439804651110442
    RESERVED80000000000879609302220843
    RESERVED1000000000001759218604441644
    RESERVED2000000000003518437208883245
    RESERVED4000000000007036874417766446
    RESERVED80000000000014073748835532847
    RESERVED100000000000028147497671065648
    RESERVED200000000000056294995342131249
    RESERVED4000000000000112589990684262050
    RESERVED8000000000000225179981368525051
    RESERVED10000000000000450359962737050052
    RESERVED20000000000000900719925474099053
    RESERVED400000000000001801439850948200054
    RESERVED800000000000003602879701896400055
    VIEW_ONLINE_STATUS1000000000000007205759403792790056
    USER_ADMIN20000000000000014411518807585600057
    GROUP_ADMIN40000000000000028823037615171200058
    SYSTEM_ADMIN80000000000000057646075230342300059
    READ_BLOG1000000000000000115292150460685000060
    CREATE_BLOG2000000000000000230584300921369000061
    CREATE_PROJECT4000000000000000461168601842739000062
    RESERVED8000000000000000922337203685478000063

     

     

            DRAFT("Draft", false, 1),
            PUBLISHED("Published", true, 2),
            SCHEDULED("Scheduled", false, 3),
            AWAITING_MODERATION("Awaiting moderation", false, 4),
            REJECTED("Rejected", false, 5),
            ABUSE_HIDDEN("Abuse hidden", false, 6),
            ABUSE_VISIBLE("Abuse visible", true, 7),
            ARCHIVED("Archived",false,8),
            EXPIRED("Expired",false,9),
            PENDING_APPROVAL("Pending Approval",false,10),
            DELETED("Deleted",false,11);