001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/presence/trunk/presence-api/api/src/java/org/sakaiproject/presence/api/PresenceService.java $
003: * $Id: PresenceService.java 7844 2006-04-17 13:06:02Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.api.app.roster;
021:
022: import org.sakaiproject.api.app.profile.Profile;
023: import java.util.List;
024:
025: /**
026: * @author rshastri
027: *
028: */
029: public interface Participant {
030: String SORT_BY_LAST_NAME = "lastName";
031: String SORT_BY_FIRST_NAME = "firstName";
032: String SORT_BY_ID = "id";
033: String SORT_BY_ROLE = "role";
034: String SORT_BY_SECTIONS = "sections";
035:
036: /**
037: * @return FirstName
038: */
039: public String getFirstName();
040:
041: /**
042: * @param firstName
043: */
044: public void setFirstName(String firstName);
045:
046: /**
047: * @return
048: */
049: public String getId();
050:
051: /**
052: * @param id
053: */
054: public void setId(String id);
055:
056: public String getDisplayId();
057:
058: public void setDisplayId(String displayId);
059:
060: /**
061: * @return
062: */
063: public String getEid();
064:
065: /**
066: * @param eid
067: */
068: public void setEid(String eid);
069:
070: /**
071: * @return
072: */
073: public String getLastName();
074:
075: /**
076: * @param lastName
077: */
078: public void setLastName(String lastName);
079:
080: /**
081: * @return
082: */
083: public Profile getProfile();
084:
085: /**
086: * @param profile
087: */
088: public void setProfile(Profile profile);
089:
090: /**
091: * @return
092: */
093: public String getRoleTitle();
094:
095: /**
096: *
097: * @param roleTitle
098: */
099: public void setRoleTitle(String roleTitle);
100:
101: /**
102: *
103: * @return List of groups/sections Participant is a member of
104: */
105: public List getSections();
106:
107: /**
108: *
109: * @param sections
110: * List of groups/sections Participant is a member of
111: */
112: public void setSections(List sections);
113:
114: /**
115: * Display version of section membership
116: * @return
117: */
118: public String getSectionsForDisplay();
119:
120: }
|