001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * <a href="mailto:grenard@nuxeo.com">Guillaume</a> 018 */ 019package org.nuxeo.ecm.collections.api; 020 021/** 022 * @since 5.9.3 023 */ 024public class CollectionConstants { 025 026 public static final String COLLECTABLE_FACET = "CollectionMember"; 027 028 public static final String NOT_COLLECTABLE_FACET = "NotCollectionMember"; 029 030 public static final String COLLECTION_FACET = "Collection"; 031 032 public static final String COLLECTION_TYPE = "Collection"; 033 034 public static final String COLLECTION_DOCUMENT_IDS_PROPERTY_NAME = "collection:documentIds"; 035 036 public static final String DOCUMENT_COLLECTION_IDS_PROPERTY_NAME = "collectionMember:collectionIds"; 037 038 public static final String COLLECTION_SCHEMA_NAME = "collection"; 039 040 public static final String COLLECTION_MEMBER_SCHEMA_NAME = "collectionMember"; 041 042 public static final String CAN_COLLECT_PERMISSION = "ReadCanCollect"; 043 044 public static final String COLLECTION_PAGE_PROVIDER = "default_collection"; 045 046 public static final String MAGIC_PREFIX_ID = "-999999"; 047 048 public static final String DEFAULT_COLLECTIONS_NAME = "Collections"; 049 050 public static final String DEFAULT_COLLECTIONS_TITLE = "label.myCollections.title"; 051 052 public static final String COLLECTIONS_TYPE = "Collections"; 053 054 public static final String COLLECTION_QUEUE_ID = "collections"; 055 056 public static final int DEFAULT_COLLECTION_RETURNED = 10; 057 058 public static final int MAX_COLLECTION_RETURNED = 100; 059 060 public static final String COLLECTION_CONTENT_PAGE_PROVIDER = "default_content_collection"; 061 062 /** 063 * @since 6.0 064 */ 065 public static final String ALL_COLLECTIONS_PAGE_PROVIDER = "all_collections"; 066 067 // Event names 068 /** 069 * @since 6.0 070 */ 071 public static final String BEFORE_ADDED_TO_COLLECTION = "beforeAddedToCollection"; 072 073 /** 074 * @since 6.0 075 */ 076 public static final String ADDED_TO_COLLECTION = "addedToCollection"; 077 078 /** 079 * @since 6.0 080 */ 081 public static final String BEFORE_REMOVED_FROM_COLLECTION = "beforeRemovedFromCollection"; 082 083 /** 084 * @since 6.0 085 */ 086 public static final String REMOVED_FROM_COLLECTION = "removedFromCollection"; 087 088 /** 089 * @since 6.0 090 */ 091 public static final String COLLECTION_REF_EVENT_CTX_PROP = "collectionRef"; 092 093}