Class ASWebDataServiceImpl
- 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.aswebdata.service.ASWebDataServiceImpl
-
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IASWebDataService,net.anotheria.asg.service.ASGService,net.anotheria.asg.util.listener.IModuleListener
public class ASWebDataServiceImpl extends BasicCMSService implements IASWebDataService, 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 voidcopyMultilingualAttributesInAllBoxs(String sourceLanguage, String targetLanguage)In all documents of type Box copies all multilingual fields from sourceLanguage to targetLanguage.voidcopyMultilingualAttributesInAllObjects(String sourceLanguage, String targetLanguage)Copies all multilingual fields from sourceLanguage to targetLanguage in all data objects (documents, vo) which are part of this module and managed by this servicevoidcopyMultilingualAttributesInAllPagexs(String sourceLanguage, String targetLanguage)In all documents of type Pagex copies all multilingual fields from sourceLanguage to targetLanguage.AttributecreateAttribute(Attribute attribute)Creates a new Attribute object.List<Attribute>createAttributes(List<Attribute> list)Creates multiple new Attribute objects.BoxcreateBox(Box box)Creates a new Box object.List<Box>createBoxs(List<Box> list)Creates multiple new Box objects.PagexcreatePagex(Pagex pagex)Creates a new Pagex object.List<Pagex>createPagexs(List<Pagex> list)Creates multiple new Pagex objects.voiddeleteAttribute(String id)Deletes a Attribute object by id.voiddeleteAttribute(Attribute attribute)Deletes a Attribute object.voiddeleteAttributes(List<Attribute> list)Deletes multiple Attribute object.voiddeleteBox(String id)Deletes a Box object by id.voiddeleteBox(Box box)Deletes a Box object.voiddeleteBoxs(List<Box> list)Deletes multiple Box object.voiddeletePagex(String id)Deletes a Pagex object by id.voiddeletePagex(Pagex pagex)Deletes a Pagex object.voiddeletePagexs(List<Pagex> list)Deletes multiple Pagex 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.QueryResultexecuteQueryOnAttributes(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on Attributesnet.anotheria.anodoc.query2.QueryResultexecuteQueryOnBoxs(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on Boxsnet.anotheria.anodoc.query2.QueryResultexecuteQueryOnPagexs(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on Pagexsnet.anotheria.util.xml.XMLNodeexportAttributesToXML()net.anotheria.util.xml.XMLNodeexportAttributesToXML(String[] languages)net.anotheria.util.xml.XMLNodeexportAttributesToXML(String[] languages, List<Attribute> list)creates an xml element with selected contained data but only selected languages in multilingual attributesnet.anotheria.util.xml.XMLNodeexportAttributesToXML(List<Attribute> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportBoxsToXML()net.anotheria.util.xml.XMLNodeexportBoxsToXML(String[] languages)net.anotheria.util.xml.XMLNodeexportBoxsToXML(String[] languages, List<Box> list)creates an xml element with selected contained data but only selected languages in multilingual attributesnet.anotheria.util.xml.XMLNodeexportBoxsToXML(List<Box> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportPagexsToXML()net.anotheria.util.xml.XMLNodeexportPagexsToXML(String[] languages)net.anotheria.util.xml.XMLNodeexportPagexsToXML(String[] languages, List<Pagex> list)creates an xml element with selected contained data but only selected languages in multilingual attributesnet.anotheria.util.xml.XMLNodeexportPagexsToXML(List<Pagex> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportToXML(String[] languages)creates an xml element with all contained data but only selected languages in multilingual attributes.voidfetchAttribute(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this Attribute document.voidfetchBox(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this Box document.voidfetchPagex(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this Pagex document.AttributegetAttribute(String id)Returns the Attribute object with the specified id.List<Attribute>getAttributes()Returns all Attributes objects stored.List<Attribute>getAttributes(List<String> ids)Returns the Attribute objects with the specified ids.List<Attribute>getAttributes(List<String> ids, net.anotheria.util.sorter.SortType sortType)Returns the Attribute objects with the specified ids, sorted by given sorttype.List<Attribute>getAttributes(net.anotheria.util.slicer.Segment aSegment)Returns Attribute objects segment.List<Attribute>getAttributes(net.anotheria.util.sorter.SortType sortType)Returns all Attributes objects sorted by given sortType.List<Attribute>getAttributesByProperty(String propertyName, Object value)Returns all Attribute objects, where property with given name equals object.List<Attribute>getAttributesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)Returns all Attribute objects, where property with given name equals object, sorted.List<Attribute>getAttributesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Attribute objects, where property matches.List<Attribute>getAttributesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns Attribute objects segment, where property matched.List<Attribute>getAttributesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns Attribute objects segment, where property matched, sorted.List<Attribute>getAttributesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all Attribute objects, where property matches, sortedintgetAttributesCount()Returns Attribute objects count.BoxgetBox(String id)Returns the Box object with the specified id.List<Box>getBoxs()Returns all Boxs objects stored.List<Box>getBoxs(List<String> ids)Returns the Box objects with the specified ids.List<Box>getBoxs(List<String> ids, net.anotheria.util.sorter.SortType sortType)Returns the Box objects with the specified ids, sorted by given sorttype.List<Box>getBoxs(net.anotheria.util.slicer.Segment aSegment)Returns Box objects segment.List<Box>getBoxs(net.anotheria.util.sorter.SortType sortType)Returns all Boxs objects sorted by given sortType.List<Box>getBoxsByProperty(String propertyName, Object value)Returns all Box objects, where property with given name equals object.List<Box>getBoxsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)Returns all Box objects, where property with given name equals object, sorted.List<Box>getBoxsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Box objects, where property matches.List<Box>getBoxsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns Box objects segment, where property matched.List<Box>getBoxsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns Box objects segment, where property matched, sorted.List<Box>getBoxsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all Box objects, where property matches, sortedintgetBoxsCount()Returns Box objects count.PagexgetPagex(String id)Returns the Pagex object with the specified id.List<Pagex>getPagexs()Returns all Pagexs objects stored.List<Pagex>getPagexs(List<String> ids)Returns the Pagex objects with the specified ids.List<Pagex>getPagexs(List<String> ids, net.anotheria.util.sorter.SortType sortType)Returns the Pagex objects with the specified ids, sorted by given sorttype.List<Pagex>getPagexs(net.anotheria.util.slicer.Segment aSegment)Returns Pagex objects segment.List<Pagex>getPagexs(net.anotheria.util.sorter.SortType sortType)Returns all Pagexs objects sorted by given sortType.List<Pagex>getPagexsByProperty(String propertyName, Object value)Returns all Pagex objects, where property with given name equals object.List<Pagex>getPagexsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)Returns all Pagex objects, where property with given name equals object, sorted.List<Pagex>getPagexsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Pagex objects, where property matches.List<Pagex>getPagexsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns Pagex objects segment, where property matched.List<Pagex>getPagexsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns Pagex objects segment, where property matched, sorted.List<Pagex>getPagexsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all Pagex objects, where property matches, sortedintgetPagexsCount()Returns Pagex objects count.AttributeimportAttribute(Attribute attribute)Imports a new Attribute object.List<Attribute>importAttributes(List<Attribute> list)Imports multiple new Attribute object.BoximportBox(Box box)Imports a new Box object.List<Box>importBoxs(List<Box> list)Imports multiple new Box object.PageximportPagex(Pagex pagex)Imports a new Pagex object.List<Pagex>importPagexs(List<Pagex> list)Imports multiple new Pagex object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module)AttributeupdateAttribute(Attribute attribute)Updates a Attribute object.List<Attribute>updateAttributes(List<Attribute> list)Updates multiple Attribute objects.BoxupdateBox(Box box)Updates a Box object.List<Box>updateBoxs(List<Box> list)Updates multiple Box objects.PagexupdatePagex(Pagex pagex)Updates a Pagex object.List<Pagex>updatePagexs(List<Pagex> list)Updates multiple Pagex 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
-
getPagexs
public List<Pagex> getPagexs()
Description copied from interface:IASWebDataServiceReturns all Pagexs objects stored.- Specified by:
getPagexsin interfaceIASWebDataService
-
getPagexs
public List<Pagex> getPagexs(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASWebDataServiceReturns all Pagexs objects sorted by given sortType.- Specified by:
getPagexsin interfaceIASWebDataService
-
getPagexs
public List<Pagex> getPagexs(List<String> ids)
Returns the Pagex objects with the specified ids.
-
getPagexs
public List<Pagex> getPagexs(List<String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the Pagex objects with the specified ids, sorted by given sorttype.
-
deletePagex
public void deletePagex(Pagex pagex)
Description copied from interface:IASWebDataServiceDeletes a Pagex object.- Specified by:
deletePagexin interfaceIASWebDataService
-
deletePagex
public void deletePagex(String id)
Description copied from interface:IASWebDataServiceDeletes a Pagex object by id.- Specified by:
deletePagexin interfaceIASWebDataService
-
deletePagexs
public void deletePagexs(List<Pagex> list)
Description copied from interface:IASWebDataServiceDeletes multiple Pagex object.- Specified by:
deletePagexsin interfaceIASWebDataService
-
getPagex
public Pagex getPagex(String id)
Description copied from interface:IASWebDataServiceReturns the Pagex object with the specified id.- Specified by:
getPagexin interfaceIASWebDataService
-
importPagex
public Pagex importPagex(Pagex pagex)
Description copied from interface:IASWebDataServiceImports a new Pagex object. Returns the created version.- Specified by:
importPagexin interfaceIASWebDataService
-
importPagexs
public List<Pagex> importPagexs(List<Pagex> list)
Description copied from interface:IASWebDataServiceImports multiple new Pagex object. Returns the created versions.- Specified by:
importPagexsin interfaceIASWebDataService
-
createPagex
public Pagex createPagex(Pagex pagex)
Description copied from interface:IASWebDataServiceCreates a new Pagex object. Returns the created version.- Specified by:
createPagexin interfaceIASWebDataService
-
createPagexs
public List<Pagex> createPagexs(List<Pagex> list)
Description copied from interface:IASWebDataServiceCreates multiple new Pagex objects. Returns the created versions.- Specified by:
createPagexsin interfaceIASWebDataService
-
updatePagex
public Pagex updatePagex(Pagex pagex)
Description copied from interface:IASWebDataServiceUpdates a Pagex object. Returns the updated version.- Specified by:
updatePagexin interfaceIASWebDataService
-
updatePagexs
public List<Pagex> updatePagexs(List<Pagex> list)
Description copied from interface:IASWebDataServiceUpdates multiple Pagex objects. Returns the updated versions.- Specified by:
updatePagexsin interfaceIASWebDataService
-
getPagexsByProperty
public List<Pagex> getPagexsByProperty(String propertyName, Object value)
Description copied from interface:IASWebDataServiceReturns all Pagex objects, where property with given name equals object.- Specified by:
getPagexsByPropertyin interfaceIASWebDataService
-
getPagexsByProperty
public List<Pagex> getPagexsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASWebDataServiceReturns all Pagex objects, where property with given name equals object, sorted.- Specified by:
getPagexsByPropertyin interfaceIASWebDataService
-
executeQueryOnPagexs
public net.anotheria.anodoc.query2.QueryResult executeQueryOnPagexs(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on Pagexs- Specified by:
executeQueryOnPagexsin interfaceIASWebDataService
-
getPagexsByProperty
public List<Pagex> getPagexsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Pagex objects, where property matches.- Specified by:
getPagexsByPropertyin interfaceIASWebDataService
-
getPagexsByProperty
public List<Pagex> getPagexsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Pagex objects, where property matches, sorted- Specified by:
getPagexsByPropertyin interfaceIASWebDataService
-
getPagexsCount
public int getPagexsCount()
Returns Pagex objects count.- Specified by:
getPagexsCountin interfaceIASWebDataService
-
getPagexs
public List<Pagex> getPagexs(net.anotheria.util.slicer.Segment aSegment)
Returns Pagex objects segment.- Specified by:
getPagexsin interfaceIASWebDataService
-
getPagexsByProperty
public List<Pagex> getPagexsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)
Returns Pagex objects segment, where property matched.- Specified by:
getPagexsByPropertyin interfaceIASWebDataService
-
getPagexsByProperty
public List<Pagex> getPagexsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)
Returns Pagex objects segment, where property matched, sorted.- Specified by:
getPagexsByPropertyin interfaceIASWebDataService
-
fetchPagex
public void fetchPagex(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASWebDataServiceException
Description copied from interface:IASWebDataServiceCreate json object list dependencies for this Pagex document.- Specified by:
fetchPagexin interfaceIASWebDataService- Throws:
ASWebDataServiceException
-
copyMultilingualAttributesInAllPagexs
public void copyMultilingualAttributesInAllPagexs(String sourceLanguage, String targetLanguage)
Description copied from interface:IASWebDataServiceIn all documents of type Pagex copies all multilingual fields from sourceLanguage to targetLanguage.- Specified by:
copyMultilingualAttributesInAllPagexsin interfaceIASWebDataService
-
getBoxs
public List<Box> getBoxs()
Description copied from interface:IASWebDataServiceReturns all Boxs objects stored.- Specified by:
getBoxsin interfaceIASWebDataService
-
getBoxs
public List<Box> getBoxs(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASWebDataServiceReturns all Boxs objects sorted by given sortType.- Specified by:
getBoxsin interfaceIASWebDataService
-
getBoxs
public List<Box> getBoxs(List<String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the Box objects with the specified ids, sorted by given sorttype.
-
deleteBox
public void deleteBox(Box box)
Description copied from interface:IASWebDataServiceDeletes a Box object.- Specified by:
deleteBoxin interfaceIASWebDataService
-
deleteBox
public void deleteBox(String id)
Description copied from interface:IASWebDataServiceDeletes a Box object by id.- Specified by:
deleteBoxin interfaceIASWebDataService
-
deleteBoxs
public void deleteBoxs(List<Box> list)
Description copied from interface:IASWebDataServiceDeletes multiple Box object.- Specified by:
deleteBoxsin interfaceIASWebDataService
-
getBox
public Box getBox(String id)
Description copied from interface:IASWebDataServiceReturns the Box object with the specified id.- Specified by:
getBoxin interfaceIASWebDataService
-
importBox
public Box importBox(Box box)
Description copied from interface:IASWebDataServiceImports a new Box object. Returns the created version.- Specified by:
importBoxin interfaceIASWebDataService
-
importBoxs
public List<Box> importBoxs(List<Box> list)
Description copied from interface:IASWebDataServiceImports multiple new Box object. Returns the created versions.- Specified by:
importBoxsin interfaceIASWebDataService
-
createBox
public Box createBox(Box box)
Description copied from interface:IASWebDataServiceCreates a new Box object. Returns the created version.- Specified by:
createBoxin interfaceIASWebDataService
-
createBoxs
public List<Box> createBoxs(List<Box> list)
Description copied from interface:IASWebDataServiceCreates multiple new Box objects. Returns the created versions.- Specified by:
createBoxsin interfaceIASWebDataService
-
updateBox
public Box updateBox(Box box)
Description copied from interface:IASWebDataServiceUpdates a Box object. Returns the updated version.- Specified by:
updateBoxin interfaceIASWebDataService
-
updateBoxs
public List<Box> updateBoxs(List<Box> list)
Description copied from interface:IASWebDataServiceUpdates multiple Box objects. Returns the updated versions.- Specified by:
updateBoxsin interfaceIASWebDataService
-
getBoxsByProperty
public List<Box> getBoxsByProperty(String propertyName, Object value)
Description copied from interface:IASWebDataServiceReturns all Box objects, where property with given name equals object.- Specified by:
getBoxsByPropertyin interfaceIASWebDataService
-
getBoxsByProperty
public List<Box> getBoxsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASWebDataServiceReturns all Box objects, where property with given name equals object, sorted.- Specified by:
getBoxsByPropertyin interfaceIASWebDataService
-
executeQueryOnBoxs
public net.anotheria.anodoc.query2.QueryResult executeQueryOnBoxs(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on Boxs- Specified by:
executeQueryOnBoxsin interfaceIASWebDataService
-
getBoxsByProperty
public List<Box> getBoxsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Box objects, where property matches.- Specified by:
getBoxsByPropertyin interfaceIASWebDataService
-
getBoxsByProperty
public List<Box> getBoxsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Box objects, where property matches, sorted- Specified by:
getBoxsByPropertyin interfaceIASWebDataService
-
getBoxsCount
public int getBoxsCount()
Returns Box objects count.- Specified by:
getBoxsCountin interfaceIASWebDataService
-
getBoxs
public List<Box> getBoxs(net.anotheria.util.slicer.Segment aSegment)
Returns Box objects segment.- Specified by:
getBoxsin interfaceIASWebDataService
-
getBoxsByProperty
public List<Box> getBoxsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)
Returns Box objects segment, where property matched.- Specified by:
getBoxsByPropertyin interfaceIASWebDataService
-
getBoxsByProperty
public List<Box> getBoxsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)
Returns Box objects segment, where property matched, sorted.- Specified by:
getBoxsByPropertyin interfaceIASWebDataService
-
fetchBox
public void fetchBox(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASWebDataServiceException
Description copied from interface:IASWebDataServiceCreate json object list dependencies for this Box document.- Specified by:
fetchBoxin interfaceIASWebDataService- Throws:
ASWebDataServiceException
-
copyMultilingualAttributesInAllBoxs
public void copyMultilingualAttributesInAllBoxs(String sourceLanguage, String targetLanguage)
Description copied from interface:IASWebDataServiceIn all documents of type Box copies all multilingual fields from sourceLanguage to targetLanguage.- Specified by:
copyMultilingualAttributesInAllBoxsin interfaceIASWebDataService
-
getAttributes
public List<Attribute> getAttributes()
Description copied from interface:IASWebDataServiceReturns all Attributes objects stored.- Specified by:
getAttributesin interfaceIASWebDataService
-
getAttributes
public List<Attribute> getAttributes(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASWebDataServiceReturns all Attributes objects sorted by given sortType.- Specified by:
getAttributesin interfaceIASWebDataService
-
getAttributes
public List<Attribute> getAttributes(List<String> ids)
Returns the Attribute objects with the specified ids.
-
getAttributes
public List<Attribute> getAttributes(List<String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the Attribute objects with the specified ids, sorted by given sorttype.
-
deleteAttribute
public void deleteAttribute(Attribute attribute)
Description copied from interface:IASWebDataServiceDeletes a Attribute object.- Specified by:
deleteAttributein interfaceIASWebDataService
-
deleteAttribute
public void deleteAttribute(String id)
Description copied from interface:IASWebDataServiceDeletes a Attribute object by id.- Specified by:
deleteAttributein interfaceIASWebDataService
-
deleteAttributes
public void deleteAttributes(List<Attribute> list)
Description copied from interface:IASWebDataServiceDeletes multiple Attribute object.- Specified by:
deleteAttributesin interfaceIASWebDataService
-
getAttribute
public Attribute getAttribute(String id)
Description copied from interface:IASWebDataServiceReturns the Attribute object with the specified id.- Specified by:
getAttributein interfaceIASWebDataService
-
importAttribute
public Attribute importAttribute(Attribute attribute)
Description copied from interface:IASWebDataServiceImports a new Attribute object. Returns the created version.- Specified by:
importAttributein interfaceIASWebDataService
-
importAttributes
public List<Attribute> importAttributes(List<Attribute> list)
Description copied from interface:IASWebDataServiceImports multiple new Attribute object. Returns the created versions.- Specified by:
importAttributesin interfaceIASWebDataService
-
createAttribute
public Attribute createAttribute(Attribute attribute)
Description copied from interface:IASWebDataServiceCreates a new Attribute object. Returns the created version.- Specified by:
createAttributein interfaceIASWebDataService
-
createAttributes
public List<Attribute> createAttributes(List<Attribute> list)
Description copied from interface:IASWebDataServiceCreates multiple new Attribute objects. Returns the created versions.- Specified by:
createAttributesin interfaceIASWebDataService
-
updateAttribute
public Attribute updateAttribute(Attribute attribute)
Description copied from interface:IASWebDataServiceUpdates a Attribute object. Returns the updated version.- Specified by:
updateAttributein interfaceIASWebDataService
-
updateAttributes
public List<Attribute> updateAttributes(List<Attribute> list)
Description copied from interface:IASWebDataServiceUpdates multiple Attribute objects. Returns the updated versions.- Specified by:
updateAttributesin interfaceIASWebDataService
-
getAttributesByProperty
public List<Attribute> getAttributesByProperty(String propertyName, Object value)
Description copied from interface:IASWebDataServiceReturns all Attribute objects, where property with given name equals object.- Specified by:
getAttributesByPropertyin interfaceIASWebDataService
-
getAttributesByProperty
public List<Attribute> getAttributesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASWebDataServiceReturns all Attribute objects, where property with given name equals object, sorted.- Specified by:
getAttributesByPropertyin interfaceIASWebDataService
-
executeQueryOnAttributes
public net.anotheria.anodoc.query2.QueryResult executeQueryOnAttributes(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on Attributes- Specified by:
executeQueryOnAttributesin interfaceIASWebDataService
-
getAttributesByProperty
public List<Attribute> getAttributesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Attribute objects, where property matches.- Specified by:
getAttributesByPropertyin interfaceIASWebDataService
-
getAttributesByProperty
public List<Attribute> getAttributesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Attribute objects, where property matches, sorted- Specified by:
getAttributesByPropertyin interfaceIASWebDataService
-
getAttributesCount
public int getAttributesCount()
Returns Attribute objects count.- Specified by:
getAttributesCountin interfaceIASWebDataService
-
getAttributes
public List<Attribute> getAttributes(net.anotheria.util.slicer.Segment aSegment)
Returns Attribute objects segment.- Specified by:
getAttributesin interfaceIASWebDataService
-
getAttributesByProperty
public List<Attribute> getAttributesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)
Returns Attribute objects segment, where property matched.- Specified by:
getAttributesByPropertyin interfaceIASWebDataService
-
getAttributesByProperty
public List<Attribute> getAttributesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)
Returns Attribute objects segment, where property matched, sorted.- Specified by:
getAttributesByPropertyin interfaceIASWebDataService
-
fetchAttribute
public void fetchAttribute(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASWebDataServiceException
Description copied from interface:IASWebDataServiceCreate json object list dependencies for this Attribute document.- Specified by:
fetchAttributein interfaceIASWebDataService- Throws:
ASWebDataServiceException
-
executeParsingForDocument
public void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ASWebDataServiceException
Description copied from interface:IASWebDataServiceSave transferred document by its own type.- Specified by:
executeParsingForDocumentin interfaceIASWebDataService- Throws:
ASWebDataServiceException
-
copyMultilingualAttributesInAllObjects
public void copyMultilingualAttributesInAllObjects(String sourceLanguage, String targetLanguage)
Copies all multilingual fields from sourceLanguage to targetLanguage in all data objects (documents, vo) which are part of this module and managed by this service- Specified by:
copyMultilingualAttributesInAllObjectsin interfaceIASWebDataService
-
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 interfaceIASWebDataService
-
exportPagexsToXML
public net.anotheria.util.xml.XMLNode exportPagexsToXML()
-
exportPagexsToXML
public net.anotheria.util.xml.XMLNode exportPagexsToXML(List<Pagex> list)
Description copied from interface:IASWebDataServiceCreates an xml element with selected contained data.- Specified by:
exportPagexsToXMLin interfaceIASWebDataService
-
exportPagexsToXML
public net.anotheria.util.xml.XMLNode exportPagexsToXML(String[] languages)
-
exportPagexsToXML
public net.anotheria.util.xml.XMLNode exportPagexsToXML(String[] languages, List<Pagex> list)
Description copied from interface:IASWebDataServicecreates an xml element with selected contained data but only selected languages in multilingual attributes- Specified by:
exportPagexsToXMLin interfaceIASWebDataService
-
exportBoxsToXML
public net.anotheria.util.xml.XMLNode exportBoxsToXML()
-
exportBoxsToXML
public net.anotheria.util.xml.XMLNode exportBoxsToXML(List<Box> list)
Description copied from interface:IASWebDataServiceCreates an xml element with selected contained data.- Specified by:
exportBoxsToXMLin interfaceIASWebDataService
-
exportBoxsToXML
public net.anotheria.util.xml.XMLNode exportBoxsToXML(String[] languages)
-
exportBoxsToXML
public net.anotheria.util.xml.XMLNode exportBoxsToXML(String[] languages, List<Box> list)
Description copied from interface:IASWebDataServicecreates an xml element with selected contained data but only selected languages in multilingual attributes- Specified by:
exportBoxsToXMLin interfaceIASWebDataService
-
exportAttributesToXML
public net.anotheria.util.xml.XMLNode exportAttributesToXML()
-
exportAttributesToXML
public net.anotheria.util.xml.XMLNode exportAttributesToXML(List<Attribute> list)
Description copied from interface:IASWebDataServiceCreates an xml element with selected contained data.- Specified by:
exportAttributesToXMLin interfaceIASWebDataService
-
exportAttributesToXML
public net.anotheria.util.xml.XMLNode exportAttributesToXML(String[] languages)
-
exportAttributesToXML
public net.anotheria.util.xml.XMLNode exportAttributesToXML(String[] languages, List<Attribute> list)
Description copied from interface:IASWebDataServicecreates an xml element with selected contained data but only selected languages in multilingual attributes- Specified by:
exportAttributesToXMLin interfaceIASWebDataService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()
Description copied from interface:IASWebDataServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIASWebDataService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML(String[] languages)
Description copied from interface:IASWebDataServicecreates an xml element with all contained data but only selected languages in multilingual attributes.- Specified by:
exportToXMLin interfaceIASWebDataService
-
-