public class DefaultWsUtilService extends AbstractBusinessService implements WsUtilService
WsUtilService and temporarily inholds service method definitions, that
was needed in restjersey and was not yet defined in expected platform service classes.WsUtilService.getAddress(java.lang.Long),
Serialized FormAbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultWsUtilService() |
| Modifier and Type | Method and Description |
|---|---|
CronJobModel |
createCronJobBasedOnCurrent(CronJobModel model,
java.lang.String code)
Create a cronjob based on delivered cronjob.
|
void |
createEnumerationType(java.lang.String typeCode)
Create enumeration value of given enumeration type
|
EnumerationValueModel |
createEnumerationValue(java.lang.String typeCode,
java.lang.String valueCode,
java.lang.String name)
Create enumeration value of given enumeration type
|
NodeFactory |
findNodeFactory(java.lang.Class dtoClass)
Returns a NodeFactory for specified dtoClass
|
AddressModel |
getAddress(java.lang.Long pk) |
java.util.List<AddressModel> |
getAllAddresses()
Gets all addresses that belong to users
|
java.util.Collection<CartModel> |
getAllCarts()
Gets all carts of system.
|
java.util.Collection<CompanyModel> |
getAllCompanies()
Returns collection of all CompanyModel objects
|
java.util.Collection<CustomerModel> |
getAllCustomers()
Gets all customers of system.
|
java.util.Collection<DiscountModel> |
getAllDiscounts()
Gets all discounts of system.
|
java.util.Collection<EnumerationMetaTypeModel> |
getAllEnumerationTypes()
Gets back all enumeration types
|
java.util.Collection<KeywordModel> |
getAllKeywords(CatalogVersionModel versionModel)
Returns collection of all Keywords for a specific catalog version
|
java.util.Collection<RegionModel> |
getAllRegions() |
java.util.Set<RegionModel> |
getAllRegions(java.lang.String countryCode) |
java.util.Collection<UnitModel> |
getAllUnits()
Returns collection of all UnitModel objects
|
java.util.Collection<UserGroupModel> |
getAllUserGroups()
Returns collection of all UserGroupModel objects
|
CompanyModel |
getCompany(java.lang.String uid)
Returns single CompanyModel object based on CompanyModel uid attribute
|
java.util.Set<java.lang.String> |
getConfigurationForType(int level,
java.lang.Class<?> runtimeNodeType,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> httpQueryParameters,
java.util.Set<java.lang.String> allowedAttributesNames,
java.util.List<java.lang.String> possibleConfigNodeNames)
Gets a "attribute selector API" configuration for attributes of currently processed graph node.
|
CustomerModel |
getCustomer(java.lang.String login)
Returns single CustomerModel object based on CostomerModel login attribute
|
DeliveryModeModel |
getDeliveryModeByCode(java.lang.String code)
Returns single DeliveryModeModel object based on DeliveryModeModel code attribute
|
java.util.Collection<DeliveryModeModel> |
getDeliveryModesByCode(java.lang.String code)
Returns collection of DeliveryModeModel objects based on DeliveryModeModel code attribute
|
DiscountModel |
getDiscount(java.lang.String code)
gets back the discount upon the code
|
I18NService |
getI18nService() |
KeywordModel |
getKeyword(CatalogVersionModel versionModel,
LanguageModel language,
java.lang.String keyword)
Returns a specified KeywordModel object based on its catalogVersion, Language and value of the keyword
|
KeywordModel |
getKeyword(CatalogVersionModel versionModel,
java.lang.String keyword)
Returns a specified KeywordModel object based on its catalogVersion and value of the keyword
|
PaymentModeModel |
getPaymentModeByCode(java.lang.String code)
Returns single PaymentModeModel object based on PaymentModeModel code attribute
|
java.util.Collection<PaymentModeModel> |
getPaymentModesByCode(java.lang.String code)
Returns collection of PaymentModeModel objects based on PaymentModeModel code attribute
|
RegionModel |
getRegion(java.lang.String isocode)
gets back the region upon the iso code
|
RegionModel |
getRegion(java.lang.String countryCode,
java.lang.String isocode)
gets back the region upon the iso code
|
boolean |
isMemberOf(java.lang.String userID,
java.lang.String userGroupID,
boolean includingSupergroups)
Checks whether the principal is member of the given group or any of its subgroups.
|
void |
setCatalogVersionsIntoJaloSession()
Set appropriate catalog versions to the jalosession for current authenticated user.
|
void |
setCronJobService(CronJobService cronJobService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setI18nDao(I18NDao dao) |
void |
setI18nService(I18NService i18nService) |
void |
setNodeFactoriesMap(java.util.Map<java.lang.Object,NodeFactory> nodeFactoriesMap) |
void |
setRequestUserIntoJaloSession(java.lang.String userID)
Set request user to jalosession.
|
void |
setUserService(UserService userService) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic NodeFactory findNodeFactory(java.lang.Class dtoClass)
WsUtilServicefindNodeFactory in interface WsUtilServicedtoClass - the dtoClass to setpublic void setNodeFactoriesMap(java.util.Map<java.lang.Object,NodeFactory> nodeFactoriesMap)
nodeFactoriesMap - the nodeFactoriesMap to setpublic void setCronJobService(CronJobService cronJobService)
cronJobService - the cronJobService to setpublic void setUserService(UserService userService)
userService - the userService to setpublic I18NService getI18nService()
public void setI18nService(I18NService i18nService)
i18nService - the i18nService to setpublic AddressModel getAddress(java.lang.Long pk)
getAddress in interface WsUtilServicepk - pk of the address to obtainWsUtilService.getAddress(java.lang.Long)public java.util.List<AddressModel> getAllAddresses()
WsUtilServicegetAllAddresses in interface WsUtilServiceWsUtilService.getAllAddresses()public java.util.Set<RegionModel> getAllRegions(java.lang.String countryCode)
getAllRegions in interface WsUtilServicecountryCode - ISO code of a country for which we're retrieving regionsWsUtilService.getAllRegions(java.lang.String)public java.util.Collection<RegionModel> getAllRegions()
getAllRegions in interface WsUtilServicepublic java.util.Collection<UnitModel> getAllUnits()
WsUtilServicegetAllUnits in interface WsUtilServiceWsUtilService.getAllUnits()public RegionModel getRegion(java.lang.String isocode)
WsUtilServicegetRegion in interface WsUtilServiceisocode - code of the regionWsUtilService.getRegion(java.lang.String)public RegionModel getRegion(java.lang.String countryCode, java.lang.String isocode)
WsUtilServicegetRegion in interface WsUtilServicecountryCode - code of the region's countryisocode - code of the regionWsUtilService.getRegion(java.lang.String,java.lang.String)public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
flexibleSearchService - the flexibleSearchService to setpublic void setI18nDao(I18NDao dao)
dao - the i18nDao to setpublic void setRequestUserIntoJaloSession(java.lang.String userID)
WsUtilServicesetRequestUserIntoJaloSession in interface WsUtilServiceuserID - authenticated user or anonymous userWsUtilService.setRequestUserIntoJaloSession(java.lang.String)public void setCatalogVersionsIntoJaloSession()
WsUtilServicesetCatalogVersionsIntoJaloSession in interface WsUtilServiceWsUtilService.setCatalogVersionsIntoJaloSession()public java.util.Collection<CartModel> getAllCarts()
WsUtilServicegetAllCarts in interface WsUtilServiceWsUtilService.getAllCarts()public java.util.Collection<DiscountModel> getAllDiscounts()
WsUtilServicegetAllDiscounts in interface WsUtilServiceWsUtilService.getAllDiscounts()public DiscountModel getDiscount(java.lang.String code)
WsUtilServicegetDiscount in interface WsUtilServicecode - code value of DiscountModelWsUtilService.getDiscount(java.lang.String)public java.util.Collection<CustomerModel> getAllCustomers()
WsUtilServicegetAllCustomers in interface WsUtilServiceWsUtilService.getAllCustomers()public CustomerModel getCustomer(java.lang.String login)
WsUtilServicegetCustomer in interface WsUtilServicelogin - login value of CustomerModelWsUtilService.getCustomer(java.lang.String)public java.util.Collection<UserGroupModel> getAllUserGroups()
WsUtilServicegetAllUserGroups in interface WsUtilServiceWsUtilService.getAllUserGroups()public DeliveryModeModel getDeliveryModeByCode(java.lang.String code)
WsUtilServicegetDeliveryModeByCode in interface WsUtilServicecode - code value of DeliveryModeModelWsUtilService.getDeliveryModeByCode(java.lang.String)public java.util.Collection<DeliveryModeModel> getDeliveryModesByCode(java.lang.String code)
WsUtilServicegetDeliveryModesByCode in interface WsUtilServicecode - code value of DeliveryModeModelWsUtilService.getDeliveryModesByCode(java.lang.String)public PaymentModeModel getPaymentModeByCode(java.lang.String code)
WsUtilServicegetPaymentModeByCode in interface WsUtilServicecode - code value of PaymentModeModelWsUtilService.getPaymentModeByCode(java.lang.String)public java.util.Collection<PaymentModeModel> getPaymentModesByCode(java.lang.String code)
WsUtilServicegetPaymentModesByCode in interface WsUtilServicecode - code value of PaymentModeModelWsUtilService.getPaymentModesByCode(java.lang.String)public java.util.Collection<EnumerationMetaTypeModel> getAllEnumerationTypes()
WsUtilServicegetAllEnumerationTypes in interface WsUtilServiceWsUtilService.getAllEnumerationTypes()public EnumerationValueModel createEnumerationValue(java.lang.String typeCode, java.lang.String valueCode, java.lang.String name)
WsUtilServicecreateEnumerationValue in interface WsUtilServicetypeCode - enumeration type codevalueCode - enumeration valuename - name of the enumeration valueWsUtilService.createEnumerationValue(java.lang.String, java.lang.String,
java.lang.String)public void createEnumerationType(java.lang.String typeCode)
throws JaloDuplicateCodeException
WsUtilServicecreateEnumerationType in interface WsUtilServicetypeCode - enumerationType type codeJaloDuplicateCodeExceptionWsUtilService.createEnumerationType(java.lang.String)public CompanyModel getCompany(java.lang.String uid)
WsUtilServicegetCompany in interface WsUtilServiceuid - uid value of CustomerModelWsUtilService.getCompany(java.lang.String)public java.util.Collection<CompanyModel> getAllCompanies()
WsUtilServicegetAllCompanies in interface WsUtilServiceWsUtilService.getAllCompanies()public CronJobModel createCronJobBasedOnCurrent(CronJobModel model, java.lang.String code)
WsUtilServicecreateCronJobBasedOnCurrent in interface WsUtilServicemodel - current cronjob modelcode - of the new cronjobWsUtilService.createCronJobBasedOnCurrent(CronJobModel, String)public java.util.Collection<KeywordModel> getAllKeywords(CatalogVersionModel versionModel)
WsUtilServicegetAllKeywords in interface WsUtilServiceversionModel - catalogVersionModel for which we wish to get all Keywordspublic KeywordModel getKeyword(CatalogVersionModel versionModel, LanguageModel language, java.lang.String keyword)
WsUtilServicegetKeyword in interface WsUtilServiceversionModel - catalog version of the Keywordlanguage - language in which the keyword is specifiedkeyword - value of the keywordpublic KeywordModel getKeyword(CatalogVersionModel versionModel, java.lang.String keyword)
WsUtilServicegetKeyword in interface WsUtilServiceversionModel - catalog version of the Keywordkeyword - value of the keywordpublic java.util.Set<java.lang.String> getConfigurationForType(int level,
java.lang.Class<?> runtimeNodeType,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> httpQueryParameters,
java.util.Set<java.lang.String> allowedAttributesNames,
java.util.List<java.lang.String> possibleConfigNodeNames)
WsUtilServicegetConfigurationForType in interface WsUtilServicelevel - Level of graph processing at which the node appears. The same node may has different configurations on
different levels. Level == 0 is for the nodes that represents root element in the output XML. This means
that for root resources every element of collection has level == 1 (root element is the collection
wrapper)runtimeNodeType - actual runtime type of the currently processed node.httpQueryParameters - query parameters as returned by
de.hybris.platform.webservices.objectgraphtransformer.YObjectGraphContext
.getUriInfo().getQueryParameters(). These are used to provide dynamic configuration entries.allowedAttributesNames - set of attribute names that are detected by the graph library for current node. The set of attribute
names returned by this method, if any, is a subset of allowedAttributes.possibleConfigNodeNames - Ordered list of names to look for in configuration. Used to find configuration entries that are valid
for currently processed node. More than one configuration entry can be valid for a node. Generally this
list should contain node type names and name of the property that refers to the node. The reasons for
this are explained below:
public boolean isMemberOf(java.lang.String userID,
java.lang.String userGroupID,
boolean includingSupergroups)
WsUtilServiceisMemberOf in interface WsUtilServiceuserID - the user ID.userGroupID - the group to check membership forincludingSupergroups - if true indirect membership through group-in-group is evaluated, otherwise only direct
membershipCopyright © 2018 SAP SE. All Rights Reserved.