lumis.portal.css
Class CssManager

Package class diagram package CssManager
java.lang.Object
  extended by lumis.portal.css.CssManager
All Implemented Interfaces:
ICssManager, IConfigDeleter

public class CssManager
extends Object
implements ICssManager

Manager for Css operations

Since:
4.0.0

Constructor Summary
CssManager()
           
 
Method Summary
 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 document
 CssConfig get(SessionConfig sessionConfig, String cssId, ITransaction transaction)
          Get a CSS configuration.
 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 outputStream
 void update(SessionConfig sessionConfig, CssConfig cssConfig, ITransaction transaction)
          Update a CSS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssManager

public CssManager()
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 interface ICssManager
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 interface ICssManager
Throws:
ManagerException
PortalException

addOrUpdate

public void addOrUpdate(SessionConfig sessionConfig,
                        CssConfig cssConfig,
                        ITransaction transaction)
                 throws ManagerException,
                        PortalException
Specified by:
addOrUpdate in interface ICssManager
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 interface ICssManager
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 interface ICssManager
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 interface ICssManager
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 interface ICssManager
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 interface ICssManager
Throws:
ManagerException
PortalException

getChannelIdsUsingCss

public Collection<String> getChannelIdsUsingCss(SessionConfig sessionConfig,
                                                String cssId,
                                                ITransaction transaction)
                                         throws ManagerException,
                                                PortalException
Specified by:
getChannelIdsUsingCss in interface ICssManager
Throws:
ManagerException
PortalException

deleteConfig

public void deleteConfig(DeserializationContext deserializationContext,
                         String configId)
                  throws PortalException
Specified by:
deleteConfig in interface IConfigDeleter
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.