mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
- Merges from 5.1.0 (when it was 5.1) that did not make it to HEAD: 122506,122513,123118-123119 - RECORD ONLY Merges from HEAD: 119613-119617,119622,119706-119708, 119752-119753,120076-120078,120116,120166-120178,120182-120183, 120185-120193,120197-120201,120378-120385,120387,120431,120526, 120604-120625,120832-120842,120844-120849,120977-120982,121142-121144, 121313,121347-121348,121410,121412-121417,121684-121687,121802-121805, 121810-121815,121861,122287,122342,122361,122439-122441,122579,122921 - RECORD ONLY merges: 119602,119821-119822,119849,120065,120107, 120159,120260,120295,120339,120342,120371,120411-120412,120524,120527, 120696-120697,120705,120720,120746,120761,120819,120822,120893, 120935-120936,120993,121045,121119,121121,121132,121156-121157, 121299,121301,121309,121394,121408,121442,121481,121624,121626, 121672,121675,121692,121753,121795,121798,121852,121898,121981, 122030,122088,122114,122142,122213,122215,122217,122277,122340, 122343,122426,122487,122552,122554,122607,122654,122734,122861, 122906,122982,122985,122988,122996,123014,123031,123090, 123115-123117,123120 - Merge from 5.1.N of fix that should have gone into 5.1 (found because of conflict on merge) 123128: ACE-5155 Garbled message in patch-service.properties git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@123129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
113 lines
4.2 KiB
Java
113 lines
4.2 KiB
Java
/*
|
|
* Copyright (C) 2005-2015 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 http://www.gnu.org/licenses/.
|
|
*/
|
|
|
|
package org.alfresco.repo.virtual;
|
|
|
|
import java.io.InputStream;
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
|
|
import org.alfresco.service.cmr.dictionary.InvalidAspectException;
|
|
import org.alfresco.service.cmr.dictionary.InvalidTypeException;
|
|
import org.alfresco.service.cmr.model.FileExistsException;
|
|
import org.alfresco.service.cmr.model.FileInfo;
|
|
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
|
import org.alfresco.service.cmr.repository.ContentWriter;
|
|
import org.alfresco.service.cmr.repository.InvalidNodeRefException;
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
import org.alfresco.service.cmr.repository.Path;
|
|
import org.alfresco.service.cmr.search.ResultSet;
|
|
import org.alfresco.service.cmr.search.SearchParameters;
|
|
import org.alfresco.service.namespace.NamespacePrefixResolver;
|
|
import org.alfresco.service.namespace.QName;
|
|
import org.alfresco.service.namespace.QNamePattern;
|
|
|
|
/**
|
|
* Dependency inversion facade of the Alfresco repository environment. It offers
|
|
* an interface to Alfresco repository capabilities needed for virtualization.
|
|
* Implementors should consider loose repository beans coupling when
|
|
* implementing the environment operations.
|
|
*
|
|
* @author Bogdan Horje
|
|
*/
|
|
public interface ActualEnvironment
|
|
{
|
|
|
|
QName getType(NodeRef nodeRef);
|
|
|
|
boolean isSubClass(QName className, QName ofClassName);
|
|
|
|
NodeRef getTargetAssocs(NodeRef nodeRef, QName aspectTypeQName);
|
|
|
|
Serializable getProperty(NodeRef nodeRef, QName qname) throws ActualEnvironmentException;
|
|
|
|
Map<QName, Serializable> getProperties(NodeRef nodeRef);
|
|
|
|
boolean hasAspect(NodeRef nodeRef, QName aspectTypeQName);
|
|
|
|
Set<QName> getAspects(NodeRef nodeRef);
|
|
|
|
String getCurrentUser();
|
|
|
|
Path getPath(NodeRef nodeRef);
|
|
|
|
ChildAssociationRef getPrimaryParent(NodeRef nodeRef);
|
|
|
|
List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern,
|
|
int maxResults, boolean preload) throws InvalidNodeRefException;
|
|
|
|
NodeRef getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName);
|
|
|
|
NamespacePrefixResolver getNamespacePrefixResolver();
|
|
|
|
InputStream openContentStream(NodeRef nodeRef) throws ActualEnvironmentException;
|
|
|
|
InputStream openContentStream(String classpath) throws ActualEnvironmentException;
|
|
|
|
ResultSet query(SearchParameters searchParameters);
|
|
|
|
Object executeScript(String classpath, Map<String, Object> model) throws ActualEnvironmentException;
|
|
|
|
Object executeScript(NodeRef templateNodeRef, Map<String, Object> model) throws ActualEnvironmentException;
|
|
|
|
Object createScriptVirtualContext(VirtualContext context) throws ActualEnvironmentException;
|
|
|
|
NodeRef findNodeRef(String referenceType, String[] reference);
|
|
|
|
NodeRef findQNamePath(String[] patheElements);
|
|
|
|
boolean exists(NodeRef nodeRef);
|
|
|
|
boolean exists(String classpath);
|
|
|
|
void delete(NodeRef nodeRef);
|
|
|
|
FileInfo create(NodeRef parentNodeRef, String name, QName typeQName) throws FileExistsException;
|
|
|
|
ContentWriter getWriter(NodeRef nodeRef, QName propertyQName, boolean update) throws InvalidNodeRefException,
|
|
InvalidTypeException;
|
|
|
|
void addAspect(NodeRef nodeRef, QName aspectTypeQName, Map<QName, Serializable> aspectProperties)
|
|
throws InvalidNodeRefException, InvalidAspectException;
|
|
|
|
boolean hasPermission(NodeRef nodeRef, String perm);
|
|
}
|