Package lumis.portal.css
Class CssManager
- java.lang.Object
-
- lumis.portal.css.CssManager
-
- All Implemented Interfaces:
ICssManager
,IConfigDeleter
public class CssManager extends Object implements ICssManager
Manager for Css operations- Since:
- 4.0.0
- Version:
- $Revision: 20253 $ $Date: 2017-06-14 13:44:54 -0300 (Wed, 14 Jun 2017) $
-
-
Constructor Summary
Constructors Constructor Description CssManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
add(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction)
Add a CSS.void
addOrUpdate(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction)
void
delete(SessionConfig sessionConfig, String cssId, ITransaction transaction)
Delete a CSS.void
deleteConfig(DeserializationContext deserializationContext, String configId)
String
deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node cssConfigNode, ITransaction transaction)
Deserialize a CSS Configuration from a XML documentCssConfig
get(SessionConfig sessionConfig, String cssId, ITransaction transaction)
Get a CSS configuration.List<CssConfig>
getAll(SessionConfig sessionConfig, ITransaction transaction)
Collection<String>
getChannelIdsUsingCss(SessionConfig sessionConfig, String cssId, ITransaction transaction)
Collection<String>
getPageIdsUsingCss(SessionConfig sessionConfig, String cssId, ITransaction transaction)
void
serialize(SessionConfig sessionConfig, String cssId, 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 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, 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, 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, String cssId, 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 String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, 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 Collection<String> getPageIdsUsingCss(SessionConfig sessionConfig, String cssId, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
getPageIdsUsingCss
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
getChannelIdsUsingCss
public Collection<String> getChannelIdsUsingCss(SessionConfig sessionConfig, String cssId, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
getChannelIdsUsingCss
in interfaceICssManager
- Throws:
ManagerException
PortalException
-
deleteConfig
public void deleteConfig(DeserializationContext deserializationContext, String configId) throws PortalException
- Specified by:
deleteConfig
in interfaceIConfigDeleter
- Throws:
PortalException
-
getAll
public List<CssConfig> getAll(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
- Throws:
ManagerException
PortalException
-
-