Java Doc for BasicArchiveService.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.BasicArchiveService

BasicArchiveService
public class BasicArchiveService implements ArchiveService(Code)

...



Field Summary
public  String[]CT_roles
    
public  String[]CT_tools_toImport
    
public  String[]SAKAI_roles
    
public  String[]SakaiServicesToImport
    
protected  HashSetUsersListAllowImport
    
public  String[]WT_roles
    
public  String[]WT_tools_toImport
    
protected  EntityManagerm_entityManager
     Dependency: EntityManager.
protected  ServerConfigurationServicem_serverConfigurationService
     Dependency: ServerConfigurationService.
protected  Stringm_storagePath
     A full path and file name to the storage file.
public  HashMaptool_draft_flag
    
protected static  HashMapuserIdTrans
    


Method Summary
public  Stringarchive(String siteId)
     Create an archive for the resources of a site.
Parameters:
  siteId - The id of the site to archive.
protected static  StringarchiveSite(Site site, Document doc, Stack stack)
     Archive the site definition.
protected static  StringarchiveUsers(Site site, Document doc, Stack stack)
     Archive the users defined in this site (internal users only).
public  booleancheckSakaiRole(String siteId, String userId)
     When Sakai is importing an item archived by Sakai, check the creator's role first.
protected  booleancheckSakaiService(String serviceName)
    
protected  booleancheckSystemRole(String system, String roleId)
     When Sakai is importing a role in site.xml, check if it is a qualified role.
public  voiddestroy()
     Final cleanup.
public  voidinit()
     Final initialization, once all dependencies are set.
public  Stringmerge(String fileName, String siteId, String creatorId)
     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)
     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)
    
protected  StringmergeUsers(Element element, HashMap useIdTrans)
     Merge the user list into the the system.
protected  voidprocessMerge(String fileName, String siteId, StringBuffer results, Map attachmentNames, String creatorId)
     Read in an archive file and merge the entries into the specified site.
public  voidsetEntityManager(EntityManager service)
     Dependency: EntityManager.
public  voidsetServerConfigurationService(ServerConfigurationService service)
     Dependency: ServerConfigurationService.
public  voidsetStoragePath(String path)
     Configuration: Set the Storage Path.
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
CT_roles
public String[] CT_roles(Code)



CT_tools_toImport
public String[] CT_tools_toImport(Code)



SAKAI_roles
public String[] SAKAI_roles(Code)



SakaiServicesToImport
public String[] SakaiServicesToImport(Code)



UsersListAllowImport
protected HashSet UsersListAllowImport(Code)



WT_roles
public String[] WT_roles(Code)



WT_tools_toImport
public String[] WT_tools_toImport(Code)



m_entityManager
protected EntityManager m_entityManager(Code)
Dependency: EntityManager.



m_serverConfigurationService
protected ServerConfigurationService m_serverConfigurationService(Code)
Dependency: ServerConfigurationService.



m_storagePath
protected String m_storagePath(Code)
A full path and file name to the storage file.



tool_draft_flag
public HashMap tool_draft_flag(Code)



userIdTrans
protected static HashMap userIdTrans(Code)





Method Detail
archive
public String archive(String siteId)(Code)
Create an archive for the resources of a site.
Parameters:
  siteId - The id of the site to archive. A log of messages from the archive.



archiveSite
protected static String archiveSite(Site site, Document doc, Stack stack)(Code)
Archive the site definition.
Parameters:
  site - the site.
Parameters:
  doc - The document to contain the xml.
Parameters:
  stack - The stack of elements, the top of which will be the containingelement of the "site" element.



archiveUsers
protected static String archiveUsers(Site site, Document doc, Stack stack)(Code)
Archive the users defined in this site (internal users only).
Parameters:
  site - the site.
Parameters:
  doc - The document to contain the xml.
Parameters:
  stack - The stack of elements, the top of which will be the containingelement of the "site" element.



checkSakaiRole
public boolean checkSakaiRole(String siteId, String userId)(Code)
When Sakai is importing an item archived by Sakai, check the creator's role first. The item is imported when the role is in the acceptance list,
Parameters:
  siteId -
Parameters:
  userId - boolean value - true: the role is accepted for importing; otherwise, not;



checkSakaiService
protected boolean checkSakaiService(String serviceName)(Code)



checkSystemRole
protected boolean checkSystemRole(String system, String roleId)(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;



destroy
public void destroy()(Code)
Final cleanup.



init
public void init()(Code)
Final initialization, once all dependencies are set.



merge
public String merge(String fileName, String siteId, String creatorId)(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)(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) 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.



mergeUsers
protected String mergeUsers(Element element, HashMap useIdTrans) throws IdInvalidException, IdUsedException, PermissionException(Code)
Merge the user list into the the system. Translate the id to the siteId.
Parameters:
  element - The XML DOM tree of messages to merge.



processMerge
protected void processMerge(String fileName, String siteId, StringBuffer results, Map attachmentNames, String creatorId)(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



setEntityManager
public void setEntityManager(EntityManager service)(Code)
Dependency: EntityManager.
Parameters:
  service - The EntityManager.



setServerConfigurationService
public void setServerConfigurationService(ServerConfigurationService service)(Code)
Dependency: ServerConfigurationService.
Parameters:
  service - The ServerConfigurationService.



setStoragePath
public void setStoragePath(String path)(Code)
Configuration: Set the Storage Path.
Parameters:
  path - The storage path.



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.