Java Doc for DataManager.java in  » GIS » geonetwork » org » fao » geonet » kernel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » geonetwork » org.fao.geonet.kernel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.fao.geonet.kernel.DataManager

DataManager
public class DataManager (Code)
Handles all operations on metadata (select,insert,update,delete etc...)



Constructor Summary
public  DataManager(SearchManager sm, AccessManager am, Dbms dbms, SettingManager ss, String baseURL, String htmlCacheDir)
    

Method Summary
public synchronized  booleanaddAttribute(Dbms dbms, String id, String ref, String name, String currVersion)
    
public synchronized  booleanaddElement(Dbms dbms, String id, String ref, String name, String childName, String currVersion)
    
public  voidaddSchema(String id, String xmlSchemaFile, String xmlSuggestFile, String xmlSubstitutesFile)
    
public  StringautodetectSchema(Element md)
    
public  StringcreateMetadata(Dbms dbms, String templateId, String groupOwner, SerialFactory sf, String source, int owner)
    
public  voiddeleteAllMetadataCateg(Dbms dbms, String id)
    
public synchronized  booleandeleteAttribute(Dbms dbms, String id, String ref, String name, String currVersion)
    
public synchronized  booleandeleteElement(Dbms dbms, String id, String ref, String currVersion)
    
public synchronized  voiddeleteMetadata(Dbms dbms, String id)
    
public  voiddeleteMetadataOper(Dbms dbms, String id, boolean skipAllIntranet)
    
public  ElementdoSchemaTronForEditor(String schemaPath, Element md)
    
public  StringdoSchemaTronReport(String schemaPath, Element md, String id)
    
public  booleanexistsMetadata(Dbms dbms, String id)
    
public  booleanexistsSchema(String name)
    
public  StringextractUUID(String schema, Element md)
    
public  AccessManagergetAccessManager()
    
public  ElementgetCategories(Dbms dbms, String mdId)
    
public  ElementgetElementByRef(Element md, String ref)
    
public  ElementgetKeywords()
    
public  ElementgetMetadata(ServiceContext srvContext, String id, boolean forEditing)
    
public  StringgetMetadataId(Dbms dbms, String uuid)
    
public  StringgetMetadataId(ServiceContext srvContext, String uuid)
    
public  MdInfogetMetadataInfo(Dbms dbms, String id)
    
public  StringgetMetadataUuid(Dbms dbms, String id)
    
public  StringgetNewVersion(String id)
    
public  MetadataSchemagetSchema(String name)
    
public  StringgetSchemaDir(String name)
    
public  Set<String>getSchemas()
    
public  StringgetSiteURL()
    
public  ElementgetThumbnails(Dbms dbms, String id)
    
public  StringgetVersion(String id)
    
public  voidincreasePopularity(Dbms dbms, String id)
    
public  voidindexMetadata(Dbms dbms, String id)
    
public static  voidindexMetadata(Dbms dbms, String id, SearchManager sm)
    
public  StringinsertMetadata(Dbms dbms, String schema, String groupId, Element xml, SerialFactory sf, String source, String uuid, int owner)
     Adds a metadata in xml form (the xml should be validated).
public  StringinsertMetadata(Dbms dbms, String schema, String groupOwner, Element xml, SerialFactory sf, String source, String uuid, String isTemplate, String title, int owner)
    
public  StringinsertMetadataExt(Dbms dbms, String schema, Element md, SerialFactory sf, String source, String createDate, String changeDate, String uuid, int owner, String groupOwner)
     Adds a metadata in xml form (the xml should be validated).
public  StringinsertMetadataExt(Dbms dbms, String schema, Element md, int id, String source, String createDate, String changeDate, String uuid, int owner, String groupOwner)
    
Parameters:
  source - the source of the metadata.
public  booleanisCategorySet(Dbms dbms, String mdId, String categId)
    
public  intrateMetadata(Dbms dbms, int id, String ipAddress, int rating)
    
public  ElementschemaTron(String schemaPath, Element md, String id)
    
public  voidsetCategory(Dbms dbms, String mdId, String categId)
     Adds a category to a metadata.
public  voidsetHarvestManager(HarvestManager hm)
    
public  voidsetHarvested(Dbms dbms, int id, String harvestUuid)
    
public  voidsetHarvested(Dbms dbms, int id, String harvestUuid, String harvestUri)
    
public static  voidsetNamespacePrefix(Element md)
    
public  voidsetOperation(Dbms dbms, String mdId, String grpId, String opId)
     Adds a permission to a group.
public  voidsetTemplate(Dbms dbms, int id, String isTemplate, String title)
    
public  voidsetThumbnail(Dbms dbms, String id, boolean small, String file)
    
public  ElementsetUUID(String schema, String uuid, Element md)
    
public synchronized  booleanswapElement(Dbms dbms, String id, String ref, String currVersion, boolean down)
    
public  voidunsetCategory(Dbms dbms, String mdId, String categId)
    
public  voidunsetOperation(Dbms dbms, int mdId, int groupId, int operId)
    
public  voidunsetThumbnail(Dbms dbms, String id, boolean small)
    
public  ElementupdateFixedInfo(String schema, String id, Element md, String uuid)
    
public synchronized  booleanupdateMetadata(UserSession session, Dbms dbms, String id, String currVersion, Hashtable changes, boolean validate)
    
public synchronized  booleanupdateMetadata(UserSession session, Dbms dbms, String id, Element md, boolean validate, String version)
    
public  voidupdateMetadataExt(Dbms dbms, String id, Element md, String changeDate)
    
public  voidvalidate(String schema, Element md)
    


Constructor Detail
DataManager
public DataManager(SearchManager sm, AccessManager am, Dbms dbms, SettingManager ss, String baseURL, String htmlCacheDir) throws Exception(Code)
initializes the search manager and index not-indexed metadata




Method Detail
addAttribute
public synchronized boolean addAttribute(Dbms dbms, String id, String ref, String name, String currVersion) throws Exception(Code)



addElement
public synchronized boolean addElement(Dbms dbms, String id, String ref, String name, String childName, String currVersion) throws Exception(Code)
For Editing : adds an element to a metadata ([add] link)



addSchema
public void addSchema(String id, String xmlSchemaFile, String xmlSuggestFile, String xmlSubstitutesFile) throws Exception(Code)



autodetectSchema
public String autodetectSchema(Element md)(Code)



createMetadata
public String createMetadata(Dbms dbms, String templateId, String groupOwner, SerialFactory sf, String source, int owner) throws Exception(Code)
Create a new metadata duplicating an existing template



deleteAllMetadataCateg
public void deleteAllMetadataCateg(Dbms dbms, String id) throws Exception(Code)
Remove all categories stored for a metadata



deleteAttribute
public synchronized boolean deleteAttribute(Dbms dbms, String id, String ref, String name, String currVersion) throws Exception(Code)
For Editing : removes an attribute from a metadata ([del] link)



deleteElement
public synchronized boolean deleteElement(Dbms dbms, String id, String ref, String currVersion) throws Exception(Code)
For Editing : removes an element from a metadata ([del] link)



deleteMetadata
public synchronized void deleteMetadata(Dbms dbms, String id) throws Exception(Code)
Removes a metadata



deleteMetadataOper
public void deleteMetadataOper(Dbms dbms, String id, boolean skipAllIntranet) throws Exception(Code)
Remove all operations stored for a metadata



doSchemaTronForEditor
public Element doSchemaTronForEditor(String schemaPath, Element md) throws Exception(Code)



doSchemaTronReport
public String doSchemaTronReport(String schemaPath, Element md, String id) throws Exception(Code)



existsMetadata
public boolean existsMetadata(Dbms dbms, String id) throws Exception(Code)
Returns true if the metadata exists in the database



existsSchema
public boolean existsSchema(String name)(Code)



extractUUID
public String extractUUID(String schema, Element md) throws Exception(Code)



getAccessManager
public AccessManager getAccessManager()(Code)



getCategories
public Element getCategories(Dbms dbms, String mdId) throws Exception(Code)



getElementByRef
public Element getElementByRef(Element md, String ref)(Code)
Retrieves a metadata element given it's ref



getKeywords
public Element getKeywords() throws Exception(Code)
Returns all the keywords in the system



getMetadata
public Element getMetadata(ServiceContext srvContext, String id, boolean forEditing) throws Exception(Code)
Retrieves a metadata (in xml) given its id; adds editing information if needed



getMetadataId
public String getMetadataId(Dbms dbms, String uuid) throws Exception(Code)



getMetadataId
public String getMetadataId(ServiceContext srvContext, String uuid) throws Exception(Code)



getMetadataInfo
public MdInfo getMetadataInfo(Dbms dbms, String id) throws Exception(Code)



getMetadataUuid
public String getMetadataUuid(Dbms dbms, String id) throws Exception(Code)



getNewVersion
public String getNewVersion(String id)(Code)



getSchema
public MetadataSchema getSchema(String name)(Code)



getSchemaDir
public String getSchemaDir(String name)(Code)



getSchemas
public Set<String> getSchemas()(Code)



getSiteURL
public String getSiteURL()(Code)



getThumbnails
public Element getThumbnails(Dbms dbms, String id) throws Exception(Code)



getVersion
public String getVersion(String id)(Code)



increasePopularity
public void increasePopularity(Dbms dbms, String id) throws Exception(Code)



indexMetadata
public void indexMetadata(Dbms dbms, String id) throws Exception(Code)



indexMetadata
public static void indexMetadata(Dbms dbms, String id, SearchManager sm) throws Exception(Code)



insertMetadata
public String insertMetadata(Dbms dbms, String schema, String groupId, Element xml, SerialFactory sf, String source, String uuid, int owner) throws Exception(Code)
Adds a metadata in xml form (the xml should be validated). The group id is used to setup permissions. Internal metadata fields are updated. Default operations are set.



insertMetadata
public String insertMetadata(Dbms dbms, String schema, String groupOwner, Element xml, SerialFactory sf, String source, String uuid, String isTemplate, String title, int owner) throws Exception(Code)



insertMetadataExt
public String insertMetadataExt(Dbms dbms, String schema, Element md, SerialFactory sf, String source, String createDate, String changeDate, String uuid, int owner, String groupOwner) throws Exception(Code)
Adds a metadata in xml form (the xml should be validated). This method is used to add a metadata got from a remote site. Note that neighter permissions nor lucene indexes are updated.



insertMetadataExt
public String insertMetadataExt(Dbms dbms, String schema, Element md, int id, String source, String createDate, String changeDate, String uuid, int owner, String groupOwner) throws Exception(Code)

Parameters:
  source - the source of the metadata. If null, the local siteId will be used



isCategorySet
public boolean isCategorySet(Dbms dbms, String mdId, String categId) throws Exception(Code)



rateMetadata
public int rateMetadata(Dbms dbms, int id, String ipAddress, int rating) throws Exception(Code)
Allow to rate a metadata
Parameters:
  ipAddress - IP address of the submitting client
Parameters:
  rating - range should be 1..5



schemaTron
public Element schemaTron(String schemaPath, Element md, String id) throws Exception(Code)



setCategory
public void setCategory(Dbms dbms, String mdId, String categId) throws Exception(Code)
Adds a category to a metadata. Metadata is not reindexed



setHarvestManager
public void setHarvestManager(HarvestManager hm)(Code)



setHarvested
public void setHarvested(Dbms dbms, int id, String harvestUuid) throws Exception(Code)



setHarvested
public void setHarvested(Dbms dbms, int id, String harvestUuid, String harvestUri) throws Exception(Code)



setNamespacePrefix
public static void setNamespacePrefix(Element md)(Code)



setOperation
public void setOperation(Dbms dbms, String mdId, String grpId, String opId) throws Exception(Code)
Adds a permission to a group. Metadata is not reindexed



setTemplate
public void setTemplate(Dbms dbms, int id, String isTemplate, String title) throws Exception(Code)



setThumbnail
public void setThumbnail(Dbms dbms, String id, boolean small, String file) throws Exception(Code)



setUUID
public Element setUUID(String schema, String uuid, Element md) throws Exception(Code)



swapElement
public synchronized boolean swapElement(Dbms dbms, String id, String ref, String currVersion, boolean down) throws Exception(Code)
For Editing : swap a tag with one of its sibling ([up] and [down] links)



unsetCategory
public void unsetCategory(Dbms dbms, String mdId, String categId) throws Exception(Code)



unsetOperation
public void unsetOperation(Dbms dbms, int mdId, int groupId, int operId) throws Exception(Code)



unsetThumbnail
public void unsetThumbnail(Dbms dbms, String id, boolean small) throws Exception(Code)



updateFixedInfo
public Element updateFixedInfo(String schema, String id, Element md, String uuid) throws Exception(Code)



updateMetadata
public synchronized boolean updateMetadata(UserSession session, Dbms dbms, String id, String currVersion, Hashtable changes, boolean validate) throws Exception(Code)
For Editing : updates all leaves with new values



updateMetadata
public synchronized boolean updateMetadata(UserSession session, Dbms dbms, String id, Element md, boolean validate, String version) throws Exception(Code)



updateMetadataExt
public void updateMetadataExt(Dbms dbms, String id, Element md, String changeDate) throws Exception(Code)



validate
public void validate(String schema, Element md) throws Exception(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.