本文整理汇总了Java中org.alfresco.repo.domain.qname.QNameDAO类的典型用法代码示例。如果您正苦于以下问题:Java QNameDAO类的具体用法?Java QNameDAO怎么用?Java QNameDAO使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QNameDAO类属于org.alfresco.repo.domain.qname包,在下文中一共展示了QNameDAO类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setUp
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Before
public void setUp() throws Exception
{
ctx = ApplicationContextHelper.getApplicationContext();
this.modelValidator = (ModelValidator)ctx.getBean("modelValidator");
this.dictionaryDAO = (DictionaryDAO)ctx.getBean("dictionaryDAO");
this.qnameDAO = (QNameDAO)ctx.getBean("qnameDAO");
this.namespaceDAO = (NamespaceDAO)ctx.getBean("namespaceDAO");
this.nodeService = (NodeService)ctx.getBean("NodeService");
this.fileFolderService = (FileFolderService)ctx.getBean("FileFolderService");
this.contentService = (ContentService)ctx.getBean("contentService");
this.versionService = (VersionService)ctx.getBean("VersionService");
this.transactionService = (TransactionService)ctx.getBean("TransactionService");
this.nodeArchiveService = (NodeArchiveService)ctx.getBean("nodeArchiveService");
this.modelName = "modelvalidatortest" + System.currentTimeMillis();
addModel();
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:19,代码来源:ModelValidatorTest.java
示例2: GetPeopleCannedQuery
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
public GetPeopleCannedQuery(
NodeDAO nodeDAO,
QNameDAO qnameDAO,
CannedQueryDAO cannedQueryDAO,
TenantService tenantService,
NodeService nodeService,
AuthorityService authorityService,
CannedQueryParameters params)
{
super(params);
this.nodeDAO = nodeDAO;
this.qnameDAO = qnameDAO;
this.cannedQueryDAO = cannedQueryDAO;
this.tenantService = tenantService;
this.nodeService = nodeService;
this.authorityService = authorityService;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:20,代码来源:GetPeopleCannedQuery.java
示例3: prepare
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors, Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
Function function = getFunction();
if(function != null)
{
if(function instanceof DBQueryBuilderComponent)
{
DBQueryBuilderComponent dbQueryBuilderComponent = (DBQueryBuilderComponent)function;
dbQueryBuilderComponent.prepare(namespaceService, dictionaryService, qnameDAO, nodeDAO, tenantService, selectors, getFunctionArguments(), functionContext, supportBooleanFloatAndDouble);
}
else
{
throw new UnsupportedOperationException();
}
}
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:18,代码来源:DBFunctionalConstraint.java
示例4: prepare
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors,
Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
for (Constraint constraint : getConstraints())
{
if (constraint instanceof DBQueryBuilderComponent)
{
if(constraint.getOccur() == Occur.OPTIONAL)
{
throw new QueryModelException("Disjunctions are not suported");
}
DBQueryBuilderComponent dbQueryBuilderComponent = (DBQueryBuilderComponent) constraint;
dbQueryBuilderComponent.prepare(namespaceService, dictionaryService, qnameDAO, nodeDAO, tenantService, selectors, functionArgs, functionContext, supportBooleanFloatAndDouble);
}
else
{
throw new UnsupportedOperationException();
}
}
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:DBConjunction.java
示例5: prepare
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors,
Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
//throw new QueryModelException("Disjunctions are not suported");
for (Constraint constraint : getConstraints())
{
if (constraint instanceof DBQueryBuilderComponent)
{
DBQueryBuilderComponent dbQueryBuilderComponent = (DBQueryBuilderComponent) constraint;
dbQueryBuilderComponent.prepare(namespaceService, dictionaryService, qnameDAO, nodeDAO, tenantService, selectors, functionArgs, functionContext, supportBooleanFloatAndDouble);
}
else
{
throw new UnsupportedOperationException();
}
}
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:20,代码来源:DBDisjunction.java
示例6: GetChildrenCannedQuery
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
public GetChildrenCannedQuery(
NodeDAO nodeDAO,
QNameDAO qnameDAO,
CannedQueryDAO cannedQueryDAO,
NodePropertyHelper nodePropertyHelper,
TenantService tenantService,
NodeService nodeService,
MethodSecurityBean<NodeRef> methodSecurity,
CannedQueryParameters params,
HiddenAspect hiddenAspect,
DictionaryService dictionaryService,
Set<QName> ignoreAspectQNames)
{
super(nodeDAO, qnameDAO, cannedQueryDAO, nodePropertyHelper, tenantService, nodeService, methodSecurity, params);
this.hiddenAspect = hiddenAspect;
this.dictionaryService = dictionaryService;
this.nodeService = nodeService;
this.ignoreAspectQNames = ignoreAspectQNames;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:GetChildrenCannedQuery.java
示例7: setTypeQNameAll
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
/**
* Helper method to set the {@link #setTypeQNameId(Long)}.
*
* @param qnameDAO the DAO to resolve the QName ID
* @param typeQName the association type
* @param forUpdate <tt>true</tt> if the QName must exist i.e. this
* entity will be used for updates and the type
* <code>QName</code> <b>must</b> exist.
* @return <tt>true</tt> if the set worked otherwise <tt>false</tt>
*/
public boolean setTypeQNameAll(QNameDAO qnameDAO, QName typeQName, boolean forUpdate)
{
if (forUpdate)
{
typeQNameId = qnameDAO.getOrCreateQName(typeQName).getFirst();
return true;
}
else
{
Pair<Long, QName> qnamePair = qnameDAO.getQName(typeQName);
if (qnamePair == null)
{
return false;
}
else
{
typeQNameId = qnamePair.getFirst();
return true;
}
}
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:32,代码来源:ChildAssocEntity.java
示例8: setUp
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void setUp() throws Exception
{
ServiceRegistry serviceRegistry = (ServiceRegistry) ctx.getBean(ServiceRegistry.SERVICE_REGISTRY);
transactionService = serviceRegistry.getTransactionService();
txnHelper = transactionService.getRetryingTransactionHelper();
solrTrackingComponent = (SOLRTrackingComponent) ctx.getBean("solrTrackingComponent");
nodeDAO = (NodeDAO)ctx.getBean("nodeDAO");
qnameDAO = (QNameDAO) ctx.getBean("qnameDAO");
dictionaryDAO = (DictionaryDAO)ctx.getBean("dictionaryDAO");
nodeService = (NodeService)ctx.getBean("NodeService");
fileFolderService = (FileFolderService)ctx.getBean("FileFolderService");
dictionaryService = serviceRegistry.getDictionaryService();
namespaceService = serviceRegistry.getNamespaceService();
authenticationComponent = (AuthenticationComponent)ctx.getBean("authenticationComponent");
dbNodeService = (DbNodeServiceImpl)ctx.getBean("dbNodeService");
dbNodeService.setEnableTimestampPropagation(false);
authenticationComponent.setSystemUserAsCurrentUser();
storeRef = nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, getName() + System.currentTimeMillis());
rootNodeRef = nodeService.getRootNode(storeRef);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:26,代码来源:SOLRTrackingComponentTest.java
示例9: SOLRTest
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
SOLRTest(
RetryingTransactionHelper txnHelper, FileFolderService fileFolderService,
NodeDAO nodeDAO, QNameDAO qnameDAO, NodeService nodeService, DictionaryService dictionaryService,
NodeRef rootNodeRef, String containerName, boolean doNodeChecks, boolean doMetaDataChecks)
{
this.txnHelper = txnHelper;
this.nodeService = nodeService;
this.rootNodeRef = rootNodeRef;
this.fileFolderService = fileFolderService;
this.nodeDAO = nodeDAO;
this.qnameDAO = qnameDAO;
this.dictionaryService = dictionaryService;
this.containerName = containerName;
this.nodeAssertions = new HashMap<NodeRef, NodeAssertions>();
this.nodeIds = new ArrayList<Long>(getExpectedNumNodes());
this.doNodeChecks = doNodeChecks;
this.doMetaDataChecks = doMetaDataChecks;
this.doChecks = doNodeChecks || doMetaDataChecks;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:SOLRTrackingComponentTest.java
示例10: SOLRTestResidualProperties
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
SOLRTestResidualProperties(
RetryingTransactionHelper txnHelper, FileFolderService fileFolderService,
NodeDAO nodeDAO, QNameDAO qnameDAO, NodeService nodeService, DictionaryService dictionaryService,
NodeRef rootNodeRef, String containerName, boolean doNodeChecks, boolean doMetaDataChecks)
{
super(txnHelper, fileFolderService, nodeDAO, qnameDAO, nodeService, dictionaryService,rootNodeRef, containerName, doNodeChecks, doMetaDataChecks);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:SOLRTrackingComponentTest.java
示例11: setUp
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void setUp()
{
ServiceRegistry serviceRegistry = (ServiceRegistry) ctx.getBean(ServiceRegistry.SERVICE_REGISTRY);
DictionaryService dictionaryService = serviceRegistry.getDictionaryService();
QNameDAO qnameDAO = (QNameDAO) ctx.getBean("qnameDAO");
LocaleDAO localeDAO = (LocaleDAO) ctx.getBean("localeDAO");
ContentDataDAO contentDataDAO = (ContentDataDAO) ctx.getBean("contentDataDAO");
helper = new NodePropertyHelper(dictionaryService, qnameDAO, localeDAO, contentDataDAO);
transactionService = serviceRegistry.getTransactionService();
txnHelper = transactionService.getRetryingTransactionHelper();
txnHelper.setMinRetryWaitMs(10);
txnHelper.setRetryWaitIncrementMs(10);
txnHelper.setMaxRetryWaitMs(50);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:17,代码来源:NodePropertyHelperTest.java
示例12: setUp
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Before
public void setUp() throws Exception
{
this.modelValidator = (ModelValidator)ctx.getBean("modelValidator");
this.dictionaryDAO = (DictionaryDAO)ctx.getBean("dictionaryDAO");
this.qnameDAO = (QNameDAO)ctx.getBean("qnameDAO");
this.namespaceDAO = (NamespaceDAO)ctx.getBean("namespaceDAO");
this.nodeService = (NodeService)ctx.getBean("NodeService");
this.fileFolderService = (FileFolderService)ctx.getBean("FileFolderService");
this.contentService = (ContentService)ctx.getBean("contentService");
this.versionService = (VersionService)ctx.getBean("VersionService");
this.transactionService = (TransactionService)ctx.getBean("TransactionService");
this.nodeArchiveService = (NodeArchiveService)ctx.getBean("nodeArchiveService");
this.modelName = "modelvalidatortest" + System.currentTimeMillis();
addModel();
}
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:18,代码来源:ModelValidatorTest.java
示例13: prepare
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors,
Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
Argument argument = functionArgs.get(ARG_TERM);
String term = (String) argument.getValue(functionContext);
// strip trailing wildcard *
term = term.substring(0, term.length() - 1);
PropertyArgument propertyArgument = (PropertyArgument) functionArgs.get(ARG_PROPERTY);
argument = functionArgs.get(ARG_TOKENISATION_MODE);
AnalysisMode mode = (AnalysisMode) argument.getValue(functionContext);
if (mode != AnalysisMode.IDENTIFIER)
{
throw new QueryModelException("Analysis mode not supported for DB " + mode);
}
PropertySupport propertySupport = new PropertySupport();
propertySupport.setValue(term + "%");
QName propertyQName = QName.createQName(DBQuery.expandQName(functionContext.getAlfrescoPropertyName(propertyArgument.getPropertyName()), namespaceService));
propertySupport.setPropertyQName(propertyQName);
propertySupport.setPropertyDataType(DBQuery.getDataTypeDefinition(dictionaryService, propertyQName));
propertySupport.setPair(qnameDAO.getQName(propertyQName));
propertySupport.setJoinCommandType(DBQuery.getJoinCommandType(propertyQName));
propertySupport.setFieldName(DBQuery.getFieldName(dictionaryService, propertyQName, supportBooleanFloatAndDouble));
propertySupport.setCommandType(DBQueryBuilderPredicatePartCommandType.LIKE);
builderSupport = propertySupport;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:31,代码来源:DBFTSPrefixTerm.java
示例14: prepare
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors,
Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
// TODO Auto-generated method stub
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:DBUpper.java
示例15: prepare
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors, Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
Argument argument = functionArgs.get(ARG_PARENT);
String id = (String) argument.getValue(functionContext);
argument = functionArgs.get(ARG_SELECTOR);
if(argument != null)
{
String selector = (String) argument.getValue(functionContext);
if(!selectors.contains(selector))
{
throw new QueryModelException("Unkown selector "+selector);
}
}
else
{
if(selectors.size() > 1)
{
throw new QueryModelException("Selector must be specified for child constraint (IN_FOLDER) and join");
}
}
ParentSupport parentSupport = new ParentSupport();
parentSupport.setDbid(DBQuery.getDbid(id, nodeDAO, tenantService));
parentSupport.setCommandType(DBQueryBuilderPredicatePartCommandType.EQUALS);
builderSupport = parentSupport;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:28,代码来源:DBChild.java
示例16: GetChildrenCannedQuery
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
public GetChildrenCannedQuery(
NodeDAO nodeDAO,
QNameDAO qnameDAO,
CannedQueryDAO cannedQueryDAO,
NodePropertyHelper nodePropertyHelper,
TenantService tenantService,
NodeService nodeService,
MethodSecurityBean<NodeRef> methodSecurity,
CannedQueryParameters params)
{
super(params, methodSecurity);
this.nodeDAO = nodeDAO;
this.qnameDAO = qnameDAO;
this.cannedQueryDAO = cannedQueryDAO;
this.nodePropertyHelper = nodePropertyHelper;
this.tenantService = tenantService;
this.nodeService = nodeService;
if ((params.getSortDetails() != null) && (params.getSortDetails().getSortPairs().size() > 0))
{
applyPostQueryPermissions = true;
}
// TODO refactor (only apply post query if sorted - as above)
GetChildrenCannedQueryParams paramBean = (GetChildrenCannedQueryParams)params.getParameterBean();
if ((paramBean.getFilterProps()!= null) && (paramBean.getFilterProps().size() > 0))
{
applyPostQueryPermissions = true;
}
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:32,代码来源:GetChildrenCannedQuery.java
示例17: NodeStringLengthWorker
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
public NodeStringLengthWorker(
NodeDAO nodeDAO, JobLockService jobLockService, TransactionService transactionService, QNameDAO qnameDAO,
BehaviourFilter behaviourFilter,
int queryRange, int threadCount)
{
this.nodeDAO = nodeDAO;
this.jobLockService = jobLockService;
this.transactionService = transactionService;
this.qnameDAO = qnameDAO;
this.behaviourFilter = behaviourFilter;
this.queryRange = queryRange;
this.threadCount = threadCount;
this.batchSize = 100;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:16,代码来源:NodeStringLengthWorker.java
示例18: NodePropertyHelper
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
/**
* Construct the helper with the appropriate DAOs and services
*/
public NodePropertyHelper(
DictionaryService dictionaryService,
QNameDAO qnameDAO,
LocaleDAO localeDAO,
ContentDataDAO contentDataDAO)
{
this.dictionaryService = dictionaryService;
this.qnameDAO = qnameDAO;
this.localeDAO = localeDAO;
this.contentDataDAO = contentDataDAO;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:NodePropertyHelper.java
示例19: getRef
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
public ChildAssociationRef getRef(QNameDAO qnameDAO)
{
QName typeQName = qnameDAO.getQName(typeQNameId).getSecond();
QName qname = QName.createQName(qnameDAO.getNamespace(qnameNamespaceId).getSecond(), qnameLocalName);
return new ChildAssociationRef(
typeQName,
parentNode.getNodeRef(),
qname,
childNode.getNodeRef(),
isPrimary,
assocIndex);
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:13,代码来源:ChildAssocEntity.java
示例20: setQNameAll
import org.alfresco.repo.domain.qname.QNameDAO; //导入依赖的package包/类
/**
* Set all required fields associated with the patch <code>QName</code>.
*
* @param forUpdate <tt>true</tt> if the entity is going to be used for a
* data update i.e. the <code>QName</code> <b>must</b> exist.
* @return Returns <tt>true</tt> if the <code>QName</code> namespace
* exists.
*/
public boolean setQNameAll(QNameDAO qnameDAO, QName qname, boolean forUpdate)
{
String assocQNameNamespace = qname.getNamespaceURI();
String assocQNameLocalName = qname.getLocalName();
Long assocQNameNamespaceId = null;
if (forUpdate)
{
assocQNameNamespaceId = qnameDAO.getOrCreateNamespace(assocQNameNamespace).getFirst();
}
else
{
Pair<Long, String> nsPair = qnameDAO.getNamespace(assocQNameNamespace);
if (nsPair == null)
{
// We can't set anything
return false;
}
else
{
assocQNameNamespaceId = nsPair.getFirst();
}
}
Long assocQNameCrc = getQNameCrc(qname);
this.qnameNamespaceId = assocQNameNamespaceId;
this.qnameLocalName = assocQNameLocalName;
this.qnameCrc = assocQNameCrc;
// All set correctly
return true;
}
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:40,代码来源:ChildAssocEntity.java
注:本文中的org.alfresco.repo.domain.qname.QNameDAO类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论