| org.theospi.portfolio.style.impl.StyleManagerImpl
StyleManagerImpl | public class StyleManagerImpl extends HibernateDaoSupport implements StyleManager(Code) | | |
Method Summary | |
protected void | addNode(Element parentNode, String name, String value) | protected String | buildGlobalSiteList() | protected String | calculateStyleHash(Style style) | protected boolean | checkStyleConsumption(Id styleId) | protected Document | createStyleAsXml(Style style) | public boolean | deleteStyle(Id styleId) | public Collection | findGlobalStyles(Agent agent) | protected Style | findMatchingStyle(Style style) | public Collection | findPublishedStyles(String currentWorksiteId) | public Collection | findSiteStyles(String currentWorksiteId) | public AgentManager | getAgentManager() | public AuthenticationManager | getAuthnManager() | public AuthorizationFacade | getAuthzManager() | public List | getConsumers() | public ContentHostingService | getContentHosting() | public List | getGlobalSiteTypes() | public List | getGlobalSites() | public IdManager | getIdManager() | public Style | getLightWeightStyle(Id styleId) | public LockManager | getLockManager() | public Node | getNode(Id artifactId) | public Node | getNode(Reference ref) | protected int | getNodeHash(Node node) | public SecurityService | getSecurityService() | public Style | getStyle(Id styleId) | public Collection | getStylesForWarehouse() | public WorksiteManager | getWorksiteManager() | protected void | importAttachmentRef(ContentCollection fileParent, ZipEntry currentEntry, String siteId, ZipInputStream zis, Map attachmentMap) | protected void | importStyle(String siteId, InputStream is, Map styleMap) | public Map | importStyleList(ContentCollection parent, String siteId, InputStream in) | public void | init() | public boolean | isAutoDdl() | public boolean | isGlobal() | protected void | lockStyleFiles(Style style) | public Style | mergeStyle(Style style) | public Style | mergeStyle(Style style, boolean checkAuthz) | public void | packageStyleForExport(Set styleIds, OutputStream os) | protected void | postPocessAttachments(Collection styles, Map attachmentMap) | protected void | postProcessStyleFile(Style style, Map attachmentMap) | protected void | processStyle(String styleId, ZipOutputStream zos, List exportedRefs) | protected void | processStyleFile(ZipOutputStream zos, Node node) | protected byte[] | readStreamToBytes(InputStream inStream) | public void | removeFromSession(Object obj) | public void | setAgentManager(AgentManager agentManager) | public void | setAuthnManager(AuthenticationManager authnManager) | public void | setAuthzManager(AuthorizationFacade authzManager) | public void | setAutoDdl(boolean autoDdl) | public void | setConsumers(List consumers) | public void | setContentHosting(ContentHostingService contentHosting) | public void | setGlobalSiteTypes(List globalSiteTypes) | public void | setGlobalSites(List globalSites) | public void | setIdManager(IdManager idManager) | public void | setLockManager(LockManager lockManager) | public void | setSecurityService(SecurityService securityService) | public void | setWorksiteManager(WorksiteManager worksiteManager) | protected void | storeFileInZip(ZipOutputStream zos, InputStream in, String entryName) | public Style | storeStyle(Style style) | public Style | storeStyle(Style style, boolean checkAuthz) | protected void | updateFields(Style style, boolean checkAuthz) | protected void | updateStyleHash() |
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) | | |
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. |
getGlobalSiteTypes | public List getGlobalSiteTypes()(Code) | | |
getLightWeightStyle | public Style getLightWeightStyle(Id styleId)(Code) | | |
getNodeHash | protected int getNodeHash(Node node)(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 |
isAutoDdl | public boolean isAutoDdl()(Code) | | |
isGlobal | public boolean isGlobal()(Code) | | |
lockStyleFiles | protected void lockStyleFiles(Style style)(Code) | | |
postPocessAttachments | protected void postPocessAttachments(Collection styles, Map attachmentMap)(Code) | | |
postProcessStyleFile | protected void postProcessStyleFile(Style style, Map attachmentMap)(Code) | | |
removeFromSession | public void removeFromSession(Object obj)(Code) | | |
setAutoDdl | public void setAutoDdl(boolean autoDdl)(Code) | | |
setConsumers | public void setConsumers(List consumers)(Code) | | |
setGlobalSiteTypes | public void setGlobalSiteTypes(List globalSiteTypes)(Code) | | |
setGlobalSites | public void setGlobalSites(List globalSites)(Code) | | |
setSecurityService | public void setSecurityService(SecurityService securityService)(Code) | | Parameters: securityService - the securityService to set |
updateFields | protected void updateFields(Style style, boolean checkAuthz)(Code) | | |
updateStyleHash | protected void updateStyleHash()(Code) | | |
|
|