001/* 002 * (C) Copyright 2006-2012 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 * Thomas Roger <[email protected]> 018 */ 019 020package org.nuxeo.ecm.multi.tenant; 021 022/** 023 * @author <a href="mailto:[email protected]">Thomas Roger</a> 024 * @since 5.6 025 */ 026public class Constants { 027 028 private Constants() { 029 // Constants class 030 } 031 032 public static final String TENANT_CONFIG_FACET = "TenantConfig"; 033 034 public static final String TENANT_CONFIG_SCHEMA = "tenantconfig"; 035 036 public static final String TENANT_ID_PROPERTY = TENANT_CONFIG_SCHEMA + ":tenantId"; 037 038 public static final String TENANT_ADMINISTRATORS_PROPERTY = TENANT_CONFIG_SCHEMA + ":administrators"; 039 040 public static final String TENANTS_DIRECTORY = "tenants"; 041 042 // tenant-tenantid_tenantAdministrators 043 public static final String TENANT_GROUP_PREFIX = "tenant-"; 044 045 public static final String TENANT_ADMINISTRATORS_GROUP_SUFFIX = "_tenantAdministrators"; 046 047 public static final String TENANT_MEMBERS_GROUP_SUFFIX = "_tenantMembers"; 048 049 public static final String POWER_USERS_GROUP = "powerusers"; 050 051}