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
29 How to Get Your App Featured on the App Store 29 How to Get Your App Featured on the App Store
How to Get Notifications from a .NET Web Service。
How to Get a Cross-Browser Reference to an HTML Object
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.
How to get current user of sharepoint 2013
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 ...
This demonstrates how to retrieve the file size from a specified file.
How to Create an Object Class in MATLAB.zip
How to get SAP Best Practices
28 How to Get Press Coverage for Your App 28 How to Get Press Coverage for Your App