public interface ServiceManagementService
| Modifier and Type | Method and Description |
|---|---|
void |
activateService(String serviceId)
Makes service active.
|
void |
addService(String serviceId,
ServiceProfile profile,
ServiceInstance instance,
Attribute[] attributes)
Adds service.
|
void |
addServiceAs(String ownerUserId,
String serviceId,
ServiceProfile profile,
ServiceInstance instance,
Attribute[] attributes)
Sets the user with ownership and adds the service.
|
void |
clear()
Erase all services.
|
void |
deactivateService(String serviceId)
Makes service inactive.
|
void |
deleteService(String serviceId)
Deletes a registered service.
|
Invocation[] |
getExternalInvocations(String serviceId)
Gets external service call data.
|
Attribute[] |
getServiceAttributes(String serviceId,
String[] attributeNames)
Gets service attributes.
|
ServiceInstance |
getServiceInstance(String serviceId)
Gets data about the instance of the service.
|
ServiceProfile |
getServiceProfile(String serviceId)
Gets the service's profile data.
|
byte[] |
getServiceWsdl(String serviceId)
Gets the service's WSDL.
|
boolean |
isServiceActive(String serviceId)
Returns whether the service is active or not.
|
boolean |
isServiceVisible(String serviceId)
Returns whether the service is visible or not.
|
ServiceEntrySearchResult |
searchServices(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders,
String scope)
Searches services over the specified conditions, sorts and returns.
|
ServiceEntryWithCompactLanguageExpressionSearchResult |
searchServicesWithCompactLanguageExpression(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders,
String scope)
Searches services over the specified conditions, sorts and returns.
|
void |
setServiceAttributes(String serviceId,
Attribute[] attributes)
Sets service attributes.
|
void |
setServiceInstance(String serviceId,
ServiceInstance instance)
Sets data about the instance of the service.
|
void |
setServiceProfile(String serviceId,
ServiceProfile profile)
Sets the service's profile data.
|
void |
setServiceVisible(String serviceId,
boolean visible)
Sets whether the service is visible or not.
|
void clear()
throws AccessLimitExceededException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
AccessLimitExceededException - Violated an access restrictionNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - The service is not set up appropriatelyUnknownException - Process failedServiceEntrySearchResult searchServices(int startIndex, int maxCount, MatchingCondition[] conditions, Order[] orders, String scope) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UnsupportedMatchingMethodException
startIndex - Starting position of result acquisitionmaxCount - Maximum number of acquired resultsconditions - Matching conditions. AND searchorders - Sort conditionscope - Object range (scope)("ALL", "MINE", "ACCESSIBLE")AccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - The service is not set up appropriatelyUnknownException - Process failed for an unknown reasonUnsupportedMatchingMethodException - An unsupported matching method was specifiedServiceEntryWithCompactLanguageExpressionSearchResult searchServicesWithCompactLanguageExpression(int startIndex, int maxCount, MatchingCondition[] conditions, Order[] orders, String scope) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UnsupportedMatchingMethodException
startIndex - Starting position of result acquisitionmaxCount - Maximum number of acquired resultsconditions - Matching conditions. AND searchorders - Sort conditionscope - Object range (scope)("ALL", "MINE", "ACCESSIBLE")AccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - The service is not set up appropriatelyUnknownException - Process failed for an unknown reasonUnsupportedMatchingMethodException - An unsupported matching method was specifiedvoid addService(String serviceId, ServiceProfile profile, ServiceInstance instance, Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceAlreadyExistsException, ServiceConfigurationException, UnknownException
serviceId - Service IDprofile - Service datainstance - Service instance (Contents differ according to the type of service instance)attributes - Service's extended attribute dataAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceAlreadyExistsException - The specified service already existsServiceConfigurationException - Process failed because service setup is invalidUnknownException - Process failedvoid addServiceAs(String ownerUserId, String serviceId, ServiceProfile profile, ServiceInstance instance, Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceAlreadyExistsException, ServiceConfigurationException, UnknownException
ownerUserId - User who has ownershipserviceId - Service IDprofile - Service datainstance - Service instance (Contents differ according to the type of service instance)attributes - Service's extended attribute dataAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceAlreadyExistsException - The specified service already existsServiceConfigurationException - Process failed because service setup is invalidUnknownException - Process failedvoid deleteService(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, ServiceNotInactiveException, UnknownException
serviceId - ID of the deleted serviceAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundServiceNotInactiveException - The specified service is not inactiveUnknownException - Process failed due to an unknown causeServiceProfile getServiceProfile(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causevoid setServiceProfile(String serviceId, ServiceProfile profile) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDprofile - Profile dataAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causeAttribute[] getServiceAttributes(String serviceId, String[] attributeNames) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDattributeNames - Array of names of acquired attributesAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causevoid setServiceAttributes(String serviceId, Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDattributes - Array of attributes to be setAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causeServiceInstance getServiceInstance(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causevoid setServiceInstance(String serviceId, ServiceInstance instance) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, ServiceNotInactiveException, UnknownException
serviceId - Service IDinstance - Data relating to the instance of the serviceAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundServiceNotInactiveException - The service is not inactiveUnknownException - Process failed due to an unknown causebyte[] getServiceWsdl(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causevoid activateService(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotActivatableException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotActivatableException - Service cannot be made activeServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causevoid deactivateService(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotDeactivatableException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotDeactivatableException - Service cannot be made inactiveServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causeboolean isServiceActive(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causeInvocation[] getExternalInvocations(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causeboolean isServiceVisible(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown causevoid setServiceVisible(String serviceId, boolean visible) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ServiceNotFoundException, UnknownException
serviceId - Service IDvisible - True when visibleAccessLimitExceededException - Violated an access restrictionInvalidParameterException - An invalid parameter was passedNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - Process failed because service setup is invalidServiceNotFoundException - The specified service was not foundUnknownException - Process failed due to an unknown cause