Package lumis.portal.css
Class CssManager
- java.lang.Object
-
- lumis.portal.css.CssManager
-
- All Implemented Interfaces:
ICssManager
,IConfigDeleter
public class CssManager extends java.lang.Object implements ICssManager
Manager for Css operations- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description CssManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
add(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction)
Add a CSS.void
addOrUpdate(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction)
void
delete(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction)
Delete a CSS.void
deleteConfig(DeserializationContext deserializationContext, java.lang.String configId)
java.lang.String
deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Node cssConfigNode, ITransaction transaction)
Deserialize a CSS Configuration from a XML documentCssConfig
get(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction)
Get a CSS configuration.java.util.List<CssConfig>
getAll(SessionConfig sessionConfig, ITransaction transaction)
java.util.Collection<java.lang.String>
getChannelIdsUsingCss(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction)
java.util.Collection<java.lang.String>
getPageIdsUsingCss(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction)
void
serialize(SessionConfig sessionConfig, java.lang.String cssId, java.io.OutputStream outputStream, ITransaction transaction)
Serializes a CSS Configuration into XML outputStreamvoid
update(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction)
Update a CSS.
-
-
-
Method Detail
-
add
public java.lang.String add(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:ICssManager
Add a CSS.- Specified by:
add
in interfaceICssManager
- Returns:
- Returns s String.
- Throws:
ManagerException
PortalException
-
update
public void update(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:ICssManager
Update a CSS.- Specified by:
update
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
addOrUpdate
public void addOrUpdate(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
addOrUpdate
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
delete
public void delete(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:ICssManager
Delete a CSS.- Specified by:
delete
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
get
public CssConfig get(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:ICssManager
Get a CSS configuration.- Specified by:
get
in interfaceICssManager
- Returns:
- Returns a CssConfig.
- Throws:
ManagerException
PortalException
-
serialize
public void serialize(SessionConfig sessionConfig, java.lang.String cssId, java.io.OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:ICssManager
Serializes a CSS Configuration into XML outputStream- Specified by:
serialize
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
deserialize
public java.lang.String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Node cssConfigNode, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:ICssManager
Deserialize a CSS Configuration from a XML document- Specified by:
deserialize
in interfaceICssManager
- Returns:
- Returns a String.
- Throws:
ManagerException
PortalException
-
getPageIdsUsingCss
public java.util.Collection<java.lang.String> getPageIdsUsingCss(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
getPageIdsUsingCss
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
getChannelIdsUsingCss
public java.util.Collection<java.lang.String> getChannelIdsUsingCss(SessionConfig sessionConfig, java.lang.String cssId, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
getChannelIdsUsingCss
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
deleteConfig
public void deleteConfig(DeserializationContext deserializationContext, java.lang.String configId) throws PortalException
- Specified by:
deleteConfig
in interfaceIConfigDeleter
- Throws:
PortalException
-
getAll
public java.util.List<CssConfig> getAll(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
-