Class ASLayoutDataServiceImpl
- java.lang.Object
-
- net.anotheria.asg.service.AbstractASGService
-
- net.anotheria.anosite.gen.shared.service.BasicService
-
- net.anotheria.anosite.gen.shared.service.BasicCMSService
-
- net.anotheria.anosite.gen.aslayoutdata.service.ASLayoutDataServiceImpl
-
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IASLayoutDataService,net.anotheria.asg.service.ASGService,net.anotheria.asg.util.listener.IModuleListener
public class ASLayoutDataServiceImpl extends BasicCMSService implements IASLayoutDataService, net.anotheria.asg.util.listener.IModuleListener
-
-
Field Summary
-
Fields inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
MY_OWNER_ID, service
-
Fields inherited from class net.anotheria.anosite.gen.shared.service.BasicService
log
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageLayoutcreatePageLayout(PageLayout pagelayout)Creates a new PageLayout object.java.util.List<PageLayout>createPageLayouts(java.util.List<PageLayout> list)Creates multiple new PageLayout objects.PageStylecreatePageStyle(PageStyle pagestyle)Creates a new PageStyle object.java.util.List<PageStyle>createPageStyles(java.util.List<PageStyle> list)Creates multiple new PageStyle objects.voiddeletePageLayout(java.lang.String id)Deletes a PageLayout object by id.voiddeletePageLayout(PageLayout pagelayout)Deletes a PageLayout object.voiddeletePageLayouts(java.util.List<PageLayout> list)Deletes multiple PageLayout object.voiddeletePageStyle(java.lang.String id)Deletes a PageStyle object by id.voiddeletePageStyle(PageStyle pagestyle)Deletes a PageStyle object.voiddeletePageStyles(java.util.List<PageStyle> list)Deletes multiple PageStyle object.voidexecuteParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data)Save transferred document by its own type.net.anotheria.anodoc.query2.QueryResultexecuteQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on all data objects (documents, vo) which are part of this module and managed by this servicenet.anotheria.anodoc.query2.QueryResultexecuteQueryOnPageLayouts(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on PageLayoutsnet.anotheria.anodoc.query2.QueryResultexecuteQueryOnPageStyles(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on PageStylesnet.anotheria.util.xml.XMLNodeexportPageLayoutsToXML()net.anotheria.util.xml.XMLNodeexportPageLayoutsToXML(java.util.List<PageLayout> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportPageStylesToXML()net.anotheria.util.xml.XMLNodeexportPageStylesToXML(java.util.List<PageStyle> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.voidfetchPageLayout(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this PageLayout document.voidfetchPageStyle(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this PageStyle document.PageLayoutgetPageLayout(java.lang.String id)Returns the PageLayout object with the specified id.java.util.List<PageLayout>getPageLayouts()Returns all PageLayouts objects stored.java.util.List<PageLayout>getPageLayouts(java.util.List<java.lang.String> ids)Returns the PageLayout objects with the specified ids.java.util.List<PageLayout>getPageLayouts(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)Returns the PageLayout objects with the specified ids, sorted by given sorttype.java.util.List<PageLayout>getPageLayouts(net.anotheria.util.slicer.Segment aSegment)Returns PageLayout objects segment.java.util.List<PageLayout>getPageLayouts(net.anotheria.util.sorter.SortType sortType)Returns all PageLayouts objects sorted by given sortType.java.util.List<PageLayout>getPageLayoutsByProperty(java.lang.String propertyName, java.lang.Object value)Returns all PageLayout objects, where property with given name equals object.java.util.List<PageLayout>getPageLayoutsByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all PageLayout objects, where property with given name equals object, sorted.java.util.List<PageLayout>getPageLayoutsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all PageLayout objects, where property matches.java.util.List<PageLayout>getPageLayoutsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns PageLayout objects segment, where property matched.java.util.List<PageLayout>getPageLayoutsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns PageLayout objects segment, where property matched, sorted.java.util.List<PageLayout>getPageLayoutsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all PageLayout objects, where property matches, sortedintgetPageLayoutsCount()Returns PageLayout objects count.PageStylegetPageStyle(java.lang.String id)Returns the PageStyle object with the specified id.java.util.List<PageStyle>getPageStyles()Returns all PageStyles objects stored.java.util.List<PageStyle>getPageStyles(java.util.List<java.lang.String> ids)Returns the PageStyle objects with the specified ids.java.util.List<PageStyle>getPageStyles(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)Returns the PageStyle objects with the specified ids, sorted by given sorttype.java.util.List<PageStyle>getPageStyles(net.anotheria.util.slicer.Segment aSegment)Returns PageStyle objects segment.java.util.List<PageStyle>getPageStyles(net.anotheria.util.sorter.SortType sortType)Returns all PageStyles objects sorted by given sortType.java.util.List<PageStyle>getPageStylesByProperty(java.lang.String propertyName, java.lang.Object value)Returns all PageStyle objects, where property with given name equals object.java.util.List<PageStyle>getPageStylesByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all PageStyle objects, where property with given name equals object, sorted.java.util.List<PageStyle>getPageStylesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all PageStyle objects, where property matches.java.util.List<PageStyle>getPageStylesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns PageStyle objects segment, where property matched.java.util.List<PageStyle>getPageStylesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns PageStyle objects segment, where property matched, sorted.java.util.List<PageStyle>getPageStylesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all PageStyle objects, where property matches, sortedintgetPageStylesCount()Returns PageStyle objects count.PageLayoutimportPageLayout(PageLayout pagelayout)Imports a new PageLayout object.java.util.List<PageLayout>importPageLayouts(java.util.List<PageLayout> list)Imports multiple new PageLayout object.PageStyleimportPageStyle(PageStyle pagestyle)Imports a new PageStyle object.java.util.List<PageStyle>importPageStyles(java.util.List<PageStyle> list)Imports multiple new PageStyle object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module)PageLayoutupdatePageLayout(PageLayout pagelayout)Updates a PageLayout object.java.util.List<PageLayout>updatePageLayouts(java.util.List<PageLayout> list)Updates multiple PageLayout objects.PageStyleupdatePageStyle(PageStyle pagestyle)Updates a PageStyle object.java.util.List<PageStyle>updatePageStyles(java.util.List<PageStyle> list)Updates multiple PageStyle objects.-
Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
addModuleListener, getModule, updateModule
-
Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicService
getAnoAccessApplicationDataService, getAnoAccessConfigurationService, getASActionService, getASBrandService, getASCustomActionService, getASCustomDataService, getASExperimentService, getASFeatureService, getASFederatedDataService, getASGenericActionService, getASGenericDataService, getASLayoutDataService, getASResourceDataService, getASSiteConfigService, getASSiteDataService, getASUserDataService, getASWebDataService, getASWizardDataService, getImagesService
-
Methods inherited from class net.anotheria.asg.service.AbstractASGService
addServiceListener, fireObjectCreatedEvent, fireObjectDeletedEvent, fireObjectImportedEvent, fireObjectUpdatedEvent, firePersistenceChangedEvent, hasServiceListeners, removeServiceListener
-
-
-
-
Method Detail
-
moduleLoaded
public void moduleLoaded(net.anotheria.anodoc.data.Module module)
- Specified by:
moduleLoadedin interfacenet.anotheria.asg.util.listener.IModuleListener
-
getPageStyles
public java.util.List<PageStyle> getPageStyles()
Description copied from interface:IASLayoutDataServiceReturns all PageStyles objects stored.- Specified by:
getPageStylesin interfaceIASLayoutDataService
-
getPageStyles
public java.util.List<PageStyle> getPageStyles(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASLayoutDataServiceReturns all PageStyles objects sorted by given sortType.- Specified by:
getPageStylesin interfaceIASLayoutDataService
-
getPageStyles
public java.util.List<PageStyle> getPageStyles(java.util.List<java.lang.String> ids)
Returns the PageStyle objects with the specified ids.
-
getPageStyles
public java.util.List<PageStyle> getPageStyles(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the PageStyle objects with the specified ids, sorted by given sorttype.
-
deletePageStyle
public void deletePageStyle(PageStyle pagestyle)
Description copied from interface:IASLayoutDataServiceDeletes a PageStyle object.- Specified by:
deletePageStylein interfaceIASLayoutDataService
-
deletePageStyle
public void deletePageStyle(java.lang.String id)
Description copied from interface:IASLayoutDataServiceDeletes a PageStyle object by id.- Specified by:
deletePageStylein interfaceIASLayoutDataService
-
deletePageStyles
public void deletePageStyles(java.util.List<PageStyle> list)
Description copied from interface:IASLayoutDataServiceDeletes multiple PageStyle object.- Specified by:
deletePageStylesin interfaceIASLayoutDataService
-
getPageStyle
public PageStyle getPageStyle(java.lang.String id)
Description copied from interface:IASLayoutDataServiceReturns the PageStyle object with the specified id.- Specified by:
getPageStylein interfaceIASLayoutDataService
-
importPageStyle
public PageStyle importPageStyle(PageStyle pagestyle)
Description copied from interface:IASLayoutDataServiceImports a new PageStyle object. Returns the created version.- Specified by:
importPageStylein interfaceIASLayoutDataService
-
importPageStyles
public java.util.List<PageStyle> importPageStyles(java.util.List<PageStyle> list)
Description copied from interface:IASLayoutDataServiceImports multiple new PageStyle object. Returns the created versions.- Specified by:
importPageStylesin interfaceIASLayoutDataService
-
createPageStyle
public PageStyle createPageStyle(PageStyle pagestyle)
Description copied from interface:IASLayoutDataServiceCreates a new PageStyle object. Returns the created version.- Specified by:
createPageStylein interfaceIASLayoutDataService
-
createPageStyles
public java.util.List<PageStyle> createPageStyles(java.util.List<PageStyle> list)
Description copied from interface:IASLayoutDataServiceCreates multiple new PageStyle objects. Returns the created versions.- Specified by:
createPageStylesin interfaceIASLayoutDataService
-
updatePageStyle
public PageStyle updatePageStyle(PageStyle pagestyle)
Description copied from interface:IASLayoutDataServiceUpdates a PageStyle object. Returns the updated version.- Specified by:
updatePageStylein interfaceIASLayoutDataService
-
updatePageStyles
public java.util.List<PageStyle> updatePageStyles(java.util.List<PageStyle> list)
Description copied from interface:IASLayoutDataServiceUpdates multiple PageStyle objects. Returns the updated versions.- Specified by:
updatePageStylesin interfaceIASLayoutDataService
-
getPageStylesByProperty
public java.util.List<PageStyle> getPageStylesByProperty(java.lang.String propertyName, java.lang.Object value)
Description copied from interface:IASLayoutDataServiceReturns all PageStyle objects, where property with given name equals object.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
getPageStylesByProperty
public java.util.List<PageStyle> getPageStylesByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASLayoutDataServiceReturns all PageStyle objects, where property with given name equals object, sorted.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
executeQueryOnPageStyles
public net.anotheria.anodoc.query2.QueryResult executeQueryOnPageStyles(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on PageStyles- Specified by:
executeQueryOnPageStylesin interfaceIASLayoutDataService
-
getPageStylesByProperty
public java.util.List<PageStyle> getPageStylesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all PageStyle objects, where property matches.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
getPageStylesByProperty
public java.util.List<PageStyle> getPageStylesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)
Returns all PageStyle objects, where property matches, sorted- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
getPageStylesCount
public int getPageStylesCount()
Returns PageStyle objects count.- Specified by:
getPageStylesCountin interfaceIASLayoutDataService
-
getPageStyles
public java.util.List<PageStyle> getPageStyles(net.anotheria.util.slicer.Segment aSegment)
Returns PageStyle objects segment.- Specified by:
getPageStylesin interfaceIASLayoutDataService
-
getPageStylesByProperty
public java.util.List<PageStyle> getPageStylesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)
Returns PageStyle objects segment, where property matched.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
getPageStylesByProperty
public java.util.List<PageStyle> getPageStylesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)
Returns PageStyle objects segment, where property matched, sorted.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
fetchPageStyle
public void fetchPageStyle(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASLayoutDataServiceExceptionDescription copied from interface:IASLayoutDataServiceCreate json object list dependencies for this PageStyle document.- Specified by:
fetchPageStylein interfaceIASLayoutDataService- Throws:
ASLayoutDataServiceException
-
getPageLayouts
public java.util.List<PageLayout> getPageLayouts()
Description copied from interface:IASLayoutDataServiceReturns all PageLayouts objects stored.- Specified by:
getPageLayoutsin interfaceIASLayoutDataService
-
getPageLayouts
public java.util.List<PageLayout> getPageLayouts(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASLayoutDataServiceReturns all PageLayouts objects sorted by given sortType.- Specified by:
getPageLayoutsin interfaceIASLayoutDataService
-
getPageLayouts
public java.util.List<PageLayout> getPageLayouts(java.util.List<java.lang.String> ids)
Returns the PageLayout objects with the specified ids.
-
getPageLayouts
public java.util.List<PageLayout> getPageLayouts(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the PageLayout objects with the specified ids, sorted by given sorttype.
-
deletePageLayout
public void deletePageLayout(PageLayout pagelayout)
Description copied from interface:IASLayoutDataServiceDeletes a PageLayout object.- Specified by:
deletePageLayoutin interfaceIASLayoutDataService
-
deletePageLayout
public void deletePageLayout(java.lang.String id)
Description copied from interface:IASLayoutDataServiceDeletes a PageLayout object by id.- Specified by:
deletePageLayoutin interfaceIASLayoutDataService
-
deletePageLayouts
public void deletePageLayouts(java.util.List<PageLayout> list)
Description copied from interface:IASLayoutDataServiceDeletes multiple PageLayout object.- Specified by:
deletePageLayoutsin interfaceIASLayoutDataService
-
getPageLayout
public PageLayout getPageLayout(java.lang.String id)
Description copied from interface:IASLayoutDataServiceReturns the PageLayout object with the specified id.- Specified by:
getPageLayoutin interfaceIASLayoutDataService
-
importPageLayout
public PageLayout importPageLayout(PageLayout pagelayout)
Description copied from interface:IASLayoutDataServiceImports a new PageLayout object. Returns the created version.- Specified by:
importPageLayoutin interfaceIASLayoutDataService
-
importPageLayouts
public java.util.List<PageLayout> importPageLayouts(java.util.List<PageLayout> list)
Description copied from interface:IASLayoutDataServiceImports multiple new PageLayout object. Returns the created versions.- Specified by:
importPageLayoutsin interfaceIASLayoutDataService
-
createPageLayout
public PageLayout createPageLayout(PageLayout pagelayout)
Description copied from interface:IASLayoutDataServiceCreates a new PageLayout object. Returns the created version.- Specified by:
createPageLayoutin interfaceIASLayoutDataService
-
createPageLayouts
public java.util.List<PageLayout> createPageLayouts(java.util.List<PageLayout> list)
Description copied from interface:IASLayoutDataServiceCreates multiple new PageLayout objects. Returns the created versions.- Specified by:
createPageLayoutsin interfaceIASLayoutDataService
-
updatePageLayout
public PageLayout updatePageLayout(PageLayout pagelayout)
Description copied from interface:IASLayoutDataServiceUpdates a PageLayout object. Returns the updated version.- Specified by:
updatePageLayoutin interfaceIASLayoutDataService
-
updatePageLayouts
public java.util.List<PageLayout> updatePageLayouts(java.util.List<PageLayout> list)
Description copied from interface:IASLayoutDataServiceUpdates multiple PageLayout objects. Returns the updated versions.- Specified by:
updatePageLayoutsin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public java.util.List<PageLayout> getPageLayoutsByProperty(java.lang.String propertyName, java.lang.Object value)
Description copied from interface:IASLayoutDataServiceReturns all PageLayout objects, where property with given name equals object.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public java.util.List<PageLayout> getPageLayoutsByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASLayoutDataServiceReturns all PageLayout objects, where property with given name equals object, sorted.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
executeQueryOnPageLayouts
public net.anotheria.anodoc.query2.QueryResult executeQueryOnPageLayouts(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on PageLayouts- Specified by:
executeQueryOnPageLayoutsin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public java.util.List<PageLayout> getPageLayoutsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all PageLayout objects, where property matches.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public java.util.List<PageLayout> getPageLayoutsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)
Returns all PageLayout objects, where property matches, sorted- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
getPageLayoutsCount
public int getPageLayoutsCount()
Returns PageLayout objects count.- Specified by:
getPageLayoutsCountin interfaceIASLayoutDataService
-
getPageLayouts
public java.util.List<PageLayout> getPageLayouts(net.anotheria.util.slicer.Segment aSegment)
Returns PageLayout objects segment.- Specified by:
getPageLayoutsin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public java.util.List<PageLayout> getPageLayoutsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)
Returns PageLayout objects segment, where property matched.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public java.util.List<PageLayout> getPageLayoutsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)
Returns PageLayout objects segment, where property matched, sorted.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
fetchPageLayout
public void fetchPageLayout(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASLayoutDataServiceExceptionDescription copied from interface:IASLayoutDataServiceCreate json object list dependencies for this PageLayout document.- Specified by:
fetchPageLayoutin interfaceIASLayoutDataService- Throws:
ASLayoutDataServiceException
-
executeParsingForDocument
public void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ASLayoutDataServiceException
Description copied from interface:IASLayoutDataServiceSave transferred document by its own type.- Specified by:
executeParsingForDocumentin interfaceIASLayoutDataService- Throws:
ASLayoutDataServiceException
-
executeQueryOnAllObjects
public net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on all data objects (documents, vo) which are part of this module and managed by this service- Specified by:
executeQueryOnAllObjectsin interfaceIASLayoutDataService
-
exportPageStylesToXML
public net.anotheria.util.xml.XMLNode exportPageStylesToXML()
-
exportPageStylesToXML
public net.anotheria.util.xml.XMLNode exportPageStylesToXML(java.util.List<PageStyle> list)
Description copied from interface:IASLayoutDataServiceCreates an xml element with selected contained data.- Specified by:
exportPageStylesToXMLin interfaceIASLayoutDataService
-
exportPageLayoutsToXML
public net.anotheria.util.xml.XMLNode exportPageLayoutsToXML()
-
exportPageLayoutsToXML
public net.anotheria.util.xml.XMLNode exportPageLayoutsToXML(java.util.List<PageLayout> list)
Description copied from interface:IASLayoutDataServiceCreates an xml element with selected contained data.- Specified by:
exportPageLayoutsToXMLin interfaceIASLayoutDataService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()
Description copied from interface:IASLayoutDataServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIASLayoutDataService
-
-