Package DE_EPAGES::Shop::API::WebService::BaseShopService
Base class for shop web services (with shop as object).
Base |
DE_EPAGES::WebService::API::WebService::BaseService |
Functions
CheckPermission
Checks if the user is allowed to execute a web service method on the user's shop. Checks if the shop has the feature 'WebServices' or if the web service method is called by an authorized client application.
Syntax |
$IsAllowed = $self->CheckPermission( $WebService, $Method, $Login, $Password ); |
Input |
|
Return |
|
checkFeature
check if feature activated and enougth WS calls allowed produce an error if not enogth WS calls allowd
Syntax |
$self->checkFeature; |
featureAlias
simply returns the Alias of the current Webservie feature
Syntax |
my $FeatureAlias = $self->featureAlias; |
Return |
|
featureCount
returns the number of available allowed WebService calls today
Syntax |
my $FeatureCount = $self->featureCount($Feature); |
Input |
|
Return |
|
loadShopObject
loads the object specified by object path and verifies that is exists, belongs to the current shop and is an instance of a certain class. Raises an error if any condition is not fulfilled. Returns the object if all tests passed.
Syntax |
$Object = $self->loadShopObject( $Path, $ClassAlias ) |
Input |
|
Return |
|
object
Override method object from BaseShopService. Returns the base object on which the WebService will act. The 'Site' attribute (Shop) of the web service user will be used as base object.
Syntax |
$base_object = $service->object; |
Return |
|