Coverage Report - org.kuali.rice.kew.doctype.SecuritySession
 
Classes in this File Line Coverage Branch Coverage Complexity
SecuritySession
0%
0/16
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 The Kuali Foundation
 3  
  * 
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kew.doctype;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.HashMap;
 20  
 import java.util.Map;
 21  
 
 22  
 import org.kuali.rice.krad.UserSession;
 23  
 
 24  
 
 25  
 /**
 26  
  * Caches information about various security constraints for a single user which have already been
 27  
  * analyzed and don't need to be analyzed again.  For example, once it's been determined that
 28  
  * a user is a member of a workgroup or a role, it is not necessary to requery the
 29  
  * workgroup or role for information on whether that user is a member.
 30  
  *
 31  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 32  
  */
 33  
 public class SecuritySession implements Serializable {
 34  
 
 35  
         private static final long serialVersionUID = 2542191040889845305L;
 36  
 
 37  
         private final UserSession userSession;
 38  0
         private Map<String, Boolean> authenticatedWorkgroups = new HashMap<String, Boolean>();
 39  0
         private Map<String, Boolean> passesRoleSecurity = new HashMap<String, Boolean>();
 40  
 
 41  0
         private Map<String, DocumentTypeSecurity> documentTypeSecurity = new HashMap<String, DocumentTypeSecurity>();
 42  
 
 43  0
         public SecuritySession(UserSession userSession) {
 44  0
                 this.userSession = userSession;
 45  0
         }
 46  
 
 47  
         public UserSession getUserSession() {
 48  0
                 return userSession;
 49  
         }
 50  
 
 51  
         public Map<String, Boolean> getPassesRoleSecurity() {
 52  0
                 return passesRoleSecurity;
 53  
         }
 54  
 
 55  
         public void setPassesRoleSecurity(Map<String, Boolean> passesRoleSecurity) {
 56  0
                 this.passesRoleSecurity = passesRoleSecurity;
 57  0
         }
 58  
 
 59  
         public Map<String, Boolean> getAuthenticatedWorkgroups() {
 60  0
                 return authenticatedWorkgroups;
 61  
         }
 62  
 
 63  
         public void setAuthenticatedWorkgroups(Map<String, Boolean> authenticatedWorkgroups) {
 64  0
                 this.authenticatedWorkgroups = authenticatedWorkgroups;
 65  0
         }
 66  
 
 67  
         public Map<String, DocumentTypeSecurity> getDocumentTypeSecurity() {
 68  0
                 return documentTypeSecurity;
 69  
         }
 70  
 
 71  
         public void setDocumentTypeSecurity(Map<String, DocumentTypeSecurity> documentTypeSecurity) {
 72  0
                 this.documentTypeSecurity = documentTypeSecurity;
 73  0
         }
 74  
 
 75  
 }