text: /*!
   * Copyright 2013 Apereo Foundation (AF) Licensed under the
   * Educational Community License, Version 2.0 (the "License"); you may
   * not use this file except in compliance with the License. You may
   * obtain a copy of the License at
   *
   *     http://opensource.org/licenses/ECL-2.0
   *
   * Unless required by applicable law or agreed to in writing,
   * software distributed under the License is distributed on an "AS IS"
   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
   * or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  
  var ContentConstants = module.exports.ContentConstants = {};
  
  ContentConstants.roles = {
      // Determines not only all known roles, but the ordered priority they take as the "effective" role. (e.g., if
      // you are both a viewer and a manager, your effective role is "manager", so it must be later in the list)
      'ALL_PRIORITY': ['viewer', 'manager'],
  
      'MANAGER': 'manager',
      'VIEWER': 'viewer'
  };
  
  ContentConstants.resourceSubTypes = ['collabdoc', 'link', 'file'];
  
  ContentConstants.events = {
      'CREATED_COMMENT': 'createdComment',
      'CREATED_CONTENT': 'createdContent',
      'DELETED_CONTENT': 'deletedContent',
      'RESTORED_REVISION': 'restoredContent',
      'UPDATED_CONTENT': 'updatedContent',
      'UPDATED_CONTENT_BODY': 'updatedContentBody',
      'UPDATED_CONTENT_MEMBERS': 'updatedContentMembers',
      'UPDATED_CONTENT_PREVIEW': 'updatedContentPreview'
  };
  
  ContentConstants.previews = {
      'DONE': 'done',
      'ERROR': 'error',
      'IGNORED': 'ignored',
      'PENDING': 'pending'
  };
  
  ContentConstants.activity = {
      'ACTIVITY_CONTENT_CREATE': 'content-create',
      'ACTIVITY_CONTENT_UPDATE': 'content-update',
      'ACTIVITY_CONTENT_UPDATE_VISIBILITY': 'content-update-visibility',
      'ACTIVITY_CONTENT_REVISION': 'content-revision',
      'ACTIVITY_CONTENT_RESTORED_REVISION': 'content-restored-revision',
      'ACTIVITY_CONTENT_SHARE': 'content-share',
      'ACTIVITY_CONTENT_ADD_TO_LIBRARY': 'content-add-to-library',
      'ACTIVITY_CONTENT_COMMENT': 'content-comment',
  
      'PROP_OAE_CONTENT_ID': 'oae:contentId',
      'PROP_OAE_CONTENT_TYPE': 'oae:resourceSubType',
      'PROP_OAE_CONTENT_MIMETYPE': 'oae:mimeType',
      'PROP_OAE_PREVIEWS': 'oae:previews',
      'PROP_OAE_REVISION_ID': 'oae:revisionId',
      'PROP_OAE_WIDE_IMAGE': 'oae:wideImage'
  };
  
  ContentConstants.library = {
      'CONTENT_LIBRARY_INDEX_NAME': 'content:content'
  };
  
  ContentConstants.backend = {
      'DOWNLOAD_STRATEGY_DIRECT': 'direct',
      'DOWNLOAD_STRATEGY_INTERNAL': 'internal',
      'DOWNLOAD_STRATEGY_REDIRECT': 'redirect',
      'DOWNLOAD_STRATEGY_TEST': 'test'
  };
  