コード例 #1
0
 private EntitlementCondition migrateEnvironmentCondition(
     PolicyCondition condition, MigrationReport migrationReport) throws EntitlementException {
   final EntitlementCondition migrated =
       conditionUpgradeMap.migrateEnvironmentCondition(
           condition.getClassName(), condition, migrationReport);
   migrated.validate();
   return migrated;
 }
コード例 #2
0
 private boolean isUpgradablePolicySubject(EntitlementSubject subject) {
   return subject instanceof PolicySubject
       && conditionUpgradeMap.containsSubjectCondition(((PolicySubject) subject).getClassName());
 }
コード例 #3
0
 private EntitlementSubject migrateSubjectCondition(
     PolicySubject subject, MigrationReport migrationReport) {
   return conditionUpgradeMap.migrateSubjectCondition(
       subject.getClassName(), subject, migrationReport);
 }
コード例 #4
0
 private boolean isUpgradablePolicyCondition(EntitlementCondition condition) {
   return condition instanceof PolicyCondition
       && conditionUpgradeMap.containsEnvironmentCondition(
           ((PolicyCondition) condition).getClassName());
 }