How to get Document class names from a objectstore
SearchScope searchScope = new SearchScope(objectStore);
String query = "SELECT SymbolicName FROM DocumentClassDefinition WHERE IsHidden = FALSE AND IsSystemOwned = FALSE";
SearchSQL sql= new SearchSQL();
sql.setQueryString(query);
Integer myPageSize = new Integer(100);
PropertyFilter propertyFilter = new PropertyFilter();
propertyFilter.setMaxRecursion(1);
propertyFilter.addIncludeType(1, null, null, FilteredPropertyType.ANY, null);
Boolean continuable = new Boolean(true);
RepositoryRowSet rowSet = searchScope.fetchRows(sql, myPageSize, propertyFilter, continuable);
if(rowSet.isEmpty()) {
throw new Exception();
} else {
Iterator iterator = rowSet.iterator();
while (iterator.hasNext()) {
i++;
RepositoryRow row = (RepositoryRow) iterator.next();
System.out.println(row.getProperties().getStringValue("SymbolicName"));
}
}
String query = "SELECT SymbolicName, Id, IsHidden, IsSystemOwned, This FROM DocumentClassDefinition WHERE AllowsSubclasses=TRUE AND IsSystemOwned=FALSE AND IsHidden=FALSE";
URL : http://www.ecmplace.com/viewtopic.php?f=39&t=14374&p=43265#p43265
分享到:
相关推荐
How to Get Ideas - Jack Foster.pdf
VTK 12 How to Write a Process__ Object.pdf VTK 12 How to Write a Process__ Object.pdf VTK 12 How to Write a Process__ Object.pdf
一本经典的指导读博的好书,正在读博士的兄弟们可以看看,会有一定收获的。
the document describes how to build a cascade classifier for object detection with haar features
C++ How to Program presents leading-edge computing technologies in a friendly manner appropriate for introductory college course sequences, based on the curriculum recommendations of two key ...
The aim is to create a smooth learning path that will teach you how to get started with Python and carry out expert-level programming techniques at the end of course. Table of Contents Module 1: ...
Unit_3_How_do_you_get_to_school课件.ppt
George Polya revealed how the mathematical method of demonstrating a proof or finding an unknown can be of help in attacking any problem that can be "reasoned" out - from building a bridge to winning...
Think Java: How to Think Like a Computer Scientist by Allen B. Downey, Chris Mayfield 2016 | ISBN: 1491929561 Currently used at many colleges, universities, and high schools, this hands-on ...
「安全认证」How to Get Promoted:Developing Metrics to Show How Threat Intel Works - 恶意软件 数据安全 防火墙 身份管理 安全体系 安全漏洞
在提供的资源中,"How to Create an Object Class in MATLAB.mp4"可能是一个视频教程,详细展示了如何实际操作创建对象类的过程,而"How to Create an Object Class in MATLAB - 韩语 中文(简体)(双语).srt"则可能...
How to write and publish a scientific paper ContentsChapter 1 What Is Scientific Writing? Chapter 2 Origins of Scientific Writing Chapter 3 What Is a Scientific Paper? Chapter 4 How to Prepare the ...
This is a document about "How to be a star engineer". Share it to you .
这篇PPT课件是针对英语新目标八年级上册Unit "How do you get to school"的教学资源,旨在帮助学生学习和掌握与出行方式相关的词汇和表达。本单元的重点在于理解和运用与交通方式、时间和到达地点相关的英语句型。 ...
A Guide to MATLAB Object-Oriented Programming is the first book to deliver broad coverage of the documented and undocumented object-oriented features of MATLAB®. Unlike the typical approach of other ...
How to automate Excel from MFC and Visual C++ 2005 or Visual C++ .NET to fill or obtain data in a range using arrays