|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.user.UserGroup
public class UserGroup
A user group. This object describes settings for a specific group of users, which can be used to override application behavior.
A group can have a parent, from which it can inherit certain settings.
| Field Summary | |
|---|---|
protected List<String> |
allowedBookIds
Books and Groupings configured for this group, or null. |
protected List<String> |
allowedGroupingIds
|
protected Set<String> |
allowedSurveys
Surveys configured for this group, or null |
protected Set<String> |
availableTests
|
protected boolean |
controlGroup
|
protected String |
exerciseStrategy
|
protected String |
exerciseStrategyDefault
|
protected String |
field
|
protected boolean |
hidden
|
protected String |
id
|
protected String |
learnerModel
|
protected static Logger |
log
|
protected String |
name
|
protected UserGroup |
parent
|
protected String |
parentId
|
protected String |
skin
|
protected Map<String,Boolean> |
testCompulsoryMap
|
protected Map<String,Integer> |
testTimeouts
|
protected List<String> |
tutorIds
Tutors allowed to access this group, or null. |
| Constructor Summary | |
|---|---|
protected |
UserGroup()
|
|
UserGroup(String id)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
protected String id
protected String name
protected boolean hidden
protected String parentId
protected UserGroup parent
protected String skin
protected String learnerModel
protected String exerciseStrategy
protected String exerciseStrategyDefault
protected String field
protected boolean controlGroup
protected List<String> tutorIds
null.
protected List<String> allowedBookIds
null.
protected List<String> allowedGroupingIds
protected Set<String> allowedSurveys
null
protected Set<String> availableTests
protected Map<String,Integer> testTimeouts
protected Map<String,Boolean> testCompulsoryMap
| Constructor Detail |
|---|
protected UserGroup()
public UserGroup(String id)
| Method Detail |
|---|
public boolean isDefaultGroup()
protected List<String> buildAllowedBookIds(String configStr)
configStr -
nullprotected List<String> buildAllowedGroupingIds(String configStr)
configStr -
nullpublic Set<String> splitString(String csvString)
public boolean isAllowedGrouping(String groupingId)
public boolean isAllowedSurvey(String surveyName)
public String toString()
toString in class Objectpublic boolean isActive()
public boolean isHidden()
public String getId()
public String getName()
public boolean isControlGroup()
public String getParentId()
public UserGroup getParent()
null.public Set<String> getParentIds()
public String getSkin()
public String getExerciseStrategy()
public String getField()
"" if not set.public String getLearnerModel()
public String getProperty(String name)
public List<Book> getRecBooks()
public Set<String> getAllowedSurveyNames()
public Set<String> getGroupSpecificSurveys()
public Set<String> getInheritedSurveys()
public Set<String> getGroupSpecificAndInheritedSurveys()
public List<Book> getAvailableTests()
public Set<String> getAvailableTestsIds()
public void setTestTimeout(String testId,
int timeOut)
public int getTestTimeout(String testId)
public Map<String,Integer> getTestTimeouts()
public void setTestTimeouts(Map<String,Integer> testTimeouts)
public void setIsCompulsoryTest(String testId,
boolean isCompulsory)
public boolean isCompulsoryTest(String testId)
public Map<String,Boolean> getTestCompulsoryMap()
public void setTestCompulsoryMap(Map<String,Boolean> testIsCompulsory)
public Set<String> getCompulsoryTests()
public List<Grouping> getAllowedGroupings()
public Set<String> getGroupSpecificGroupingIds()
public Set<String> getInheritedGroupingIds()
public Set<String> getGroupSpecificAndInheritedGroupingIds()
public List<Book> getAllowedRecBooks()
public Set<String> getGroupSpecificRecBookIds()
public Set<String> getInheritedRecBookIds()
public Set<String> getGroupSpecificAndInheritedRecBookIds()
public List<String> getUserIds()
protected Set<String> filterGroupings(List<Grouping> groupings,
List<String> allowedGroupingsList)
protected Set<String> filterBooks(List<Book> recBooks,
List<String> allowedBooksList)
public int compareTo(Object o)
compareTo in interface Comparablepublic void setId(String groupId)
public void setTutorsCSV(String ids)
ids - CSV string of tutors allowed access to this grouppublic String getTutorsCSV()
public void setTutors(List<String> ids)
ids - - list of tutors allowed access to this grouppublic List<String> getTutors()
public void addTutor(String userId)
public boolean removeTutor(String userId)
true iff user was in tutor list.public boolean isAllowedTutor(String userId)
public void setAllowedBookIds(String allowedBookIds)
allowedBookIds - CSV string of allowed bookspublic void setAllowedGroupingIds(String allowedGroupingIds)
allowedGroupingIds - CSV string of allowed Groupingspublic void setAllowedSurveys(String allowedSurveys)
allowedSurveys - CSV string of allowed surveyspublic String getAllowedBookIds()
public String getAllowedGroupingIds()
public String getAllowedSurveys()
public void setExerciseStrategy(String exerciseStrategy)
public void setField(String field)
public void setControlGroup(boolean isControlGroup)
public void setHidden(boolean isHidden)
public void setLearnerModel(String learnerModel)
public void setName(String name)
public void setParentId(String parentId)
public void setSkin(String skin)
public Collection<String> getTargetCompetencies()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||