Class ServicesManagerBlImpl
- All Implemented Interfaces:
- ServicesManagerBl
- Author:
- Michal Prochazka invalid input: '<'michalp@ics.muni.cz>, Slavek Licehammer invalid input: '<'glory@ics.muni.cz>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddDestination(PerunSession sess, Service service, Facility facility, Destination destination) Adds an destination for the facility and service.addDestination(PerunSession perunSession, List<Service> services, Facility facility, Destination destination) Adds an destination for the facility and all services.addDestinationsDefinedByHostsOnFacility(PerunSession perunSession, Facility facility) Defines services destination for all hosts using their hostnames.addDestinationsDefinedByHostsOnFacility(PerunSession perunSession, Service service, Facility facility) Defines service destination for all hosts using theirs hostnames.addDestinationsDefinedByHostsOnFacility(PerunSession perunSession, List<Service> services, Facility facility) Defines services destination for all hosts using their hostnames.addDestinationsForAllServicesOnFacility(PerunSession sess, Facility facility, Destination destination) Adds destination for all services defined on the facility.voidaddRequiredAttribute(PerunSession sess, Service service, AttributeDefinition attribute) Mark the attribute as required for the service.voidaddRequiredAttributes(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) Batch version of addRequiredAttributevoidblockAllServicesOnDestination(PerunSession sess, int destinationId) Block all services currently assigned on this destination.voidblockAllServicesOnFacility(PerunSession sess, Facility facility) Block all services currently assigned on this facility.voidblockServiceOnDestination(PerunSession sess, Service service, int destinationId) Bans Service on destination.voidblockServiceOnFacility(PerunSession sess, Service service, Facility facility) Bans Service on facility.voidcheckServiceExists(PerunSession sess, Service service) Check if the service exits.createDestination(PerunSession sess, Destination destination) createService(PerunSession sess, Service service) Creates new service.voiddeleteDestination(PerunSession sess, Destination destination) Deletes destination.voiddeleteService(PerunSession perunSession, Service service, boolean forceFlag) Deletes the service.booleanforceServicePropagation(PerunSession sess, Facility facility, Service service) Forces service propagation on defined facility.booleanforceServicePropagation(PerunSession sess, Service service) Forces service propagation on all facilities where the service is defined on.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 where the service is defined.getAssignedServices(PerunSession sess, Facility facility) List all services associated with the facility (via resource).getAssignedServices(PerunSession sess, Facility facility, Vo vo) List all services associated with the facility and vo (via resource).getDestinationById(PerunSession sess, int id) Get destination by idintgetDestinationIdByName(PerunSession sess, String name, String type) Returns Destinations ID based on destination name and type.getDestinations(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.intGet count of all destinations.getFacilitiesDestinations(PerunSession sess, Vo vo) List all destinations for all facilities which are joined by resources to the VO.getFacilityAssignedServicesForGUI(PerunSession perunSession, Facility facility) Return list of ServiceForGUI assigned on facility, (Service with "allowedOnFacility" property filled). 1 - allowed / 0 - service is denied).getHashedDataWithGroups(PerunSession sess, Service service, Facility facility, boolean consentEval, int taskRunId) Generates hashed data with group structure for given service and resource.getHashedHierarchicalData(PerunSession sess, Service service, Facility facility, boolean consentEval, int taskRunId) Generates hashed hierarchical data structure for given service and resource.Gets the perunBl.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(PerunSession perunSession, int destinationId) List all the Services that are banned on this destination.getServicesBlockedOnFacility(PerunSession perunSession, Facility facility) List all the Services that are banned on this facility.getServicesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Get all services with given attribute.booleanisServiceAssignedToFacility(PerunSession sess, Facility facility, Service service) Checks whether given service is assigned to given facility (through some resource).booleanisServiceBlockedOnDestination(Service service, int destinationId) Is this Service denied on the destination?booleanisServiceBlockedOnFacility(Service service, Facility facility) Is this Service denied on the facility?booleanplanServicePropagation(PerunSession perunSession, Facility facility, Service service) Plans service propagation on defined facility.booleanplanServicePropagation(PerunSession perunSession, Service service) Forces service propagation on all facilities where the service is defined on.voidremoveAllDestinations(PerunSession perunSession, Facility facility) Removes all defined destinations for the facility.voidremoveAllDestinations(PerunSession sess, Service service, Facility facility) Removes all defined destinations for the service and facility.voidremoveAllRequiredAttributes(PerunSession sess, Service service) Detate all required attributes from service.voidremoveDestination(PerunSession sess, Service service, Facility facility, Destination destination) Removes an destination from the facility and service.voidremoveRequiredAttribute(PerunSession sess, Service service, AttributeDefinition attribute) Remove required attribute from service.voidremoveRequiredAttributes(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) Batch version of removeRequiredAttributevoidsetPerunBl(PerunBl perunBl) voidunblockAllServicesOnDestination(PerunSession sess, int destinationId) Erase all the possible denials on this destination.voidunblockAllServicesOnDestination(PerunSession sess, String destinationName) Erase all the possible denials on destinations defined by the destinationName.voidunblockAllServicesOnFacility(PerunSession sess, Facility facility) Erase all the possible denials on this facility.voidunblockServiceOnDestination(PerunSession sess, Service service, int destinationId) Free the denial of the Service on this destination.voidunblockServiceOnFacility(PerunSession sess, Service service, Facility facility) Free the denial of the Service on this facility.voidupdateService(PerunSession sess, Service service) Updates the service.
- 
Constructor Details- 
ServicesManagerBlImpl
 
- 
- 
Method Details- 
addDestinationpublic Destination addDestination(PerunSession sess, Service service, Facility facility, Destination destination) throws DestinationAlreadyAssignedException Description copied from interface:ServicesManagerBlAdds an destination for the facility and service. Destination.id doesn't need to be filled. If destination doesn't exist it will be created.- Specified by:
- addDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- facility-
- destination- (Id of this destination doesn't need to be filled.)
- Returns:
- destination with it's id set.
- Throws:
- DestinationAlreadyAssignedException
 
- 
addDestinationpublic Destination addDestination(PerunSession perunSession, List<Service> services, Facility facility, Destination destination) Description copied from interface:ServicesManagerBlAdds an destination for the facility and all services. Destination id doesn't need to be filled. If destination doesn't exist it will be created.- Specified by:
- addDestinationin interface- ServicesManagerBl
- Parameters:
- perunSession-
- services-
- facility-
- destination- (id of this destination doesn't need to be filled.)
- Returns:
- destination with it's id set
 
- 
addDestinationsDefinedByHostsOnFacilitypublic List<Destination> addDestinationsDefinedByHostsOnFacility(PerunSession perunSession, Service service, Facility facility) throws DestinationAlreadyAssignedException Description copied from interface:ServicesManagerBlDefines service destination for all hosts using theirs hostnames.- Specified by:
- addDestinationsDefinedByHostsOnFacilityin interface- ServicesManagerBl
- Parameters:
- perunSession-
- service-
- facility-
- Returns:
- list of added destinations
- Throws:
- DestinationAlreadyAssignedException
 
- 
addDestinationsDefinedByHostsOnFacilitypublic List<Destination> addDestinationsDefinedByHostsOnFacility(PerunSession perunSession, List<Service> services, Facility facility) Description copied from interface:ServicesManagerBlDefines services destination for all hosts using their hostnames. Do it for all services in List.If some destination for service and facility already exist, do not create it but still return back in the list. - Specified by:
- addDestinationsDefinedByHostsOnFacilityin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- Returns:
- list of added destinations (even if they already was added before)
 
- 
addDestinationsDefinedByHostsOnFacilitypublic List<Destination> addDestinationsDefinedByHostsOnFacility(PerunSession perunSession, Facility facility) Description copied from interface:ServicesManagerBlDefines services destination for all hosts using their hostnames. Use all assigned services to resources for the facility.If some destination for service and facility already exist, do not create it but still return back in the list. - Specified by:
- addDestinationsDefinedByHostsOnFacilityin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- Returns:
- list of added destinations (even if they already was added before)
 
- 
addDestinationsForAllServicesOnFacilitypublic List<Destination> addDestinationsForAllServicesOnFacility(PerunSession sess, Facility facility, Destination destination) throws DestinationAlreadyAssignedException Description copied from interface:ServicesManagerBlAdds destination for all services defined on the facility.- Specified by:
- addDestinationsForAllServicesOnFacilityin interface- ServicesManagerBl
- Parameters:
- sess-
- facility-
- destination-
- Returns:
- list of added destinations
- Throws:
- DestinationAlreadyAssignedException
 
- 
addRequiredAttributepublic void addRequiredAttribute(PerunSession sess, Service service, AttributeDefinition attribute) throws AttributeAlreadyAssignedException, ServiceAttributesCannotExtend Description copied from interface:ServicesManagerBlMark the attribute as required for the service. Required attributes 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:
- addRequiredAttributein interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- attribute-
- Throws:
- AttributeAlreadyAssignedException
- ServiceAttributesCannotExtend
 
- 
addRequiredAttributespublic void addRequiredAttributes(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) throws AttributeAlreadyAssignedException, ServiceAttributesCannotExtend Description copied from interface:ServicesManagerBlBatch version of addRequiredAttribute- Specified by:
- addRequiredAttributesin interface- ServicesManagerBl
- Throws:
- AttributeAlreadyAssignedException
- ServiceAttributesCannotExtend
- See Also:
 
- 
blockAllServicesOnDestinationpublic void blockAllServicesOnDestination(PerunSession sess, int destinationId) throws PrivilegeException, DestinationNotExistsException Description copied from interface:ServicesManagerBlBlock all services currently assigned on this destination. From this moment on, there are no Services being allowed on this destination. If you assign a new service to the destination, it will be allowed!- Specified by:
- blockAllServicesOnDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- destinationId- The id of a destination we want to block all services on.
- Throws:
- PrivilegeException
- DestinationNotExistsException
 
- 
blockAllServicesOnFacilityDescription copied from interface:ServicesManagerBlBlock all services currently assigned on this facility. From this moment on, there are no Services being allowed on this facility. If you assign a new service to the facility, it will be allowed!- Specified by:
- blockAllServicesOnFacilityin interface- ServicesManagerBl
- Parameters:
- sess-
- facility- Facility we want to block all services on.
 
- 
blockServiceOnDestinationpublic void blockServiceOnDestination(PerunSession sess, Service service, int destinationId) throws ServiceAlreadyBannedException Description copied from interface:ServicesManagerBlBans Service on destination. It wouldn't be possible to execute the given Service on this destination, however, it still can be executed on all the other destinations in the facility.- Specified by:
- blockServiceOnDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- service- The Service to be banned on this particular destination
- destinationId- The destination on which we want to ban the Service
- Throws:
- ServiceAlreadyBannedException
 
- 
blockServiceOnFacilitypublic void blockServiceOnFacility(PerunSession sess, Service service, Facility facility) throws ServiceAlreadyBannedException Description copied from interface:ServicesManagerBlBans Service on facility. It wouldn't be possible to execute the given Service on the whole facility nor on any of its destinations.- Specified by:
- blockServiceOnFacilityin interface- ServicesManagerBl
- Parameters:
- sess-
- service- The Service to be banned on the facility
- facility- The facility on which we want to ban the Service
- Throws:
- ServiceAlreadyBannedException
 
- 
checkServiceExistsDescription copied from interface:ServicesManagerBlCheck if the service exits.- Specified by:
- checkServiceExistsin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- Throws:
- ServiceNotExistsException
 
- 
createDestinationpublic Destination createDestination(PerunSession sess, Destination destination) throws DestinationExistsException - Throws:
- DestinationExistsException
 
- 
createServiceDescription copied from interface:ServicesManagerBlCreates new service.- Specified by:
- createServicein interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- Returns:
- new service
- Throws:
- ServiceExistsException
 
- 
deleteDestinationpublic void deleteDestination(PerunSession sess, Destination destination) throws DestinationAlreadyRemovedException, RelationExistsException Description copied from interface:ServicesManagerBlDeletes destination.- Specified by:
- deleteDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- destination- destination to be deleted
- Throws:
- DestinationAlreadyRemovedException- if there are 0 rows affected by deleting from DB
- RelationExistsException- if the destination is used by some services and facilities
 
- 
deleteServicepublic void deleteService(PerunSession perunSession, Service service, boolean forceFlag) throws RelationExistsException, ServiceAlreadyRemovedException Description copied from interface:ServicesManagerBlDeletes the service.- Specified by:
- deleteServicein interface- ServicesManagerBl
- Parameters:
- perunSession-
- service-
- forceFlag- if set to true, removes the service with all dependendant objects from db instead of raising exception
- Throws:
- RelationExistsException
- ServiceAlreadyRemovedException- if there are 0 rows affected by deleting from DB
 
- 
forceServicePropagationDescription copied from interface:ServicesManagerBlForces service propagation on defined facility.- Specified by:
- forceServicePropagationin interface- ServicesManagerBl
- Parameters:
- sess-
- facility-
- service-
- Returns:
- true if it is possible, false if not
 
- 
forceServicePropagationDescription copied from interface:ServicesManagerBlForces service propagation on all facilities where the service is defined on.- Specified by:
- forceServicePropagationin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- Returns:
- true if it is possible, false if not
 
- 
getAllRichDestinationsDescription copied from interface:ServicesManagerBlGet list of all rich destinations defined for the facility.- Specified by:
- getAllRichDestinationsin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- Returns:
- list of rich destinations defined for the facility
 
- 
getAllRichDestinationsDescription copied from interface:ServicesManagerBlGet list of all rich destinations defined for the service.- Specified by:
- getAllRichDestinationsin interface- ServicesManagerBl
- Parameters:
- perunSession-
- service-
- Returns:
- list of rich destinations defined for the service
 
- 
getAssignedResourcesDescription copied from interface:ServicesManagerBlGet all resources where the service is defined.- Specified by:
- getAssignedResourcesin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- Returns:
- list of resources where the service is defined
 
- 
getAssignedServicesDescription copied from interface:ServicesManagerBlList all services associated with the facility (via resource).- Specified by:
- getAssignedServicesin interface- ServicesManagerBl
- Parameters:
- sess-
- facility-
- Returns:
- list of services assigned to facility
 
- 
getAssignedServicesDescription copied from interface:ServicesManagerBlList all services associated with the facility and vo (via resource).- Specified by:
- getAssignedServicesin interface- ServicesManagerBl
- Parameters:
- sess-
- facility-
- vo-
- Returns:
- list of services assigned to facility and vo
 
- 
getDestinationByIdpublic Destination getDestinationById(PerunSession sess, int id) throws DestinationNotExistsException Description copied from interface:ServicesManagerBlGet destination by id- Specified by:
- getDestinationByIdin interface- ServicesManagerBl
- Parameters:
- sess-
- id-
- Returns:
- Destination with the id
- Throws:
- DestinationNotExistsException
 
- 
getDestinationIdByNamepublic int getDestinationIdByName(PerunSession sess, String name, String type) throws DestinationNotExistsException Description copied from interface:ServicesManagerBlReturns Destinations ID based on destination name and type.- Specified by:
- getDestinationIdByNamein interface- ServicesManagerBl
- Parameters:
- sess-
- name- Name (value) of destination
- type- type of destination
- Returns:
- Throws:
- DestinationNotExistsException
 
- 
getDestinationsDescription copied from interface:ServicesManagerBlGet list of all destinations defined for the service and facility.- Specified by:
- getDestinationsin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- facility-
- Returns:
- list list of destinations defined for the service and facility
 
- 
getDestinationsDescription copied from interface:ServicesManagerBlGet list of all destinations.- Specified by:
- getDestinationsin interface- ServicesManagerBl
- Parameters:
- perunSession-
- Returns:
- list of all destinations for session
 
- 
getDestinationsDescription copied from interface:ServicesManagerBlGet lists of all destinations for specific Facility- Specified by:
- getDestinationsin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility- the facility
- Returns:
- lists of all destinations for specific Facility
 
- 
getDestinationsCountDescription copied from interface:ServicesManagerBlGet count of all destinations.- Specified by:
- getDestinationsCountin interface- ServicesManagerBl
- Parameters:
- sess-
- Returns:
- count of all destinations
 
- 
getFacilitiesDestinationsDescription copied from interface:ServicesManagerBlList all destinations for all facilities which are joined by resources to the VO.- Specified by:
- getFacilitiesDestinationsin interface- ServicesManagerBl
- Parameters:
- sess-
- vo- vo for which we are searching destinations
- Returns:
- list of destinations
 
- 
getFacilityAssignedServicesForGUIpublic List<ServiceForGUI> getFacilityAssignedServicesForGUI(PerunSession perunSession, Facility facility) Description copied from interface:ServicesManagerBlReturn list of ServiceForGUI assigned on facility, (Service with "allowedOnFacility" property filled). 1 - allowed / 0 - service is denied).- Specified by:
- getFacilityAssignedServicesForGUIin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- Returns:
- list of assigned services with allowed property
 
- 
getHashedDataWithGroupspublic HashedGenData getHashedDataWithGroups(PerunSession sess, Service service, Facility facility, boolean consentEval, int taskRunId) Description copied from interface:ServicesManagerBlGenerates hashed data with group structure for given service and resource. If enforcing consents is turned on on the instance and on the resource's consent hub, generates only the users that granted a consent to all the service required attributes. New UNSIGNED consents are created to users that don't have a consent containing all the service required attributes.Generates data in format: attributes: {...hashes...} hierarchy: { "1": { ** facility id ** members: { ** all members on the facility ** "4" : 5, ** member id : user id ** "6" : 7, ** member id : user id ** ... } children: [ "2": { ** resource id ** voId: 99, children: [ "89": { ** group id ** "children": {}, "members": { "91328": 57986, "91330": 60838 } } ], "members": { ** all members on the resource with id 2 ** "91328": 57986, "91330": 60838 } }, "3": { ... } ] } } - Specified by:
- getHashedDataWithGroupsin interface- ServicesManagerBl
- Parameters:
- sess- perun session
- service- service
- facility- facility
- consentEval- if the generator should force evaluation of consents
- taskRunId- Integer id of the task run propagation
- Returns:
- generated hashed data structure
 
- 
getHashedHierarchicalDatapublic HashedGenData getHashedHierarchicalData(PerunSession sess, Service service, Facility facility, boolean consentEval, int taskRunId) Description copied from interface:ServicesManagerBlGenerates hashed hierarchical data structure for given service and resource. If enforcing consents is turned on on the instance and on the resource's consent hub, generates only the users that granted a consent to all the service required attributes. New UNSIGNED consents are created to users that don't have a consent containing all the service required attributes.attributes: {...hashes...} hierarchy: { "1": { ** facility id ** members: { ** all members on the facility ** "4" : 5, ** member id : user id ** "6" : 7, ** member id : user id ** ... } children: [ "2": { ** resource id ** children: [], voId: 99, members: { ** all members on the resource with id 2 ** "4" : 5 ** member id : user id ** } }, "3": { ... } ] } } - Specified by:
- getHashedHierarchicalDatain interface- ServicesManagerBl
- Parameters:
- sess- perun session
- service- service
- facility- facility
- consentEval- if the generator should force evaluation of consents
- taskRunId- Integer id of the task run propagation
- Returns:
- generated hashed data structure
 
- 
getPerunBlGets the perunBl.- Returns:
- The perunBl.
 
- 
getRichDestinationspublic List<RichDestination> getRichDestinations(PerunSession perunSession, Facility facility, Service service) Description copied from interface:ServicesManagerBlGet list of all rich destinations defined for the service and the facility- Specified by:
- getRichDestinationsin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- service-
- Returns:
- list of rich destinations defined for the service and the facility
 
- 
getServiceByIdDescription copied from interface:ServicesManagerBlGet service by id.- Specified by:
- getServiceByIdin interface- ServicesManagerBl
- Parameters:
- sess-
- id-
- Returns:
- service with specified id
- Throws:
- ServiceNotExistsException
 
- 
getServiceByNameDescription copied from interface:ServicesManagerBlGet service by name.- Specified by:
- getServiceByNamein interface- ServicesManagerBl
- Parameters:
- sess-
- name- name of the service
- Returns:
- service with specified name
- Throws:
- ServiceNotExistsException
 
- 
getServicesDescription copied from interface:ServicesManagerBlget all services in perun- Specified by:
- getServicesin interface- ServicesManagerBl
- Parameters:
- sess-
- Returns:
- all services in perun
 
- 
getServicesBlockedOnDestinationDescription copied from interface:ServicesManagerBlList all the Services that are banned on this destination.- Specified by:
- getServicesBlockedOnDestinationin interface- ServicesManagerBl
- Parameters:
- perunSession-
- destinationId-
- Returns:
- a list of Services that are denied on the destination
 
- 
getServicesBlockedOnFacilityDescription copied from interface:ServicesManagerBlList all the Services that are banned on this facility.- Specified by:
- getServicesBlockedOnFacilityin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- Returns:
- a list of Services that are denied on the facility
 
- 
getServicesByAttributeDefinitionpublic List<Service> getServicesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Description copied from interface:ServicesManagerBlGet all services with given attribute.- Specified by:
- getServicesByAttributeDefinitionin interface- ServicesManagerBl
- Parameters:
- sess- perun session
- attributeDefinition-
- Returns:
- all services with given attribute
 
- 
isServiceAssignedToFacilityDescription copied from interface:ServicesManagerBlChecks whether given service is assigned to given facility (through some resource).- Specified by:
- isServiceAssignedToFacilityin interface- ServicesManagerBl
- Parameters:
- sess- session
- facility- facility
- service- service
- Returns:
- true if service is assigned to given facility, false otherwise
 
- 
isServiceBlockedOnDestinationDescription copied from interface:ServicesManagerBlIs this Service denied on the destination?- Specified by:
- isServiceBlockedOnDestinationin interface- ServicesManagerBl
- Parameters:
- service- The Service, the denial of which we want to examine
- destinationId- The destination on which we want to look up the denial of the Service
- Returns:
- true - in case the Service is denied on the destination false - in case the Service in NOT denied on the destination
 
- 
isServiceBlockedOnFacilityDescription copied from interface:ServicesManagerBlIs this Service denied on the facility?- Specified by:
- isServiceBlockedOnFacilityin interface- ServicesManagerBl
- Parameters:
- service- The Service, the denial of which we want to examine
- facility- The facility on which we want to look up the denial of the Service
- Returns:
- true - in case the Service is denied on the facility false - in case the Service in NOT denied on the facility
 
- 
planServicePropagationpublic boolean planServicePropagation(PerunSession perunSession, Facility facility, Service service) Description copied from interface:ServicesManagerBlPlans service propagation on defined facility.- Specified by:
- planServicePropagationin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility-
- service-
- Returns:
- true if it is possible, false if not
 
- 
planServicePropagationDescription copied from interface:ServicesManagerBlForces service propagation on all facilities where the service is defined on.- Specified by:
- planServicePropagationin interface- ServicesManagerBl
- Parameters:
- perunSession-
- service-
- Returns:
- true if it is possible, false if not
 
- 
removeAllDestinationsDescription copied from interface:ServicesManagerBlRemoves all defined destinations for the service and facility.- Specified by:
- removeAllDestinationsin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- facility-
 
- 
removeAllDestinationsDescription copied from interface:ServicesManagerBlRemoves all defined destinations for the facility.- Specified by:
- removeAllDestinationsin interface- ServicesManagerBl
- Parameters:
- perunSession-
- facility- the facility
 
- 
removeAllRequiredAttributesDescription copied from interface:ServicesManagerBlDetate all required attributes from service.- Specified by:
- removeAllRequiredAttributesin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
 
- 
removeDestinationpublic void removeDestination(PerunSession sess, Service service, Facility facility, Destination destination) throws DestinationAlreadyRemovedException Description copied from interface:ServicesManagerBlRemoves an destination from the facility and service.- Specified by:
- removeDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- facility-
- destination- string contains destination address (mail, url, hostname, ...)
- Throws:
- DestinationAlreadyRemovedException
 
- 
removeRequiredAttributepublic void removeRequiredAttribute(PerunSession sess, Service service, AttributeDefinition attribute) throws AttributeNotAssignedException Description copied from interface:ServicesManagerBlRemove required attribute from service. TODO If you try to remove attribute which is default for other Required attribute ...- Specified by:
- removeRequiredAttributein interface- ServicesManagerBl
- Parameters:
- sess-
- service-
- attribute-
- Throws:
- AttributeNotAssignedException
 
- 
removeRequiredAttributespublic void removeRequiredAttributes(PerunSession sess, Service service, List<? extends AttributeDefinition> attributes) throws AttributeNotAssignedException Description copied from interface:ServicesManagerBlBatch version of removeRequiredAttribute- Specified by:
- removeRequiredAttributesin interface- ServicesManagerBl
- Throws:
- AttributeNotAssignedException
- See Also:
 
- 
setPerunBl
- 
unblockAllServicesOnDestinationDescription copied from interface:ServicesManagerBlErase all the possible denials on destinations defined by the destinationName. From this moment on, there are no Services being denied on these destinations.- Specified by:
- unblockAllServicesOnDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- destinationName- The name of destinations we want to clear of all the denials.
 
- 
unblockAllServicesOnDestinationDescription copied from interface:ServicesManagerBlErase all the possible denials on this destination. From this moment on, there are no Services being denied on this destination.- Specified by:
- unblockAllServicesOnDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- destinationId- The id of a destination we want to clear of all the denials.
 
- 
unblockAllServicesOnFacilityDescription copied from interface:ServicesManagerBlErase all the possible denials on this facility. From this moment on, there are no Services being denied on this facility.- Specified by:
- unblockAllServicesOnFacilityin interface- ServicesManagerBl
- Parameters:
- sess-
- facility- Facility we want to clear of all the denials.
 
- 
unblockServiceOnDestinationDescription copied from interface:ServicesManagerBlFree the denial of the Service on this destination. If the Service was banned on this destination, it will be freed. In case the Service was not banned on this destination, nothing will happen.- Specified by:
- unblockServiceOnDestinationin interface- ServicesManagerBl
- Parameters:
- sess-
- service- The Service, the denial of which we want to free on this destination.
- destinationId- The id of a destination on which we want to free the denial of the Service.
 
- 
unblockServiceOnFacilityDescription copied from interface:ServicesManagerBlFree the denial of the Service on this facility. If the Service was banned on this facility, it will be freed. In case the Service was not banned on this facility, nothing will happen.- Specified by:
- unblockServiceOnFacilityin interface- ServicesManagerBl
- Parameters:
- sess-
- service- The Service, the denial of which we want to free on this facility.
- facility- The facility on which we want to free the denial of the Service.
 
- 
updateServiceDescription copied from interface:ServicesManagerBlUpdates the service.- Specified by:
- updateServicein interface- ServicesManagerBl
- Parameters:
- sess-
- service-
 
 
-