com.liferay.portal.mirage.custom
Class ContentServiceImpl

java.lang.Object
  extended by com.liferay.portal.mirage.custom.ContentServiceImpl
All Implemented Interfaces:
com.sun.portal.cms.mirage.service.custom.ContentService

public class ContentServiceImpl
extends java.lang.Object
implements com.sun.portal.cms.mirage.service.custom.ContentService

View Source

Author:
Jorge Ferrer

Constructor Summary
ContentServiceImpl()
           
 
Method Summary
 void checkinContent(com.sun.portal.cms.mirage.model.custom.Content content, java.lang.String username)
           
 com.sun.portal.cms.mirage.model.custom.VersionableContent checkoutContent(java.lang.String contentName, java.lang.String contentTypeName, java.lang.String username)
           
 void createContent(com.sun.portal.cms.mirage.model.custom.Content content, java.lang.String username)
           
 void deleteContent(java.lang.String contentName, java.lang.String contentTypeName)
           
 com.sun.portal.cms.mirage.model.custom.Content getContentByNameAndType(java.lang.String contentName, java.lang.String contentTypeName, java.lang.String username)
           
 com.sun.portal.cms.mirage.model.custom.Content getContentByUUID(java.lang.String uuid, com.sun.portal.cms.mirage.model.core.User user)
           
 com.sun.portal.cms.mirage.model.custom.VersionableContent getContentByVersion(java.lang.String contentName, java.lang.String contentTypeName, java.lang.String versionName, com.sun.portal.cms.mirage.model.core.User user)
           
 java.util.List<java.lang.String> getContentNamesByType(java.lang.String contentTypeName)
           
 java.util.List<com.sun.portal.cms.mirage.model.custom.Content> getContentsByType(java.lang.String contentTypeUUID, java.lang.String username)
           
 java.lang.String getContentURL(java.lang.String appURL, java.lang.String UUID)
           
 java.util.List<java.lang.String> getVersionNames(java.lang.String contentName, java.lang.String contentTypeName, com.sun.portal.cms.mirage.model.core.User user)
           
 java.util.List<com.sun.portal.cms.mirage.model.custom.VersionableContent> getVersions(java.lang.String contentName, java.lang.String contentTypeName, com.sun.portal.cms.mirage.model.core.User user)
           
 void unCheckoutContent(java.lang.String contentName, java.lang.String contentTypeName, java.lang.String user)
           
 void updateContent(com.sun.portal.cms.mirage.model.custom.Content content, java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentServiceImpl

public ContentServiceImpl()
Method Detail

createContent

public void createContent(com.sun.portal.cms.mirage.model.custom.Content content,
                          java.lang.String username)
                   throws com.sun.portal.cms.mirage.exception.CMSException,
                          com.sun.portal.cms.mirage.exception.TemplateNotFoundException
Specified by:
createContent in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException
com.sun.portal.cms.mirage.exception.TemplateNotFoundException

deleteContent

public void deleteContent(java.lang.String contentName,
                          java.lang.String contentTypeName)
                   throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
deleteContent in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getContentByNameAndType

public com.sun.portal.cms.mirage.model.custom.Content getContentByNameAndType(java.lang.String contentName,
                                                                              java.lang.String contentTypeName,
                                                                              java.lang.String username)
                                                                       throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getContentByNameAndType in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getContentByUUID

public com.sun.portal.cms.mirage.model.custom.Content getContentByUUID(java.lang.String uuid,
                                                                       com.sun.portal.cms.mirage.model.core.User user)
                                                                throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getContentByUUID in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getContentNamesByType

public java.util.List<java.lang.String> getContentNamesByType(java.lang.String contentTypeName)
                                                       throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getContentNamesByType in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

checkinContent

public void checkinContent(com.sun.portal.cms.mirage.model.custom.Content content,
                           java.lang.String username)
                    throws com.sun.portal.cms.mirage.exception.CMSException,
                           com.sun.portal.cms.mirage.exception.TemplateNotFoundException
Specified by:
checkinContent in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException
com.sun.portal.cms.mirage.exception.TemplateNotFoundException

checkoutContent

public com.sun.portal.cms.mirage.model.custom.VersionableContent checkoutContent(java.lang.String contentName,
                                                                                 java.lang.String contentTypeName,
                                                                                 java.lang.String username)
                                                                          throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
checkoutContent in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getContentByVersion

public com.sun.portal.cms.mirage.model.custom.VersionableContent getContentByVersion(java.lang.String contentName,
                                                                                     java.lang.String contentTypeName,
                                                                                     java.lang.String versionName,
                                                                                     com.sun.portal.cms.mirage.model.core.User user)
                                                                              throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getContentByVersion in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getContentURL

public java.lang.String getContentURL(java.lang.String appURL,
                                      java.lang.String UUID)
Specified by:
getContentURL in interface com.sun.portal.cms.mirage.service.custom.ContentService

getContentsByType

public java.util.List<com.sun.portal.cms.mirage.model.custom.Content> getContentsByType(java.lang.String contentTypeUUID,
                                                                                        java.lang.String username)
                                                                                 throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getContentsByType in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getVersionNames

public java.util.List<java.lang.String> getVersionNames(java.lang.String contentName,
                                                        java.lang.String contentTypeName,
                                                        com.sun.portal.cms.mirage.model.core.User user)
                                                 throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getVersionNames in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

getVersions

public java.util.List<com.sun.portal.cms.mirage.model.custom.VersionableContent> getVersions(java.lang.String contentName,
                                                                                             java.lang.String contentTypeName,
                                                                                             com.sun.portal.cms.mirage.model.core.User user)
                                                                                      throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
getVersions in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

unCheckoutContent

public void unCheckoutContent(java.lang.String contentName,
                              java.lang.String contentTypeName,
                              java.lang.String user)
                       throws com.sun.portal.cms.mirage.exception.CMSException
Specified by:
unCheckoutContent in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException

updateContent

public void updateContent(com.sun.portal.cms.mirage.model.custom.Content content,
                          java.lang.String username)
                   throws com.sun.portal.cms.mirage.exception.CMSException,
                          com.sun.portal.cms.mirage.exception.TemplateNotFoundException
Specified by:
updateContent in interface com.sun.portal.cms.mirage.service.custom.ContentService
Throws:
com.sun.portal.cms.mirage.exception.CMSException
com.sun.portal.cms.mirage.exception.TemplateNotFoundException