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, serviceFields inherited from class net.anotheria.anosite.gen.shared.service.BasicService
log -
Method Summary
Modifier and TypeMethodDescriptioncreatePageLayout(PageLayout pagelayout) Creates a new PageLayout object.createPageLayouts(List<PageLayout> list) Creates multiple new PageLayout objects.createPageStyle(PageStyle pagestyle) Creates a new PageStyle object.createPageStyles(List<PageStyle> list) Creates multiple new PageStyle objects.voidDeletes a PageLayout object by id.voiddeletePageLayout(PageLayout pagelayout) Deletes a PageLayout object.voiddeletePageLayouts(List<PageLayout> list) Deletes multiple PageLayout object.voidDeletes a PageStyle object by id.voiddeletePageStyle(PageStyle pagestyle) Deletes a PageStyle object.voiddeletePageStyles(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.XMLNodenet.anotheria.util.xml.XMLNodeexportPageLayoutsToXML(List<PageLayout> list) Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeexportPageStylesToXML(List<PageStyle> list) Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodecreates an xml element with all contained data.voidfetchPageLayout(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this PageLayout document.voidfetchPageStyle(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this PageStyle document.getPageLayout(String id) Returns the PageLayout object with the specified id.Returns all PageLayouts objects stored.getPageLayouts(List<String> ids) Returns the PageLayout objects with the specified ids.getPageLayouts(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the PageLayout objects with the specified ids, sorted by given sorttype.getPageLayouts(net.anotheria.util.slicer.Segment aSegment) Returns PageLayout objects segment.getPageLayouts(net.anotheria.util.sorter.SortType sortType) Returns all PageLayouts objects sorted by given sortType.getPageLayoutsByProperty(String propertyName, Object value) Returns all PageLayout objects, where property with given name equals object.getPageLayoutsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all PageLayout objects, where property with given name equals object, sorted.getPageLayoutsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all PageLayout objects, where property matches.getPageLayoutsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns PageLayout objects segment, where property matched.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.getPageLayoutsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all PageLayout objects, where property matches, sortedintReturns PageLayout objects count.getPageStyle(String id) Returns the PageStyle object with the specified id.Returns all PageStyles objects stored.getPageStyles(List<String> ids) Returns the PageStyle objects with the specified ids.getPageStyles(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the PageStyle objects with the specified ids, sorted by given sorttype.getPageStyles(net.anotheria.util.slicer.Segment aSegment) Returns PageStyle objects segment.getPageStyles(net.anotheria.util.sorter.SortType sortType) Returns all PageStyles objects sorted by given sortType.getPageStylesByProperty(String propertyName, Object value) Returns all PageStyle objects, where property with given name equals object.getPageStylesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all PageStyle objects, where property with given name equals object, sorted.getPageStylesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all PageStyle objects, where property matches.getPageStylesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns PageStyle objects segment, where property matched.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.getPageStylesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all PageStyle objects, where property matches, sortedintReturns PageStyle objects count.importPageLayout(PageLayout pagelayout) Imports a new PageLayout object.importPageLayouts(List<PageLayout> list) Imports multiple new PageLayout object.importPageStyle(PageStyle pagestyle) Imports a new PageStyle object.importPageStyles(List<PageStyle> list) Imports multiple new PageStyle object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module) updatePageLayout(PageLayout pagelayout) Updates a PageLayout object.updatePageLayouts(List<PageLayout> list) Updates multiple PageLayout objects.updatePageStyle(PageStyle pagestyle) Updates a PageStyle object.updatePageStyles(List<PageStyle> list) Updates multiple PageStyle objects.Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
addModuleListener, getModule, updateModuleMethods 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, getImagesServiceMethods inherited from class net.anotheria.asg.service.AbstractASGService
addServiceListener, fireObjectCreatedEvent, fireObjectDeletedEvent, fireObjectImportedEvent, fireObjectUpdatedEvent, firePersistenceChangedEvent, hasServiceListeners, removeServiceListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.anotheria.asg.service.ASGService
addServiceListener, hasServiceListeners, removeServiceListener
-
Method Details
-
moduleLoaded
public void moduleLoaded(net.anotheria.anodoc.data.Module module) - Specified by:
moduleLoadedin interfacenet.anotheria.asg.util.listener.IModuleListener
-
getPageStyles
Description copied from interface:IASLayoutDataServiceReturns all PageStyles objects stored.- Specified by:
getPageStylesin interfaceIASLayoutDataService
-
getPageStyles
Description copied from interface:IASLayoutDataServiceReturns all PageStyles objects sorted by given sortType.- Specified by:
getPageStylesin interfaceIASLayoutDataService
-
getPageStyles
Returns the PageStyle objects with the specified ids. -
getPageStyles
Returns the PageStyle objects with the specified ids, sorted by given sorttype. -
deletePageStyle
Description copied from interface:IASLayoutDataServiceDeletes a PageStyle object.- Specified by:
deletePageStylein interfaceIASLayoutDataService
-
deletePageStyle
Description copied from interface:IASLayoutDataServiceDeletes a PageStyle object by id.- Specified by:
deletePageStylein interfaceIASLayoutDataService
-
deletePageStyles
Description copied from interface:IASLayoutDataServiceDeletes multiple PageStyle object.- Specified by:
deletePageStylesin interfaceIASLayoutDataService
-
getPageStyle
Description copied from interface:IASLayoutDataServiceReturns the PageStyle object with the specified id.- Specified by:
getPageStylein interfaceIASLayoutDataService
-
importPageStyle
Description copied from interface:IASLayoutDataServiceImports a new PageStyle object. Returns the created version.- Specified by:
importPageStylein interfaceIASLayoutDataService
-
importPageStyles
Description copied from interface:IASLayoutDataServiceImports multiple new PageStyle object. Returns the created versions.- Specified by:
importPageStylesin interfaceIASLayoutDataService
-
createPageStyle
Description copied from interface:IASLayoutDataServiceCreates a new PageStyle object. Returns the created version.- Specified by:
createPageStylein interfaceIASLayoutDataService
-
createPageStyles
Description copied from interface:IASLayoutDataServiceCreates multiple new PageStyle objects. Returns the created versions.- Specified by:
createPageStylesin interfaceIASLayoutDataService
-
updatePageStyle
Description copied from interface:IASLayoutDataServiceUpdates a PageStyle object. Returns the updated version.- Specified by:
updatePageStylein interfaceIASLayoutDataService
-
updatePageStyles
Description copied from interface:IASLayoutDataServiceUpdates multiple PageStyle objects. Returns the updated versions.- Specified by:
updatePageStylesin interfaceIASLayoutDataService
-
getPageStylesByProperty
Description copied from interface:IASLayoutDataServiceReturns all PageStyle objects, where property with given name equals object.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
getPageStylesByProperty
public List<PageStyle> getPageStylesByProperty(String propertyName, 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 List<PageStyle> getPageStylesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all PageStyle objects, where property matches.- Specified by:
getPageStylesByPropertyin interfaceIASLayoutDataService
-
getPageStylesByProperty
public 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
Returns PageStyle objects segment.- Specified by:
getPageStylesin interfaceIASLayoutDataService
-
getPageStylesByProperty
public 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 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(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASLayoutDataServiceException Description copied from interface:IASLayoutDataServiceCreate json object list dependencies for this PageStyle document.- Specified by:
fetchPageStylein interfaceIASLayoutDataService- Throws:
ASLayoutDataServiceException
-
getPageLayouts
Description copied from interface:IASLayoutDataServiceReturns all PageLayouts objects stored.- Specified by:
getPageLayoutsin interfaceIASLayoutDataService
-
getPageLayouts
Description copied from interface:IASLayoutDataServiceReturns all PageLayouts objects sorted by given sortType.- Specified by:
getPageLayoutsin interfaceIASLayoutDataService
-
getPageLayouts
Returns the PageLayout objects with the specified ids. -
getPageLayouts
public List<PageLayout> getPageLayouts(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the PageLayout objects with the specified ids, sorted by given sorttype. -
deletePageLayout
Description copied from interface:IASLayoutDataServiceDeletes a PageLayout object.- Specified by:
deletePageLayoutin interfaceIASLayoutDataService
-
deletePageLayout
Description copied from interface:IASLayoutDataServiceDeletes a PageLayout object by id.- Specified by:
deletePageLayoutin interfaceIASLayoutDataService
-
deletePageLayouts
Description copied from interface:IASLayoutDataServiceDeletes multiple PageLayout object.- Specified by:
deletePageLayoutsin interfaceIASLayoutDataService
-
getPageLayout
Description copied from interface:IASLayoutDataServiceReturns the PageLayout object with the specified id.- Specified by:
getPageLayoutin interfaceIASLayoutDataService
-
importPageLayout
Description copied from interface:IASLayoutDataServiceImports a new PageLayout object. Returns the created version.- Specified by:
importPageLayoutin interfaceIASLayoutDataService
-
importPageLayouts
Description copied from interface:IASLayoutDataServiceImports multiple new PageLayout object. Returns the created versions.- Specified by:
importPageLayoutsin interfaceIASLayoutDataService
-
createPageLayout
Description copied from interface:IASLayoutDataServiceCreates a new PageLayout object. Returns the created version.- Specified by:
createPageLayoutin interfaceIASLayoutDataService
-
createPageLayouts
Description copied from interface:IASLayoutDataServiceCreates multiple new PageLayout objects. Returns the created versions.- Specified by:
createPageLayoutsin interfaceIASLayoutDataService
-
updatePageLayout
Description copied from interface:IASLayoutDataServiceUpdates a PageLayout object. Returns the updated version.- Specified by:
updatePageLayoutin interfaceIASLayoutDataService
-
updatePageLayouts
Description copied from interface:IASLayoutDataServiceUpdates multiple PageLayout objects. Returns the updated versions.- Specified by:
updatePageLayoutsin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
Description copied from interface:IASLayoutDataServiceReturns all PageLayout objects, where property with given name equals object.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public List<PageLayout> getPageLayoutsByProperty(String propertyName, 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 List<PageLayout> getPageLayoutsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all PageLayout objects, where property matches.- Specified by:
getPageLayoutsByPropertyin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public 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
Returns PageLayout objects segment.- Specified by:
getPageLayoutsin interfaceIASLayoutDataService
-
getPageLayoutsByProperty
public 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 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(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASLayoutDataServiceException Description copied from interface:IASLayoutDataServiceCreate json object list dependencies for this PageLayout document.- Specified by:
fetchPageLayoutin 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
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
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
-