public interface WsUtilService
| 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
|
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 |
setRequestUserIntoJaloSession(java.lang.String userID)
Set request user to jalosession.
|
AddressModel getAddress(java.lang.Long pk)
pk - pk of the address to obtainjava.util.List<AddressModel> getAllAddresses()
java.util.Set<RegionModel> getAllRegions(java.lang.String countryCode)
countryCode - ISO code of a country for which we're retrieving regionsjava.util.Collection<RegionModel> getAllRegions()
java.util.Collection<UnitModel> getAllUnits()
RegionModel getRegion(java.lang.String isocode)
isocode - code of the regionRegionModel getRegion(java.lang.String countryCode, java.lang.String isocode)
isocode - code of the regioncountryCode - code of the region's countryvoid setRequestUserIntoJaloSession(java.lang.String userID)
userID - authenticated user or anonymous uservoid setCatalogVersionsIntoJaloSession()
java.util.Collection<CartModel> getAllCarts()
java.util.Collection<DiscountModel> getAllDiscounts()
DiscountModel getDiscount(java.lang.String code)
code - code value of DiscountModeljava.util.Collection<CustomerModel> getAllCustomers()
CustomerModel getCustomer(java.lang.String login)
login - login value of CustomerModeljava.util.Collection<UserGroupModel> getAllUserGroups()
DeliveryModeModel getDeliveryModeByCode(java.lang.String code)
code - code value of DeliveryModeModeljava.util.Collection<DeliveryModeModel> getDeliveryModesByCode(java.lang.String code)
code - code value of DeliveryModeModelPaymentModeModel getPaymentModeByCode(java.lang.String code)
code - code value of PaymentModeModeljava.util.Collection<PaymentModeModel> getPaymentModesByCode(java.lang.String code)
code - code value of PaymentModeModeljava.util.Collection<EnumerationMetaTypeModel> getAllEnumerationTypes()
EnumerationValueModel createEnumerationValue(java.lang.String typeCode, java.lang.String valueCode, java.lang.String name)
typeCode - enumeration type codevalueCode - enumeration valuename - name of the enumeration valuevoid createEnumerationType(java.lang.String typeCode)
throws JaloDuplicateCodeException
typeCode - enumerationType type codeJaloDuplicateCodeExceptionCompanyModel getCompany(java.lang.String uid)
uid - uid value of CustomerModeljava.util.Collection<CompanyModel> getAllCompanies()
CronJobModel createCronJobBasedOnCurrent(CronJobModel model, java.lang.String code)
model - current cronjob modelcode - of the new cronjobjava.util.Collection<KeywordModel> getAllKeywords(CatalogVersionModel versionModel)
versionModel - catalogVersionModel for which we wish to get all KeywordsKeywordModel getKeyword(CatalogVersionModel versionModel, java.lang.String keyword)
versionModel - catalog version of the Keywordkeyword - value of the keywordKeywordModel getKeyword(CatalogVersionModel versionModel, LanguageModel language, java.lang.String keyword)
versionModel - catalog version of the Keywordkeyword - value of the keywordlanguage - language in which the keyword is specifiedNodeFactory findNodeFactory(java.lang.Class dtoClass)
dtoClass - the dto classjava.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)
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:
level - 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.boolean isMemberOf(java.lang.String userID,
java.lang.String userGroupID,
boolean includingSupergroups)
userID - the user ID.includingSupergroups - if true indirect membership through group-in-group is evaluated, otherwise only direct
membershipuserGroupID - the group to check membership forCopyright © 2018 SAP SE. All Rights Reserved.