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


org.theospi.portfolio.style.impl.StyleManagerImpl

StyleManagerImpl
public class StyleManagerImpl extends HibernateDaoSupport implements StyleManager(Code)




Method Summary
protected  voidaddNode(Element parentNode, String name, String value)
    
protected  StringbuildGlobalSiteList()
    
protected  StringcalculateStyleHash(Style style)
    
protected  booleancheckStyleConsumption(Id styleId)
    
protected  DocumentcreateStyleAsXml(Style style)
    
public  booleandeleteStyle(Id styleId)
    
public  CollectionfindGlobalStyles(Agent agent)
    
protected  StylefindMatchingStyle(Style style)
    
public  CollectionfindPublishedStyles(String currentWorksiteId)
    
public  CollectionfindSiteStyles(String currentWorksiteId)
    
public  AgentManagergetAgentManager()
    
public  AuthenticationManagergetAuthnManager()
    
public  AuthorizationFacadegetAuthzManager()
    
public  ListgetConsumers()
    
public  ContentHostingServicegetContentHosting()
    
public  ListgetGlobalSiteTypes()
    
public  ListgetGlobalSites()
    
public  IdManagergetIdManager()
    
public  StylegetLightWeightStyle(Id styleId)
    
public  LockManagergetLockManager()
    
public  NodegetNode(Id artifactId)
    
public  NodegetNode(Reference ref)
    
protected  intgetNodeHash(Node node)
    
public  SecurityServicegetSecurityService()
    
public  StylegetStyle(Id styleId)
    
public  CollectiongetStylesForWarehouse()
    
public  WorksiteManagergetWorksiteManager()
    
protected  voidimportAttachmentRef(ContentCollection fileParent, ZipEntry currentEntry, String siteId, ZipInputStream zis, Map attachmentMap)
    
protected  voidimportStyle(String siteId, InputStream is, Map styleMap)
    
public  MapimportStyleList(ContentCollection parent, String siteId, InputStream in)
    
public  voidinit()
    
public  booleanisAutoDdl()
    
public  booleanisGlobal()
    
protected  voidlockStyleFiles(Style style)
    
public  StylemergeStyle(Style style)
    
public  StylemergeStyle(Style style, boolean checkAuthz)
    
public  voidpackageStyleForExport(Set styleIds, OutputStream os)
    
protected  voidpostPocessAttachments(Collection styles, Map attachmentMap)
    
protected  voidpostProcessStyleFile(Style style, Map attachmentMap)
    
protected  voidprocessStyle(String styleId, ZipOutputStream zos, List exportedRefs)
    
protected  voidprocessStyleFile(ZipOutputStream zos, Node node)
    
protected  byte[]readStreamToBytes(InputStream inStream)
    
public  voidremoveFromSession(Object obj)
    
public  voidsetAgentManager(AgentManager agentManager)
    
public  voidsetAuthnManager(AuthenticationManager authnManager)
    
public  voidsetAuthzManager(AuthorizationFacade authzManager)
    
public  voidsetAutoDdl(boolean autoDdl)
    
public  voidsetConsumers(List consumers)
    
public  voidsetContentHosting(ContentHostingService contentHosting)
    
public  voidsetGlobalSiteTypes(List globalSiteTypes)
    
public  voidsetGlobalSites(List globalSites)
    
public  voidsetIdManager(IdManager idManager)
    
public  voidsetLockManager(LockManager lockManager)
    
public  voidsetSecurityService(SecurityService securityService)
    
public  voidsetWorksiteManager(WorksiteManager worksiteManager)
    
protected  voidstoreFileInZip(ZipOutputStream zos, InputStream in, String entryName)
    
public  StylestoreStyle(Style style)
    
public  StylestoreStyle(Style style, boolean checkAuthz)
    
protected  voidupdateFields(Style style, boolean checkAuthz)
    
protected  voidupdateStyleHash()
    



Method Detail
addNode
protected void addNode(Element parentNode, String name, String value)(Code)



buildGlobalSiteList
protected String buildGlobalSiteList()(Code)



calculateStyleHash
protected String calculateStyleHash(Style style)(Code)

Parameters:
  style - The calculated hash string using the Style file's content (the css file)



checkStyleConsumption
protected boolean checkStyleConsumption(Id styleId)(Code)



createStyleAsXml
protected Document createStyleAsXml(Style style)(Code)



deleteStyle
public boolean deleteStyle(Id styleId)(Code)



findGlobalStyles
public Collection findGlobalStyles(Agent agent)(Code)



findMatchingStyle
protected Style findMatchingStyle(Style style)(Code)

Parameters:
  style - Returns the first Style object it finds that is either globally published,or in the same site and also has the same styleHash value.



findPublishedStyles
public Collection findPublishedStyles(String currentWorksiteId)(Code)



findSiteStyles
public Collection findSiteStyles(String currentWorksiteId)(Code)



getAgentManager
public AgentManager getAgentManager()(Code)



getAuthnManager
public AuthenticationManager getAuthnManager()(Code)



getAuthzManager
public AuthorizationFacade getAuthzManager()(Code)



getConsumers
public List getConsumers()(Code)



getContentHosting
public ContentHostingService getContentHosting()(Code)



getGlobalSiteTypes
public List getGlobalSiteTypes()(Code)



getGlobalSites
public List getGlobalSites()(Code)



getIdManager
public IdManager getIdManager()(Code)



getLightWeightStyle
public Style getLightWeightStyle(Id styleId)(Code)



getLockManager
public LockManager getLockManager()(Code)



getNode
public Node getNode(Id artifactId)(Code)



getNode
public Node getNode(Reference ref)(Code)



getNodeHash
protected int getNodeHash(Node node)(Code)



getSecurityService
public SecurityService getSecurityService()(Code)
the securityService



getStyle
public Style getStyle(Id styleId)(Code)



getStylesForWarehouse
public Collection getStylesForWarehouse()(Code)



getWorksiteManager
public WorksiteManager getWorksiteManager()(Code)



importAttachmentRef
protected void importAttachmentRef(ContentCollection fileParent, ZipEntry currentEntry, String siteId, ZipInputStream zis, Map attachmentMap)(Code)



importStyle
protected void importStyle(String siteId, InputStream is, Map styleMap) throws IOException(Code)
given a stream this reads in an xml style and places the new style into the map
Parameters:
  siteId -
Parameters:
  is -
Parameters:
  styleMap -
throws:
  IOException -



importStyleList
public Map importStyleList(ContentCollection parent, String siteId, InputStream in) throws IOException(Code)

Parameters:
  parent - the parent resource folder where attachments go
Parameters:
  siteId - the site which will recieve the imported "stuff"
Parameters:
  in - The Input stream representing the output stream of the export Map contains a map with keys being of type String as old Ids and the values as being the Style object



init
public void init()(Code)



isAutoDdl
public boolean isAutoDdl()(Code)



isGlobal
public boolean isGlobal()(Code)



lockStyleFiles
protected void lockStyleFiles(Style style)(Code)



mergeStyle
public Style mergeStyle(Style style)(Code)



mergeStyle
public Style mergeStyle(Style style, boolean checkAuthz)(Code)



packageStyleForExport
public void packageStyleForExport(Set styleIds, OutputStream os) throws IOException(Code)



postPocessAttachments
protected void postPocessAttachments(Collection styles, Map attachmentMap)(Code)



postProcessStyleFile
protected void postProcessStyleFile(Style style, Map attachmentMap)(Code)



processStyle
protected void processStyle(String styleId, ZipOutputStream zos, List exportedRefs) throws IOException(Code)



processStyleFile
protected void processStyleFile(ZipOutputStream zos, Node node) throws ServerOverloadException, IOException(Code)



readStreamToBytes
protected byte[] readStreamToBytes(InputStream inStream) throws IOException(Code)



removeFromSession
public void removeFromSession(Object obj)(Code)



setAgentManager
public void setAgentManager(AgentManager agentManager)(Code)



setAuthnManager
public void setAuthnManager(AuthenticationManager authnManager)(Code)



setAuthzManager
public void setAuthzManager(AuthorizationFacade authzManager)(Code)



setAutoDdl
public void setAutoDdl(boolean autoDdl)(Code)



setConsumers
public void setConsumers(List consumers)(Code)



setContentHosting
public void setContentHosting(ContentHostingService contentHosting)(Code)



setGlobalSiteTypes
public void setGlobalSiteTypes(List globalSiteTypes)(Code)



setGlobalSites
public void setGlobalSites(List globalSites)(Code)



setIdManager
public void setIdManager(IdManager idManager)(Code)



setLockManager
public void setLockManager(LockManager lockManager)(Code)



setSecurityService
public void setSecurityService(SecurityService securityService)(Code)

Parameters:
  securityService - the securityService to set



setWorksiteManager
public void setWorksiteManager(WorksiteManager worksiteManager)(Code)



storeFileInZip
protected void storeFileInZip(ZipOutputStream zos, InputStream in, String entryName) throws IOException(Code)



storeStyle
public Style storeStyle(Style style)(Code)



storeStyle
public Style storeStyle(Style style, boolean checkAuthz)(Code)



updateFields
protected void updateFields(Style style, boolean checkAuthz)(Code)



updateStyleHash
protected void updateStyleHash()(Code)



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