Uses of Class
cz.metacentrum.perun.core.api.Pair
Package
Description
Exceptions.
-
Uses of Pair in cz.metacentrum.perun.core.api
Modifier and TypeMethodDescriptionSecurityTeamsManager.getBlacklistWithDescription
(PerunSession perunSession, Facility facility) get union of blacklists of all security teams assigned to facility containing also descriptionSecurityTeamsManager.getBlacklistWithDescription
(PerunSession perunSession, SecurityTeam securityTeam) get list of blacklisted users by security team containing also description -
Uses of Pair in cz.metacentrum.perun.core.api.exceptions
ModifierConstructorDescriptionQuotaNotInAllowedLimitException
(Map<String, Pair<BigDecimal, BigDecimal>> quotaToCheck, Map<String, Pair<BigDecimal, BigDecimal>> limitQuota, String message) Constructor with quota to check, limit quota and messageQuotaNotInAllowedLimitException
(Map<String, Pair<BigDecimal, BigDecimal>> quotaToCheck, Map<String, Pair<BigDecimal, BigDecimal>> limitQuota, String message, Throwable cause) Constructor with quota to check, limit quota and message -
Uses of Pair in cz.metacentrum.perun.core.bl
Modifier and TypeMethodDescriptionModulesUtilsBl.checkAndTransferQuotas
(Attribute quotasAttribute, PerunBean firstPlaceholder, PerunBean secondPlaceholder, boolean withMetrics) Check if value in quotas attribute are in the right format.ModulesUtilsBl.countUserFacilityQuotas
(List<Map<String, Pair<BigDecimal, BigDecimal>>> allUserQuotas) Count all quotas for user.SecurityTeamsManagerBl.getBlacklistWithDescription
(PerunSession sess, Facility facility) get union of blacklists of all security teams assigned to facility containing also descriptionSecurityTeamsManagerBl.getBlacklistWithDescription
(PerunSession sess, SecurityTeam securityTeam) get blacklist of security team containing also descriptionGroupsManagerBl.getGroupResourcePairsByAttribute
(PerunSession sess, Attribute attribute) Returns all group-resource which have set the attribute with the value.AttributesManagerBl.getPerunBeanIdsForUniqueAttributeValue
(PerunSession sess, Attribute attribute) Finds ids of PerunBeans that have the attribute's value for the attribute.UsersManagerBl.getReservedLoginsByApp
(PerunSession sess, int appId) Gets reserved logins which are used in the given application.UsersManagerBl.getReservedLoginsOnlyByGivenApp
(PerunSession sess, int appId) Gets reserved logins which can be deleted - they are used only in the given application.UsersManagerBl.getSponsorsForSponsoredMembersInVo
(PerunSession sess, int voId) Retrieves a map, that maps the ids of the sponsored members in the given VO to a list of their Sponsors with the corresponding Sponsorship objects.UsersManagerBl.getUsersReservedLogins
(PerunSession sess, User user) Return list of all reserved logins for specific user (pair is namespace and login)ModulesUtilsBl.mergeMemberAndResourceTransferredQuotas
(Map<String, Pair<BigDecimal, BigDecimal>> resourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> memberResourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> quotasOverride) Merge resource default quotas and member-resource specific quotas together.Modifier and TypeMethodDescriptionvoid
ModulesUtilsBl.checkIfQuotasIsInLimit
(Map<String, Pair<BigDecimal, BigDecimal>> quotaToCheck, Map<String, Pair<BigDecimal, BigDecimal>> limitQuota) Check if quotaToCheck is in limit of limitQuota.ModulesUtilsBl.countUserFacilityQuotas
(List<Map<String, Pair<BigDecimal, BigDecimal>>> allUserQuotas) Count all quotas for user.ModulesUtilsBl.mergeMemberAndResourceTransferredQuotas
(Map<String, Pair<BigDecimal, BigDecimal>> resourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> memberResourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> quotasOverride) Merge resource default quotas and member-resource specific quotas together.ModulesUtilsBl.transferQuotasBackToAttributeValue
(Map<String, Pair<BigDecimal, BigDecimal>> transferedQuotasMap, boolean withMetrics) Reverse method for checkAndTransferQuotas method. -
Uses of Pair in cz.metacentrum.perun.core.blImpl
Modifier and TypeMethodDescriptionstatic Pair<BigDecimal,
String> ModulesUtilsBlImpl.getNumberAndUnitFromString
(String attributeValue) Returns pair of number (BigDecimal) and unit (String) from given string.MembersManagerBlImpl.manageMembershipExpiration
(PerunSession sess, Member member, boolean setAttributeValue, boolean throwExceptions) More info on https://wiki.metacentrum.cz/wiki/VO_managers%27s_manualModifier and TypeMethodDescriptionModulesUtilsBlImpl.checkAndTransferQuotas
(Attribute quotasAttribute, PerunBean firstPlaceholder, PerunBean secondPlaceholder, boolean withMetrics) ModulesUtilsBlImpl.countUserFacilityQuotas
(List<Map<String, Pair<BigDecimal, BigDecimal>>> allUserQuotas) SecurityTeamsManagerBlImpl.getBlacklistWithDescription
(PerunSession sess, Facility facility) SecurityTeamsManagerBlImpl.getBlacklistWithDescription
(PerunSession sess, SecurityTeam securityTeam) GroupsManagerBlImpl.getGroupResourcePairsByAttribute
(PerunSession sess, Attribute attribute) AttributesManagerBlImpl.getPerunBeanIdsForUniqueAttributeValue
(PerunSession sess, Attribute attribute) UsersManagerBlImpl.getReservedLoginsByApp
(PerunSession sess, int appId) UsersManagerBlImpl.getReservedLoginsOnlyByGivenApp
(PerunSession sess, int appId) UsersManagerBlImpl.getSponsorsForSponsoredMembersInVo
(PerunSession sess, int voId) UsersManagerBlImpl.getUsersReservedLogins
(PerunSession sess, User user) ModulesUtilsBlImpl.mergeMemberAndResourceTransferredQuotas
(Map<String, Pair<BigDecimal, BigDecimal>> resourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> memberResourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> quotasOverride) Modifier and TypeMethodDescriptionvoid
ModulesUtilsBlImpl.checkIfQuotasIsInLimit
(Map<String, Pair<BigDecimal, BigDecimal>> quotaToCheck, Map<String, Pair<BigDecimal, BigDecimal>> limitQuota) ModulesUtilsBlImpl.countUserFacilityQuotas
(List<Map<String, Pair<BigDecimal, BigDecimal>>> allUserQuotas) ModulesUtilsBlImpl.mergeMemberAndResourceTransferredQuotas
(Map<String, Pair<BigDecimal, BigDecimal>> resourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> memberResourceQuotas, Map<String, Pair<BigDecimal, BigDecimal>> quotasOverride) ModulesUtilsBlImpl.transferQuotasBackToAttributeValue
(Map<String, Pair<BigDecimal, BigDecimal>> transferedQuotasMap, boolean withMetrics) -
Uses of Pair in cz.metacentrum.perun.core.entry
Modifier and TypeMethodDescriptionSecurityTeamsManagerEntry.getBlacklistWithDescription
(PerunSession sess, Facility facility) SecurityTeamsManagerEntry.getBlacklistWithDescription
(PerunSession sess, SecurityTeam securityTeam) -
Uses of Pair in cz.metacentrum.perun.core.impl
Modifier and TypeFieldDescriptionprotected static final ResultSetExtractor<List<Pair<User,
String>>> UsersManagerImpl.USERBLACKLIST_EXTRACTOR
Modifier and TypeMethodDescriptionstatic Pair<Integer,
TemporalUnit> Utils.prepareGracePeriodDate
(Matcher matcher) Prepares grace period date by values from given matcher.Modifier and TypeMethodDescriptionUtils.getAttributesQuery
(List<String> memberAttributes, List<String> userAttributes, List<String> uesAttributes) Prepares query to search users or members by attributes if received attribute list is not empty.SecurityTeamsManagerImpl.getBlacklistWithDescription
(PerunSession sess, List<SecurityTeam> securityTeams) GroupsManagerImpl.getGroupResourcePairsByAttribute
(PerunSession sess, Attribute attribute) AttributesManagerImpl.getPerunBeanIdsForUniqueAttributeValue
(PerunSession sess, Attribute attribute) UsersManagerImpl.getReservedLoginsByApp
(PerunSession sess, int appId) UsersManagerImpl.getReservedLoginsOnlyByGivenApp
(PerunSession sess, int appId) UsersManagerImpl.getSponsorsForSponsoredMembersInVo
(PerunSession sess, int voId) UsersManagerImpl.getUsersReservedLogins
(User user) ExtSourceTCS.prepareStructureOfValidCertificates
(String url) For every certificate from pem file (get from url address) parse only valid certificates.Modifier and TypeMethodDescriptionvoid
UsersManagerImpl.deleteReservedLogin
(PerunSession sess, Pair<String, String> login) -
Uses of Pair in cz.metacentrum.perun.core.impl.modules.attributes
-
Uses of Pair in cz.metacentrum.perun.core.implApi
Modifier and TypeMethodDescriptionSecurityTeamsManagerImplApi.getBlacklistWithDescription
(PerunSession sess, List<SecurityTeam> securityTeams) get union of blacklists of security teams containing also descriptionGroupsManagerImplApi.getGroupResourcePairsByAttribute
(PerunSession sess, Attribute attribute) Returns all group-resource which have set the attribute with the value.AttributesManagerImplApi.getPerunBeanIdsForUniqueAttributeValue
(PerunSession sess, Attribute attribute) Finds ids of PerunBeans that have the attribute's value for the attribute.UsersManagerImplApi.getReservedLoginsByApp
(PerunSession sess, int appId) Gets reserved logins which used in the given application.UsersManagerImplApi.getReservedLoginsOnlyByGivenApp
(PerunSession sess, int appId) Gets reserved logins which can be deleted - they are used only in the given application.UsersManagerImplApi.getSponsorsForSponsoredMembersInVo
(PerunSession sess, int voId) Retrieves a map, that maps the ids of the sponsored members in the given VO to a list of their Sponsors with the corresponding Sponsorship objects.UsersManagerImplApi.getUsersReservedLogins
(User user) Return list of all reserved logins for specific user (pair is namespace and login)Modifier and TypeMethodDescriptionvoid
UsersManagerImplApi.deleteReservedLogin
(PerunSession sess, Pair<String, String> login) Deletes given login reservations. -
Uses of Pair in cz.metacentrum.perun.taskslib.model
Modifier and TypeMethodDescriptionSendTask.getId()
Get ID of SendTask as a pair of Task ID and Destination