Search in sources :

Example 1 with RichFacility

use of cz.metacentrum.perun.core.api.RichFacility in project perun by CESNET.

the class FacilitiesManagerBlImpl method getRichFacilities.

@Override
public List<RichFacility> getRichFacilities(PerunSession perunSession, List<Facility> facilities) {
    List<RichFacility> richFacilities = new ArrayList<>();
    if (facilities == null || facilities.isEmpty())
        return richFacilities;
    else {
        for (Facility f : facilities) {
            List<Owner> fOwners = this.getOwners(perunSession, f);
            RichFacility rf = new RichFacility(f, fOwners);
            richFacilities.add(rf);
        }
    }
    return richFacilities;
}
Also used : Owner(cz.metacentrum.perun.core.api.Owner) ArrayList(java.util.ArrayList) BanOnFacility(cz.metacentrum.perun.core.api.BanOnFacility) HostRemovedFromFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.HostRemovedFromFacility) BanRemovedForFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.BanRemovedForFacility) Facility(cz.metacentrum.perun.core.api.Facility) RichFacility(cz.metacentrum.perun.core.api.RichFacility) EnrichedFacility(cz.metacentrum.perun.core.api.EnrichedFacility) SecurityTeamRemovedFromFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.SecurityTeamRemovedFromFacility) SecurityTeamAssignedToFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.SecurityTeamAssignedToFacility) HostAddedToFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.HostAddedToFacility) BanUpdatedForFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.BanUpdatedForFacility) BanSetForFacility(cz.metacentrum.perun.audit.events.FacilityManagerEvents.BanSetForFacility) RichFacility(cz.metacentrum.perun.core.api.RichFacility)

Aggregations

BanRemovedForFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.BanRemovedForFacility)1 BanSetForFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.BanSetForFacility)1 BanUpdatedForFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.BanUpdatedForFacility)1 HostAddedToFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.HostAddedToFacility)1 HostRemovedFromFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.HostRemovedFromFacility)1 SecurityTeamAssignedToFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.SecurityTeamAssignedToFacility)1 SecurityTeamRemovedFromFacility (cz.metacentrum.perun.audit.events.FacilityManagerEvents.SecurityTeamRemovedFromFacility)1 BanOnFacility (cz.metacentrum.perun.core.api.BanOnFacility)1 EnrichedFacility (cz.metacentrum.perun.core.api.EnrichedFacility)1 Facility (cz.metacentrum.perun.core.api.Facility)1 Owner (cz.metacentrum.perun.core.api.Owner)1 RichFacility (cz.metacentrum.perun.core.api.RichFacility)1 ArrayList (java.util.ArrayList)1