com.liferay.portal.mirage.service
Class ContentTypeServiceImpl
java.lang.Object
com.liferay.portal.mirage.service.ContentTypeServiceImpl
- All Implemented Interfaces:
- com.sun.portal.cms.mirage.service.custom.ContentTypeService
public class ContentTypeServiceImpl
- extends java.lang.Object
- implements com.sun.portal.cms.mirage.service.custom.ContentTypeService
View Source
- Author:
- Jorge Ferrer, Prakash Reddy, Karthik Sudarshan
Method Summary |
void |
addTemplateToContentType(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
assignDefaultTemplate(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template)
|
boolean |
checkContentTypeExists(java.lang.String contentTypeUUID)
|
void |
checkOutTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
int |
contentTypeSearchCount(com.sun.portal.cms.mirage.model.custom.Category category,
com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
|
void |
createContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
deleteContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
deleteTemplateOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template)
|
void |
deleteTemplatesOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template[] templatesToBeDeleted)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.Template> |
getAllVersionsOfTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
java.util.List<java.lang.String> |
getAvailableContentTypeNames(com.sun.portal.cms.mirage.model.custom.Category category)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.ContentType> |
getAvailableContentTypes(com.sun.portal.cms.mirage.model.custom.Category category)
|
com.sun.portal.cms.mirage.model.custom.ContentType |
getContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
com.sun.portal.cms.mirage.model.custom.ContentType |
getContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria optionalCriteria)
|
com.sun.portal.cms.mirage.model.custom.ContentType |
getContentTypeByNameAndCategory(java.lang.String contentTypeName,
com.sun.portal.cms.mirage.model.custom.Category category)
|
com.sun.portal.cms.mirage.model.custom.ContentType |
getContentTypeByUUID(java.lang.String contentTypeUUID)
|
com.sun.portal.cms.mirage.model.custom.Template |
getLatestVersionOfTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
com.sun.portal.cms.mirage.model.custom.Template |
getTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria criteria)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.Template> |
getTemplates(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria criteria)
|
int |
getTemplatesCount(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria criteria)
|
com.sun.portal.cms.mirage.model.custom.Template |
getTemplateWithUUID(java.lang.String templateUUID)
|
boolean |
isContentTypeEditable(java.lang.String contentTypeUUID)
|
protected void |
process(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
protected void |
process(com.sun.portal.cms.mirage.model.custom.Template template)
|
void |
revertChangesTemplateForTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
saveNewVersionOfTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.ContentType> |
searchContentTypes(com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.ContentType> |
searchContentTypesByCategory(com.sun.portal.cms.mirage.model.custom.Category category,
com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.Template> |
searchTemplates(com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
|
int |
searchTemplatesCount(com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
|
java.util.List<com.sun.portal.cms.mirage.model.custom.Template> |
searchTemplatesOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.search.SearchCriteria criteria)
|
void |
unassignDefaultTemplate(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
updateCategoryOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
updateContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
updateContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.UpdateCriteria updateCriteria)
|
void |
updateTemplateOfContentType(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
void |
updateTemplateOfContentType(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.UpdateCriteria criteria)
|
boolean |
validateTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentTypeServiceImpl
public ContentTypeServiceImpl()
addTemplateToContentType
public void addTemplateToContentType(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
addTemplateToContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
assignDefaultTemplate
public void assignDefaultTemplate(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template)
- Specified by:
assignDefaultTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
checkContentTypeExists
public boolean checkContentTypeExists(java.lang.String contentTypeUUID)
- Specified by:
checkContentTypeExists
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
checkOutTemplate
public void checkOutTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
checkOutTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
contentTypeSearchCount
public int contentTypeSearchCount(com.sun.portal.cms.mirage.model.custom.Category category,
com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
contentTypeSearchCount
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
createContentType
public void createContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
createContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
deleteContentType
public void deleteContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
deleteContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
deleteTemplateOfContentType
public void deleteTemplateOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
deleteTemplateOfContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
deleteTemplatesOfContentType
public void deleteTemplatesOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template[] templatesToBeDeleted)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
deleteTemplatesOfContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
getAllVersionsOfTemplate
public java.util.List<com.sun.portal.cms.mirage.model.custom.Template> getAllVersionsOfTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
getAllVersionsOfTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getAvailableContentTypeNames
public java.util.List<java.lang.String> getAvailableContentTypeNames(com.sun.portal.cms.mirage.model.custom.Category category)
- Specified by:
getAvailableContentTypeNames
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getAvailableContentTypes
public java.util.List<com.sun.portal.cms.mirage.model.custom.ContentType> getAvailableContentTypes(com.sun.portal.cms.mirage.model.custom.Category category)
- Specified by:
getAvailableContentTypes
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getContentType
public com.sun.portal.cms.mirage.model.custom.ContentType getContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
getContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
getContentType
public com.sun.portal.cms.mirage.model.custom.ContentType getContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria optionalCriteria)
- Specified by:
getContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getContentTypeByNameAndCategory
public com.sun.portal.cms.mirage.model.custom.ContentType getContentTypeByNameAndCategory(java.lang.String contentTypeName,
com.sun.portal.cms.mirage.model.custom.Category category)
- Specified by:
getContentTypeByNameAndCategory
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getContentTypeByUUID
public com.sun.portal.cms.mirage.model.custom.ContentType getContentTypeByUUID(java.lang.String contentTypeUUID)
- Specified by:
getContentTypeByUUID
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getLatestVersionOfTemplate
public com.sun.portal.cms.mirage.model.custom.Template getLatestVersionOfTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
getLatestVersionOfTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getTemplate
public com.sun.portal.cms.mirage.model.custom.Template getTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria criteria)
throws com.sun.portal.cms.mirage.exception.TemplateNotFoundException
- Specified by:
getTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.TemplateNotFoundException
getTemplates
public java.util.List<com.sun.portal.cms.mirage.model.custom.Template> getTemplates(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria criteria)
- Specified by:
getTemplates
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getTemplatesCount
public int getTemplatesCount(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.OptionalCriteria criteria)
- Specified by:
getTemplatesCount
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
getTemplateWithUUID
public com.sun.portal.cms.mirage.model.custom.Template getTemplateWithUUID(java.lang.String templateUUID)
- Specified by:
getTemplateWithUUID
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
isContentTypeEditable
public boolean isContentTypeEditable(java.lang.String contentTypeUUID)
- Specified by:
isContentTypeEditable
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
revertChangesTemplateForTemplate
public void revertChangesTemplateForTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
revertChangesTemplateForTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
saveNewVersionOfTemplate
public void saveNewVersionOfTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
saveNewVersionOfTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
searchContentTypes
public java.util.List<com.sun.portal.cms.mirage.model.custom.ContentType> searchContentTypes(com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
searchContentTypes
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
searchContentTypesByCategory
public java.util.List<com.sun.portal.cms.mirage.model.custom.ContentType> searchContentTypesByCategory(com.sun.portal.cms.mirage.model.custom.Category category,
com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
- Specified by:
searchContentTypesByCategory
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
searchTemplates
public java.util.List<com.sun.portal.cms.mirage.model.custom.Template> searchTemplates(com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
searchTemplates
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
searchTemplatesCount
public int searchTemplatesCount(com.sun.portal.cms.mirage.model.search.SearchCriteria searchCriteria)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
searchTemplatesCount
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
searchTemplatesOfContentType
public java.util.List<com.sun.portal.cms.mirage.model.custom.Template> searchTemplatesOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.search.SearchCriteria criteria)
- Specified by:
searchTemplatesOfContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
unassignDefaultTemplate
public void unassignDefaultTemplate(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
unassignDefaultTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
updateCategoryOfContentType
public void updateCategoryOfContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
updateCategoryOfContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
updateContentType
public void updateContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
updateContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
updateContentType
public void updateContentType(com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.UpdateCriteria updateCriteria)
- Specified by:
updateContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
updateTemplateOfContentType
public void updateTemplateOfContentType(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Specified by:
updateTemplateOfContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
updateTemplateOfContentType
public void updateTemplateOfContentType(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType,
com.sun.portal.cms.mirage.model.custom.UpdateCriteria criteria)
- Specified by:
updateTemplateOfContentType
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
validateTemplate
public boolean validateTemplate(com.sun.portal.cms.mirage.model.custom.Template template,
com.sun.portal.cms.mirage.model.custom.ContentType contentType)
- Specified by:
validateTemplate
in interface com.sun.portal.cms.mirage.service.custom.ContentTypeService
process
protected void process(com.sun.portal.cms.mirage.model.custom.ContentType contentType)
throws com.sun.portal.cms.mirage.exception.CMSException
- Throws:
com.sun.portal.cms.mirage.exception.CMSException
process
protected void process(com.sun.portal.cms.mirage.model.custom.Template template)
throws com.sun.portal.cms.mirage.exception.CMSException
- Throws:
com.sun.portal.cms.mirage.exception.CMSException