Coverage Report - org.kuali.mobility.user.entity.User
 
Classes in this File Line Coverage Branch Coverage Complexity
User
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.mobility.user.entity;
 17  
 
 18  
 import java.sql.Timestamp;
 19  
 import java.util.List;
 20  
 import java.util.Map;
 21  
 
 22  
 public interface User {
 23  
 
 24  
         String getViewCampus();
 25  
         void setViewCampus(String campus);
 26  
 
 27  
         boolean isPublicUser();
 28  
 
 29  
         Long getPrincipalId();
 30  
         String getPrincipalName();
 31  
         String getEmail();
 32  
         public String getIpAddress();
 33  
         public void setIpAddress(String ipAddress);
 34  
         void setFirstLogin(Timestamp firstLogin);
 35  
         void setLastLogin(Timestamp firstLogin);
 36  
 
 37  
         void setPrincipalName(String userId);
 38  
         void setEmail(String email);
 39  
 
 40  
     List<String> getGroups();
 41  
     List<String> getAffiliations();
 42  
     String getPrimaryCampus();
 43  
     
 44  
     void setGroups(List<String> groups);
 45  
     void setAffiliations(List<String> affiliations);
 46  
     void setPrimaryCampus(String primaryCampus);
 47  
     Map<String, String> getUserAttributes();
 48  
     void setUserAttributes(Map<String, String> userAttributes);
 49  
     String getUserAttribute(String key);
 50  
     void setUserAttribute(String key, String value);
 51  
     void removeUserAttribute(String key);
 52  
     
 53  
     boolean isMember(String groupName);
 54  
     boolean isStudent();
 55  
     boolean isFaculty();
 56  
     boolean isStaff();
 57  
     boolean isAlumnus();
 58  
     
 59  
     UserCacheObject getFromCache(String key);
 60  
     void removeFromCache(String key);
 61  
     void putInCache(String key, Object item);
 62  
     
 63  
 }