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 a PhD。第五版
How to Get Ideas - Jack Foster.pdf
Do you feel like you'... If you want to get a promotion, you'll need to be a patient team player while also being an ambitious self-promoter. It's a difficult balance to strike, but these tips can help.
intending to embark on a research degree it will introduce you to the system and, by increasing your understanding, help you to improve your choice of university, college, department and supervisor.
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
一本经典的指导读博的好书,正在读博士的兄弟们可以看看,会有一定收获的。
How to Get IPC MJPEG Stream via HTTP Commands
如何最大程度的利用EDA仿真软件进行系统和器件分析,观点透彻独到
From proposal to examination, producing a dissertation or thesis is a challenge. Grounded in decades of experience with research training and supervision, this fully updated and revised edition takes ...
How to Write a World Class Paper
the document describes how to build a cascade classifier for object detection with haar features
How to Write a Good Scientific Paper by Chris A. Mack is a valuable resource for all students and faculty in science and engineering. SPIE is pleased to make it available here at no charge as a PDF ...
How to get SAP Best Practices
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 ...
如何从头开始构建autoML,Bridging WebML to model-driven engineering: From document type definitions to meta object facility,Meta-models are a prerequisite for model-driven engineering (MDE) in general...
How to Read a Book, originally published in 1940, has become a rare phenomenon, a living classic. It is the best and most successful guide to reading comprehension for the general reader. And now it ...
如何写出好的一流文章,elsevier的一篇报告,还有挺不错的。
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: ...
A DB2 SQL Query - how to get the RACF groups on specified tables
Unit_3_How_do_you_get_to_school课件.ppt