Java Doc for SiteMerger.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » archive » impl » 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 » ERP CRM Financial » sakai » org.sakaiproject.archive.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.archive.impl.SiteMerger

SiteMerger
public class SiteMerger (Code)


Field Summary
protected  HashSetUsersListAllowImport
    
protected  AuthzGroupServicem_authzGroupService
    
protected  SecurityServicem_securityService
    
protected  SiteServicem_siteService
    
protected  UserDirectoryServicem_userDirectoryService
    
protected static  HashMapuserIdTrans
    


Method Summary
protected  booleancheckSakaiService(boolean m_filterSakaiServices, String[] m_filteredSakaiServices, String serviceName)
    
protected  booleancheckSystemRole(String system, String roleId, boolean filterSakaiRoles, String[] filteredSakaiRoles)
     When Sakai is importing a role in site.xml, check if it is a qualified role.
public  Stringmerge(String fileName, String siteId, String creatorId, String m_storagePath, boolean filterSakaiServices, String[] filteredSakaiServices, boolean filterSakaiRoles, String[] filteredSakaiRoles)
     Process a merge for the file, or if it's a directory, for all contained files (one level deep).
protected  voidmergeSite(String siteId, String fromSiteId, Element element, HashMap useIdTrans, String creatorId, boolean filterSakaiRoles, String[] filteredSakaiRoles)
     Merge the site definition from the site part of the archive file into the site service.
protected  voidmergeSiteInfo(Element el, String siteId)
     Merge the site info like description from the site part of the archive file into the site service.
protected  voidmergeSiteRoles(Element el, String siteId, HashMap useIdTrans, boolean filterSakaiRoles, String[] filteredSakaiRoles)
    
protected  voidprocessMerge(String fileName, String siteId, StringBuffer results, Map attachmentNames, String creatorId, boolean filterSakaiService, String[] filteredSakaiService, boolean filterSakaiRoles, String[] filteredSakaiRoles)
     Read in an archive file and merge the entries into the specified site.
public  voidsetAuthzGroupService(AuthzGroupService service)
    
public  voidsetSecurityService(SecurityService service)
    
public  voidsetSiteService(SiteService service)
    
public  voidsetUserDirectoryService(UserDirectoryService service)
    
protected  StringtranslateServiceName(String name)
     Old archives have the old CHEF 1.2 service names...
protected  voidunlock(String lock, String reference)
     Check security permission.

Field Detail
UsersListAllowImport
protected HashSet UsersListAllowImport(Code)



m_authzGroupService
protected AuthzGroupService m_authzGroupService(Code)



m_securityService
protected SecurityService m_securityService(Code)



m_siteService
protected SiteService m_siteService(Code)



m_userDirectoryService
protected UserDirectoryService m_userDirectoryService(Code)



userIdTrans
protected static HashMap userIdTrans(Code)





Method Detail
checkSakaiService
protected boolean checkSakaiService(boolean m_filterSakaiServices, String[] m_filteredSakaiServices, String serviceName)(Code)



checkSystemRole
protected boolean checkSystemRole(String system, String roleId, boolean filterSakaiRoles, String[] filteredSakaiRoles)(Code)
When Sakai is importing a role in site.xml, check if it is a qualified role.
Parameters:
  roleId - boolean value - true: the role is accepted for importing; otherwise, not;



merge
public String merge(String fileName, String siteId, String creatorId, String m_storagePath, boolean filterSakaiServices, String[] filteredSakaiServices, boolean filterSakaiRoles, String[] filteredSakaiRoles)(Code)
Process a merge for the file, or if it's a directory, for all contained files (one level deep).
Parameters:
  fileName - The site name (for the archive file) to read from.
Parameters:
  mergeId - The id string to use to make ids in the merge consistent and unique.
Parameters:
  creatorId - The creator idIf null or blank, the date/time string of the merge is used.



mergeSite
protected void mergeSite(String siteId, String fromSiteId, Element element, HashMap useIdTrans, String creatorId, boolean filterSakaiRoles, String[] filteredSakaiRoles)(Code)
Merge the site definition from the site part of the archive file into the site service. Translate the id to the siteId.
Parameters:
  siteId - The id of the site getting imported into.
Parameters:
  fromSiteId - The id of the site the archive was made from.
Parameters:
  element - The XML DOM tree of messages to merge.
Parameters:
  creatorId - The creator id



mergeSiteInfo
protected void mergeSiteInfo(Element el, String siteId) throws IdInvalidException, IdUsedException, PermissionException, IdUnusedException, InUseException(Code)
Merge the site info like description from the site part of the archive file into the site service.
Parameters:
  element - The XML DOM tree of messages to merge.
Parameters:
  siteId - The id of the site getting imported into.



mergeSiteRoles
protected void mergeSiteRoles(Element el, String siteId, HashMap useIdTrans, boolean filterSakaiRoles, String[] filteredSakaiRoles) throws PermissionException(Code)
Merge the the permission-roles settings into the site
Parameters:
  element - The XML DOM tree of messages to merge.
Parameters:
  siteId - The id of the site getting imported into.



processMerge
protected void processMerge(String fileName, String siteId, StringBuffer results, Map attachmentNames, String creatorId, boolean filterSakaiService, String[] filteredSakaiService, boolean filterSakaiRoles, String[] filteredSakaiRoles)(Code)
Read in an archive file and merge the entries into the specified site.
Parameters:
  fileName - The site name (for the archive file) to read from.
Parameters:
  siteId - The id of the site to merge the content into.
Parameters:
  results - A buffer to accumulate result messages.
Parameters:
  attachmentNames - A map of old to new attachment names.
Parameters:
  useIdTrans - A map of old WorkTools id to new Ctools id
Parameters:
  creatorId - The creator id



setAuthzGroupService
public void setAuthzGroupService(AuthzGroupService service)(Code)



setSecurityService
public void setSecurityService(SecurityService service)(Code)



setSiteService
public void setSiteService(SiteService service)(Code)



setUserDirectoryService
public void setUserDirectoryService(UserDirectoryService service)(Code)



translateServiceName
protected String translateServiceName(String name)(Code)
Old archives have the old CHEF 1.2 service names...



unlock
protected void unlock(String lock, String reference) throws PermissionException(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  reference - The resource's reference string, or null if no resource is involved.
exception:
  PermissionException - thrown if the user does not have access



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.