diff --git a/config/alfresco/core-services-context.xml b/config/alfresco/core-services-context.xml index fd17fd7ed0..ff0aa7a6df 100644 --- a/config/alfresco/core-services-context.xml +++ b/config/alfresco/core-services-context.xml @@ -778,6 +778,9 @@ alfresco/model/datalistModel.xml + + + alfresco/model/quickShareModel.xml diff --git a/config/alfresco/model/quickShareModel.xml b/config/alfresco/model/quickShareModel.xml new file mode 100644 index 0000000000..bc685c5596 --- /dev/null +++ b/config/alfresco/model/quickShareModel.xml @@ -0,0 +1,41 @@ + + + QuickShare Model Definitions + 0.1 + + + + + + + + + + + + + + + Shared Id + d:text + true + true + false + + false + + + + Shared By + d:text + true + true + false + + false + + + + + + \ No newline at end of file diff --git a/config/alfresco/repository.properties b/config/alfresco/repository.properties index 286a29f313..210683ae24 100644 --- a/config/alfresco/repository.properties +++ b/config/alfresco/repository.properties @@ -1017,3 +1017,6 @@ ticket.cleanup.cronExpression=0 0 * * * ? # Disable load of sample site # sample.site.disabled=false + +# enable QuickShare - if false then the QuickShare-specific REST APIs will return 403 Forbidden +system.quickshare.enabled=true \ No newline at end of file diff --git a/config/alfresco/script-services-context.xml b/config/alfresco/script-services-context.xml index 058ef44570..7d69b68e92 100644 --- a/config/alfresco/script-services-context.xml +++ b/config/alfresco/script-services-context.xml @@ -266,6 +266,7 @@ cm:workingCopyOwner cm:lockOwner cm:owner + qshare:sharedBy diff --git a/source/java/org/alfresco/model/QuickShareModel.java b/source/java/org/alfresco/model/QuickShareModel.java new file mode 100644 index 0000000000..434458e320 --- /dev/null +++ b/source/java/org/alfresco/model/QuickShareModel.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2005-2012 Alfresco Software Limited. + * + * This file is part of Alfresco + * + * Alfresco is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Alfresco is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Alfresco. If not, see . + */ +package org.alfresco.model; + +import org.alfresco.service.namespace.QName; + + +/** + * QuickShare Model Constants + * + * @author janv + */ +public interface QuickShareModel +{ + // Namespaces + static final String QSHARE_MODEL_1_0_URI = "http://www.alfresco.org/model/qshare/1.0"; + + // Aspects + static final QName ASPECT_QSHARE = QName.createQName(QSHARE_MODEL_1_0_URI, "shared"); + + // Properties + static final QName PROP_QSHARE_SHAREDID = QName.createQName(QSHARE_MODEL_1_0_URI, "sharedId"); + static final QName PROP_QSHARE_SHAREDBY = QName.createQName(QSHARE_MODEL_1_0_URI, "sharedBy"); +}