Package cz.metacentrum.perun.core.impl
Class ServicesManagerImpl
java.lang.Object
cz.metacentrum.perun.core.impl.ServicesManagerImpl
- All Implemented Interfaces:
ServicesManagerImplApi
- Author:
- Michal Prochazka invalid input: '<'michalp@ics.muni.cz>, Slavek Licehammer invalid input: '<'glory@ics.muni.cz>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RowMapper
<Destination> static final String
static final String
static final RowMapper
<RichDestination> static final String
static final String
static final RowMapper
<ServiceDenial> static final String
static final String
static final String
static final RowMapper
<ServicesPackage> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDestination
(PerunSession sess, Service service, Facility facility, Destination destination) Adds an destination for the facility and service.void
addRequiredAttribute
(PerunSession sess, Service service, AttributeDefinition attribute) Mark the attribute as required for the service.void
addRequiredAttributes
(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) Batch version of addRequiredAttributevoid
addServiceToServicesPackage
(PerunSession sess, ServicesPackage servicesPackage, Service service) Add the service to the packagevoid
blockServiceOnDestination
(PerunSession sess, int serviceId, int destinationId) Block Service on specific Destination.void
blockServiceOnFacility
(PerunSession sess, int serviceId, int facilityId) Block Service on Facility.void
checkServiceExists
(PerunSession sess, Service service) Check if service exists in underlaying data source.void
checkServicesPackageExists
(PerunSession sess, ServicesPackage servicesPackage) Check if services package exists in underlaying data source.createDestination
(PerunSession sess, Destination destination) createService
(PerunSession sess, Service service) Creates new service.createServicesPackage
(PerunSession sess, ServicesPackage servicesPackage) Insert a new packagevoid
deleteDestination
(PerunSession sess, Destination destination) Deletes destination.void
deleteService
(PerunSession sess, Service service) Deletes the service.void
deleteServicesPackage
(PerunSession sess, ServicesPackage servicesPackage) Remove the packageboolean
destinationExists
(PerunSession sess, Destination destination) boolean
destinationExists
(PerunSession sess, Service service, Facility facility, Destination destination) Determine if destination exists for specified facility and service.getAllRichDestinations
(PerunSession perunSession, Facility facility) Get list of all rich destinations defined for the facility.getAllRichDestinations
(PerunSession perunSession, Service service) Get list of all rich destinations defined for the service.getAssignedResources
(PerunSession sess, Service service) Get all resources which use this service.getAssignedServices
(PerunSession perunSession, Facility facility) List all services associated with the facility (via resource).getAssignedServices
(PerunSession perunSession, Facility facility, Vo vo) List all services associated with the facility and vo (via resource).getDestination
(PerunSession sess, String destination, String type) Get destination by String destination and typegetDestinationById
(PerunSession sess, int id) Get destination by idgetDestinations
(PerunSession perunSession) Get list of all destinations.getDestinations
(PerunSession perunSession, Facility facility) Get lists of all destinations for specific FacilitygetDestinations
(PerunSession sess, Service service, Facility facility) Get list of all destinations defined for the service and facility.int
Get count of all destinations.getFacilitiesDestinations
(PerunSession sess, Vo vo) List all destinations for all facilities which are joined by resources to the VO.getRichDestinations
(PerunSession perunSession, Facility facility, Service service) Get list of all rich destinations defined for the service and the facilitygetServiceById
(PerunSession sess, int id) Get service by id.getServiceByName
(PerunSession sess, String name) Get service by name.getServices
(PerunSession sess) get all services in perungetServicesBlockedOnDestination
(int destinationId) Get Services blocked on Destination.getServicesBlockedOnFacility
(int facilityId) Get Services blocked on Facility.getServicesByAttributeDefinition
(PerunSession sess, AttributeDefinition attributeDefinition) Get all services with given attribute.getServicesFromDestination
(int destinationId) Return list of services this destination points to.getServicesFromServicesPackage
(PerunSession sess, ServicesPackage servicesPackage) List services stored in the packagesgetServicesPackageById
(PerunSession sess, int servicesPackageId) Get package by IdgetServicesPackageByName
(PerunSession sess, String name) Get services package by name.List packagesboolean
isServiceAssignedToFacility
(PerunSession sess, Facility facility, Service service) Checks whether given service is assigned to given facility (through some resource).boolean
isServiceBlockedOnDestination
(int serviceId, int destinationId) Return TRUE if Service is blocked on Destination.boolean
isServiceBlockedOnFacility
(int serviceId, int facilityId) Return TRUE if Service is blocked on Facility.void
removeAllDestinations
(PerunSession sess, Facility facility) Removes all defined destinations for the facility.void
removeAllDestinations
(PerunSession sess, Service service, Facility facility) Removes all defined destinations for the service and facility.void
removeAllRequiredAttributes
(PerunSession sess, Service service) Detate all required attributes from servicevoid
removeDestination
(PerunSession sess, Service service, Facility facility, Destination destination) Removes an destination from the facility and service.void
removeRequiredAttribute
(PerunSession sess, Service service, AttributeDefinition attribute) Remove required attribute from service.void
removeRequiredAttributes
(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) Batch version of removeRequiredAttributevoid
removeServiceFromAllServicesPackages
(PerunSession sess, Service service) Remove Service from all Services Packagesvoid
removeServiceFromServicesPackage
(PerunSession sess, ServicesPackage servicesPackage, Service service) Remove Service from Services Packageboolean
serviceExists
(PerunSession sess, Service service) Check if service exists in underlaying data source.boolean
servicesPackageExists
(PerunSession sess, ServicesPackage servicesPackage) Check if services package exists in underlaying data source.void
unblockAllServicesOnDestination
(int destinationId) Unblock all blocked Services on specified Destination.void
unblockAllServicesOnFacility
(int facilityId) Unblock all blocked Services on Facility.void
unblockService
(int serviceId) Unblock Service everywhere.void
unblockServiceOnDestination
(int serviceId, int destinationId) Unblock Service on specific Destination.void
unblockServiceOnFacility
(int serviceId, int facilityId) Unblock Service on whole Facility.void
updateService
(PerunSession sess, Service service) Updates the service.void
updateServicesPackage
(PerunSession sess, ServicesPackage servicesPackage) Update package
-
Field Details
-
SERVICE_MAPPING_SELECT_QUERY
- See Also:
-
SERVICE_DENIAL_MAPPING_SELECT_QUERY
- See Also:
-
SERVICE_PACKAGE_MAPPING_SELECT_QUERY
- See Also:
-
DESTINATION_MAPPING_SELECT_QUERY
- See Also:
-
FACILITY_DESTINATION_MAPPING_SELECT_QUERY
- See Also:
-
RICH_DESTINATION_MAPPING_SELECT_QUERY
- See Also:
-
RICH_DESTINATION_WITH_LAST_SUCCESSFUL_PROPAGATION_MAPPING_SELECT_QUERY
- See Also:
-
SERVICE_MAPPER
-
SERVICE_DENIAL_MAPPER
-
SERVICESPACKAGE_MAPPER
-
DESTINATION_MAPPER
-
RICH_DESTINATION_MAPPER
-
-
Constructor Details
-
ServicesManagerImpl
-
-
Method Details
-
addDestination
public void addDestination(PerunSession sess, Service service, Facility facility, Destination destination) throws DestinationAlreadyAssignedException Description copied from interface:ServicesManagerImplApi
Adds an destination for the facility and service.- Specified by:
addDestination
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-facility
-destination
- string contains destination address (mail, url, hostname, ...)- Throws:
DestinationAlreadyAssignedException
- when the combination already exists
-
addRequiredAttribute
public void addRequiredAttribute(PerunSession sess, Service service, AttributeDefinition attribute) throws AttributeAlreadyAssignedException Description copied from interface:ServicesManagerImplApi
Mark the attribute as required for the service. Required attribues are requisite for Service to run. If you add attribute which has a default attribute then this default attribute will be automatically add too.- Specified by:
addRequiredAttribute
in interfaceServicesManagerImplApi
- Parameters:
sess
- perunSessionservice
- service to which the attribute will be addedattribute
- attribute to add- Throws:
AttributeAlreadyAssignedException
- if the attribute is already added
-
addRequiredAttributes
public void addRequiredAttributes(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) throws AttributeAlreadyAssignedException Description copied from interface:ServicesManagerImplApi
Batch version of addRequiredAttribute- Specified by:
addRequiredAttributes
in interfaceServicesManagerImplApi
- Throws:
AttributeAlreadyAssignedException
- See Also:
-
addServiceToServicesPackage
public void addServiceToServicesPackage(PerunSession sess, ServicesPackage servicesPackage, Service service) throws ServiceAlreadyAssignedException Description copied from interface:ServicesManagerImplApi
Add the service to the package- Specified by:
addServiceToServicesPackage
in interfaceServicesManagerImplApi
- Parameters:
sess
-servicesPackage
- services package to which the service supposed to be addedservice
- service to be added to the services package- Throws:
ServiceAlreadyAssignedException
-
blockServiceOnDestination
public void blockServiceOnDestination(PerunSession sess, int serviceId, int destinationId) throws ServiceAlreadyBannedException Description copied from interface:ServicesManagerImplApi
Block Service on specific Destination. Service still can be propagated to other facility Destinations.- Specified by:
blockServiceOnDestination
in interfaceServicesManagerImplApi
- Parameters:
sess
-serviceId
- The Service to be blocked on this particular destinationdestinationId
- The destination on which we want to block the Service- Throws:
ServiceAlreadyBannedException
-
blockServiceOnFacility
public void blockServiceOnFacility(PerunSession sess, int serviceId, int facilityId) throws ServiceAlreadyBannedException Description copied from interface:ServicesManagerImplApi
Block Service on Facility. It won't be possible to propagate service on whole facility or any of its destinations.- Specified by:
blockServiceOnFacility
in interfaceServicesManagerImplApi
- Parameters:
sess
-serviceId
- The Service to be blocked on the FacilityfacilityId
- The Facility on which we want to block the Service- Throws:
ServiceAlreadyBannedException
-
checkServiceExists
Description copied from interface:ServicesManagerImplApi
Check if service exists in underlaying data source.- Specified by:
checkServiceExists
in interfaceServicesManagerImplApi
- Parameters:
sess
- perun sessionservice
- service to check- Throws:
ServiceNotExistsException
- if service doesn't exists
-
checkServicesPackageExists
public void checkServicesPackageExists(PerunSession sess, ServicesPackage servicesPackage) throws ServicesPackageNotExistsException Description copied from interface:ServicesManagerImplApi
Check if services package exists in underlaying data source.- Specified by:
checkServicesPackageExists
in interfaceServicesManagerImplApi
- Parameters:
sess
- perun sessionservicesPackage
- services package to check- Throws:
ServicesPackageNotExistsException
- if service doesn't exists
-
createDestination
- Specified by:
createDestination
in interfaceServicesManagerImplApi
-
createService
Description copied from interface:ServicesManagerImplApi
Creates new service.- Specified by:
createService
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-- Returns:
- new service
-
createServicesPackage
Description copied from interface:ServicesManagerImplApi
Insert a new package- Specified by:
createServicesPackage
in interfaceServicesManagerImplApi
- Parameters:
sess
-servicesPackage
- package to be inserted- Returns:
- ServicesPackage object completely filled (including Id)
-
deleteDestination
public void deleteDestination(PerunSession sess, Destination destination) throws DestinationAlreadyRemovedException, RelationExistsException Description copied from interface:ServicesManagerImplApi
Deletes destination.- Specified by:
deleteDestination
in interfaceServicesManagerImplApi
- Parameters:
sess
-destination
- destination to be deleted- Throws:
DestinationAlreadyRemovedException
- if there are 0 rows affected by deleting from DBRelationExistsException
- if the destination has some existing relations in DB
-
deleteService
Description copied from interface:ServicesManagerImplApi
Deletes the service.- Specified by:
deleteService
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-- Throws:
ServiceAlreadyRemovedException
- if there are 0 rows affected by deleting from DB
-
deleteServicesPackage
Description copied from interface:ServicesManagerImplApi
Remove the package- Specified by:
deleteServicesPackage
in interfaceServicesManagerImplApi
- Parameters:
sess
-servicesPackage
- services package to be removed.
-
destinationExists
public boolean destinationExists(PerunSession sess, Service service, Facility facility, Destination destination) Description copied from interface:ServicesManagerImplApi
Determine if destination exists for specified facility and service.- Specified by:
destinationExists
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-facility
-destination
-- Returns:
- true if the destination exists for the facility and the resource
-
destinationExists
- Specified by:
destinationExists
in interfaceServicesManagerImplApi
-
getAllRichDestinations
Description copied from interface:ServicesManagerImplApi
Get list of all rich destinations defined for the facility.- Specified by:
getAllRichDestinations
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-facility
-- Returns:
- list of rich destinations defined for the facility
-
getAllRichDestinations
Description copied from interface:ServicesManagerImplApi
Get list of all rich destinations defined for the service.- Specified by:
getAllRichDestinations
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-service
-- Returns:
- list of rich destinations defined for the service
-
getAssignedResources
Description copied from interface:ServicesManagerImplApi
Get all resources which use this service.- Specified by:
getAssignedResources
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-- Returns:
- list of resources
-
getAssignedServices
Description copied from interface:ServicesManagerImplApi
List all services associated with the facility (via resource).- Specified by:
getAssignedServices
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-facility
-- Returns:
- list of services assigned to facility
-
getAssignedServices
Description copied from interface:ServicesManagerImplApi
List all services associated with the facility and vo (via resource).- Specified by:
getAssignedServices
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-facility
-vo
-- Returns:
- list of services assigned to facility and vo
-
getDestination
public Destination getDestination(PerunSession sess, String destination, String type) throws DestinationNotExistsException Description copied from interface:ServicesManagerImplApi
Get destination by String destination and type- Specified by:
getDestination
in interfaceServicesManagerImplApi
- Parameters:
sess
-destination
- Destination string representationtype
- type of destination- Returns:
- Destination
- Throws:
DestinationNotExistsException
-
getDestinationById
public Destination getDestinationById(PerunSession sess, int id) throws DestinationNotExistsException Description copied from interface:ServicesManagerImplApi
Get destination by id- Specified by:
getDestinationById
in interfaceServicesManagerImplApi
- Parameters:
sess
-id
-- Returns:
- Destination with the id
- Throws:
DestinationNotExistsException
-
getDestinations
Description copied from interface:ServicesManagerImplApi
Get list of all destinations defined for the service and facility.- Specified by:
getDestinations
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-facility
-- Returns:
- list list of destinations defined for the service and facility
-
getDestinations
Description copied from interface:ServicesManagerImplApi
Get list of all destinations.- Specified by:
getDestinations
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-- Returns:
- list of all destinations for session
-
getDestinations
Description copied from interface:ServicesManagerImplApi
Get lists of all destinations for specific Facility- Specified by:
getDestinations
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-facility
- the facility- Returns:
- lists of all destinations for specific Facility
-
getDestinationsCount
Description copied from interface:ServicesManagerImplApi
Get count of all destinations.- Specified by:
getDestinationsCount
in interfaceServicesManagerImplApi
- Parameters:
sess
-- Returns:
- count of all destinations
-
getFacilitiesDestinations
Description copied from interface:ServicesManagerImplApi
List all destinations for all facilities which are joined by resources to the VO.- Specified by:
getFacilitiesDestinations
in interfaceServicesManagerImplApi
- Parameters:
sess
-vo
- vo for which we are searching destinations- Returns:
- list of destinations
-
getRichDestinations
public List<RichDestination> getRichDestinations(PerunSession perunSession, Facility facility, Service service) Description copied from interface:ServicesManagerImplApi
Get list of all rich destinations defined for the service and the facility- Specified by:
getRichDestinations
in interfaceServicesManagerImplApi
- Parameters:
perunSession
-facility
-service
-- Returns:
- list of rich destinations defined for the service and the facility
-
getServiceById
Description copied from interface:ServicesManagerImplApi
Get service by id.- Specified by:
getServiceById
in interfaceServicesManagerImplApi
- Parameters:
sess
-id
-- Returns:
- service with specified id
- Throws:
ServiceNotExistsException
-
getServiceByName
Description copied from interface:ServicesManagerImplApi
Get service by name.- Specified by:
getServiceByName
in interfaceServicesManagerImplApi
- Parameters:
sess
-name
- name of the service- Returns:
- service with specified name
- Throws:
ServiceNotExistsException
-
getServices
Description copied from interface:ServicesManagerImplApi
get all services in perun- Specified by:
getServices
in interfaceServicesManagerImplApi
- Parameters:
sess
-- Returns:
- all services in perun
-
getServicesBlockedOnDestination
Description copied from interface:ServicesManagerImplApi
Get Services blocked on Destination.- Specified by:
getServicesBlockedOnDestination
in interfaceServicesManagerImplApi
- Parameters:
destinationId
- ID of Destination to get blocked Services for.- Returns:
- List of blocked Services.
-
getServicesBlockedOnFacility
Description copied from interface:ServicesManagerImplApi
Get Services blocked on Facility.- Specified by:
getServicesBlockedOnFacility
in interfaceServicesManagerImplApi
- Parameters:
facilityId
- ID of Facility to get blocked Services for.- Returns:
- List of blocked Services.
-
getServicesByAttributeDefinition
public List<Service> getServicesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Description copied from interface:ServicesManagerImplApi
Get all services with given attribute.- Specified by:
getServicesByAttributeDefinition
in interfaceServicesManagerImplApi
- Parameters:
sess
- perun sessionattributeDefinition
-- Returns:
- all services with given attribute
-
getServicesFromDestination
Description copied from interface:ServicesManagerImplApi
Return list of services this destination points to.- Specified by:
getServicesFromDestination
in interfaceServicesManagerImplApi
- Parameters:
destinationId
- ID of destination- Returns:
- Services associated with this destination.
-
getServicesFromServicesPackage
public List<Service> getServicesFromServicesPackage(PerunSession sess, ServicesPackage servicesPackage) Description copied from interface:ServicesManagerImplApi
List services stored in the packages- Specified by:
getServicesFromServicesPackage
in interfaceServicesManagerImplApi
- Parameters:
servicesPackage
- the package from which we want to list the services- Returns:
- list consisting services
-
getServicesPackageById
public ServicesPackage getServicesPackageById(PerunSession sess, int servicesPackageId) throws ServicesPackageNotExistsException Description copied from interface:ServicesManagerImplApi
Get package by Id- Specified by:
getServicesPackageById
in interfaceServicesManagerImplApi
- Parameters:
sess
-servicesPackageId
- id of the package we want to retrieve- Returns:
- package
- Throws:
ServicesPackageNotExistsException
-
getServicesPackageByName
public ServicesPackage getServicesPackageByName(PerunSession sess, String name) throws ServicesPackageNotExistsException Description copied from interface:ServicesManagerImplApi
Get services package by name.- Specified by:
getServicesPackageByName
in interfaceServicesManagerImplApi
- Parameters:
sess
-name
-- Returns:
- package
- Throws:
ServicesPackageNotExistsException
-
getServicesPackages
Description copied from interface:ServicesManagerImplApi
List packages- Specified by:
getServicesPackages
in interfaceServicesManagerImplApi
- Parameters:
sess
-- Returns:
- list of packages in the DB
-
isServiceAssignedToFacility
Description copied from interface:ServicesManagerImplApi
Checks whether given service is assigned to given facility (through some resource).- Specified by:
isServiceAssignedToFacility
in interfaceServicesManagerImplApi
- Parameters:
sess
- sessionfacility
- facilityservice
- service- Returns:
- true if service is assigned to given facility, false otherwise
-
isServiceBlockedOnDestination
public boolean isServiceBlockedOnDestination(int serviceId, int destinationId) Description copied from interface:ServicesManagerImplApi
Return TRUE if Service is blocked on Destination.- Specified by:
isServiceBlockedOnDestination
in interfaceServicesManagerImplApi
- Parameters:
serviceId
- ID of Service to check on.destinationId
- ID of Destination to check on.- Returns:
- TRUE if Service is blocked on Destination / FALSE otherwise
-
isServiceBlockedOnFacility
public boolean isServiceBlockedOnFacility(int serviceId, int facilityId) Description copied from interface:ServicesManagerImplApi
Return TRUE if Service is blocked on Facility.- Specified by:
isServiceBlockedOnFacility
in interfaceServicesManagerImplApi
- Parameters:
serviceId
- ID of Service to check on.facilityId
- ID of Facility to check on.- Returns:
- TRUE if Service is blocked on Facility / FALSE otherwise
-
removeAllDestinations
Description copied from interface:ServicesManagerImplApi
Removes all defined destinations for the service and facility.- Specified by:
removeAllDestinations
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-facility
-
-
removeAllDestinations
Description copied from interface:ServicesManagerImplApi
Removes all defined destinations for the facility.- Specified by:
removeAllDestinations
in interfaceServicesManagerImplApi
- Parameters:
sess
-facility
- the facility
-
removeAllRequiredAttributes
Description copied from interface:ServicesManagerImplApi
Detate all required attributes from service- Specified by:
removeAllRequiredAttributes
in interfaceServicesManagerImplApi
- Parameters:
sess
- perunSessionservice
- service from which the attributes will be removed
-
removeDestination
public void removeDestination(PerunSession sess, Service service, Facility facility, Destination destination) throws DestinationAlreadyRemovedException Description copied from interface:ServicesManagerImplApi
Removes an destination from the facility and service.- Specified by:
removeDestination
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-facility
-destination
- string contains destination address (mail, url, hostname, ...)- Throws:
DestinationAlreadyRemovedException
-
removeRequiredAttribute
public void removeRequiredAttribute(PerunSession sess, Service service, AttributeDefinition attribute) throws AttributeNotAssignedException Description copied from interface:ServicesManagerImplApi
Remove required attribute from service. TODO If you try to remove attribute which is default for other Required attribute ...- Specified by:
removeRequiredAttribute
in interfaceServicesManagerImplApi
- Parameters:
sess
- perunSessionservice
- service from which the attribute will be removedattribute
- attribute to remove- Throws:
AttributeNotAssignedException
-
removeRequiredAttributes
public void removeRequiredAttributes(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) throws AttributeNotAssignedException Description copied from interface:ServicesManagerImplApi
Batch version of removeRequiredAttribute- Specified by:
removeRequiredAttributes
in interfaceServicesManagerImplApi
- Throws:
AttributeNotAssignedException
- See Also:
-
removeServiceFromAllServicesPackages
Description copied from interface:ServicesManagerImplApi
Remove Service from all Services Packages- Specified by:
removeServiceFromAllServicesPackages
in interfaceServicesManagerImplApi
- Parameters:
service
- service that will be removed from the services package
-
removeServiceFromServicesPackage
public void removeServiceFromServicesPackage(PerunSession sess, ServicesPackage servicesPackage, Service service) throws ServiceAlreadyRemovedFromServicePackageException Description copied from interface:ServicesManagerImplApi
Remove Service from Services Package- Specified by:
removeServiceFromServicesPackage
in interfaceServicesManagerImplApi
- Parameters:
sess
-servicesPackage
- services package from which the service supposed to be removedservice
- service that will be removed from the services package- Throws:
ServiceAlreadyRemovedFromServicePackageException
- there are 0 rows affected by removing service from service package in DB
-
serviceExists
Description copied from interface:ServicesManagerImplApi
Check if service exists in underlaying data source.- Specified by:
serviceExists
in interfaceServicesManagerImplApi
- Parameters:
sess
- perun sessionservice
- service to check- Returns:
- true if service exists in underlaying data source, false otherwise
-
servicesPackageExists
Description copied from interface:ServicesManagerImplApi
Check if services package exists in underlaying data source.- Specified by:
servicesPackageExists
in interfaceServicesManagerImplApi
- Parameters:
sess
- perun sessionservicesPackage
- services package to check- Returns:
- true if services package exists in underlaying data source, false otherwise
-
unblockAllServicesOnDestination
public void unblockAllServicesOnDestination(int destinationId) Description copied from interface:ServicesManagerImplApi
Unblock all blocked Services on specified Destination.- Specified by:
unblockAllServicesOnDestination
in interfaceServicesManagerImplApi
- Parameters:
destinationId
- ID of Destination we want to unblock all Services.
-
unblockAllServicesOnFacility
public void unblockAllServicesOnFacility(int facilityId) Description copied from interface:ServicesManagerImplApi
Unblock all blocked Services on Facility.- Specified by:
unblockAllServicesOnFacility
in interfaceServicesManagerImplApi
- Parameters:
facilityId
- ID of Facility we want to unblock all Services.
-
unblockService
public void unblockService(int serviceId) Description copied from interface:ServicesManagerImplApi
Unblock Service everywhere. If was not blocked, nothing happens.- Specified by:
unblockService
in interfaceServicesManagerImplApi
- Parameters:
serviceId
- ID of Service to unblock.
-
unblockServiceOnDestination
public void unblockServiceOnDestination(int serviceId, int destinationId) Description copied from interface:ServicesManagerImplApi
Unblock Service on specific Destination. If was not blocked, nothing happens.- Specified by:
unblockServiceOnDestination
in interfaceServicesManagerImplApi
- Parameters:
serviceId
- ID of Service to unblock on Destination.destinationId
- ID of Destination to unblock Service on.
-
unblockServiceOnFacility
public void unblockServiceOnFacility(int serviceId, int facilityId) Description copied from interface:ServicesManagerImplApi
Unblock Service on whole Facility. If was not blocked, nothing happens.- Specified by:
unblockServiceOnFacility
in interfaceServicesManagerImplApi
- Parameters:
serviceId
- ID of Service to unblock on Facility.facilityId
- ID of Facility to unblock Service on.
-
updateService
Description copied from interface:ServicesManagerImplApi
Updates the service.- Specified by:
updateService
in interfaceServicesManagerImplApi
- Parameters:
sess
-service
-
-
updateServicesPackage
Description copied from interface:ServicesManagerImplApi
Update package- Specified by:
updateServicesPackage
in interfaceServicesManagerImplApi
- Parameters:
sess
-servicesPackage
- with which is the old one supposed to be updated :-)
-