Coverage Report - org.openpermis.policy.PartProblemReporter
 
Classes in this File Line Coverage Branch Coverage Complexity
PartProblemReporter
N/A
N/A
1
PartProblemReporter$ProblemMessage
100%
37/37
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport
 3  
  *                     (http://www.vbs.admin.ch)
 4  
  * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch)
 5  
  * All rights reserved.
 6  
  *
 7  
  * Licensed under the Open Permis License which accompanies this distribution,
 8  
  * and is available at http://www.openpermis.org/BSDlicenceKent.txt
 9  
  */
 10  
 package org.openpermis.policy;
 11  
 
 12  
 /**
 13  
  * Callback used to report violations of part integrity.
 14  
  * @since 0.1.0
 15  
  */
 16  
 public interface PartProblemReporter {
 17  
 
 18  
         //---- Static
 19  
 
 20  
         /**
 21  
          * Available Problem Messages.
 22  
          */
 23  37
         public enum ProblemMessage {
 24  
                 /***/
 25  1
                 collectionWithNullElements,
 26  
                 /***/
 27  1
                 collectionWithDuplicateName,
 28  
                 /***/
 29  1
                 collectionWithDuplicateIdentity,
 30  
                 /***/
 31  1
                 collectionWithDuplicateObject,
 32  
                 /***/
 33  1
                 duplicateName,
 34  
                 /***/
 35  1
                 duplicateIdentity,
 36  
                 /***/
 37  1
                 emptyIdentity,
 38  
                 /***/
 39  1
                 emptyChildCollection,
 40  
                 /***/
 41  1
                 emptyRoles,
 42  
                 /***/
 43  1
                 illegalActions,
 44  
                 /***/
 45  1
                 illegalAuthority,
 46  
                 /***/
 47  1
                 illegalChildren,
 48  
                 /***/
 49  1
                 illegalCollection,
 50  
                 /***/
 51  1
                 illegalCondition,
 52  
                 /***/
 53  1
                 illegalResourceDomain,
 54  
                 /***/
 55  1
                 illegalRoles,
 56  
                 /***/
 57  1
                 illegalObligations,
 58  
                 /***/
 59  1
                 illegalRoleHierarchy,
 60  
                 /***/
 61  1
                 illegalRoleTree,
 62  
                 /***/
 63  1
                 illegalSubjectDomain,
 64  
                 /***/
 65  1
                 illegalDelegationDepth,
 66  
                 /***/
 67  1
                 illegalTargets,
 68  
                 /***/
 69  1
                 invalidChild,
 70  
                 /***/
 71  1
                 invalidChildCollection,
 72  
                 /***/
 73  1
                 invalidRoleAssignmentRules,
 74  
                 /***/
 75  1
                 invalidRoleHierarchies,
 76  
                 /***/
 77  1
                 invalidTargetAccessRules,
 78  
                 /***/
 79  1
                 nameEmpty,
 80  
                 /***/
 81  1
                 nameMissing,
 82  
                 /***/
 83  1
                 namesNotUnique,
 84  
                 /***/
 85  1
                 nullChild,
 86  
                 /***/
 87  1
                 nullChildCollection,
 88  
                 /***/
 89  1
                 nullIdentity,
 90  
                 /***/
 91  1
                 nullRoleHierarchy,
 92  
                 /***/
 93  1
                 roleTreeCyclic,
 94  
                 /***/
 95  1
                 roleTreeNotClosed,
 96  
 
 97  
         }
 98  
 
 99  
         //---- Methods
 100  
 
 101  
         /**
 102  
          * Reports an integrity violation of a part.
 103  
          * @param part the part affected.
 104  
          * @param message the message describing the type of violation.
 105  
          * @param parameters additional details about the type of violation.
 106  
          * @since 0.1.0
 107  
          */
 108  
         public void reportProblem (Part part, ProblemMessage message, Object... parameters);
 109  
 
 110  
 }