public class PrivacyManagerImpl extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements PrivacyManager, AuthzGroupAdvisor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultViewable |
protected int |
maxResultSetNumber |
protected Boolean |
overrideViewable |
protected boolean |
userRecordHasPrecedence |
DEFAULT_PRIVACY_KEY, HIDDEN, PRIVACY_PREFS, SYSTEM_RECORD_TYPE, USER_RECORD_TYPE, VISIBLE| Constructor and Description |
|---|
PrivacyManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Set |
findHidden(String contextId,
Set userIds) |
Set |
findViewable(String contextId,
Set userIds) |
String |
getDefaultPrivacyState(String userId) |
Set |
getViewableState(String contextId,
Boolean value,
String recordType) |
Map |
getViewableState(String contextId,
String recordType) |
void |
groupUpdate(AuthzGroup group,
String userId,
String roleId) |
void |
init() |
boolean |
isViewable(String contextId,
String userId) |
void |
remove(AuthzGroup group) |
void |
setAuthzGroupService(AuthzGroupService authzGroupService) |
void |
setDefaultPrivacyState(String userId,
String visibility) |
void |
setDefaultViewable(boolean defaultViewable)
A 'true' value will set privacy enabled for a user whose privacy settings
are not known.
|
void |
setMaxResultSetNumber(int maxResultSetNumber)
Set maximum result set number for database query, defulat is 1000.
|
void |
setOverrideViewable(Boolean overrideViewable)
A 'true' value will make all users viewable in the system.
|
void |
setPreferencesService(PreferencesService preferencesService) |
void |
setUserRecordHasPrecedence(boolean userRecordHasPrecedence)
A 'true' value indicates that a user record has precedence over a system
record.
|
void |
setViewableState(String contextId,
Map userViewableState,
String recordType) |
void |
setViewableState(String contextId,
String userId,
Boolean value,
String recordType) |
void |
update(AuthzGroup group) |
boolean |
userMadeSelection(String contextId,
String userId) |
protected boolean defaultViewable
protected Boolean overrideViewable
protected boolean userRecordHasPrecedence
protected int maxResultSetNumber
public void init()
public void destroy()
public Set findViewable(String contextId, Set userIds)
findViewable in interface PrivacyManagerpublic Set findHidden(String contextId, Set userIds)
findHidden in interface PrivacyManagerpublic Set getViewableState(String contextId, Boolean value, String recordType)
getViewableState in interface PrivacyManagerpublic Map getViewableState(String contextId, String recordType)
getViewableState in interface PrivacyManagerpublic boolean isViewable(String contextId, String userId)
isViewable in interface PrivacyManagerpublic boolean userMadeSelection(String contextId, String userId)
userMadeSelection in interface PrivacyManagerpublic void setViewableState(String contextId, String userId, Boolean value, String recordType)
setViewableState in interface PrivacyManagerpublic void setViewableState(String contextId, Map userViewableState, String recordType)
setViewableState in interface PrivacyManagerpublic void update(AuthzGroup group)
update in interface AuthzGroupAdvisorpublic void groupUpdate(AuthzGroup group, String userId, String roleId)
groupUpdate in interface AuthzGroupAdvisorpublic void remove(AuthzGroup group)
remove in interface AuthzGroupAdvisorpublic void setDefaultPrivacyState(String userId, String visibility)
setDefaultPrivacyState in interface PrivacyManagerpublic String getDefaultPrivacyState(String userId)
getDefaultPrivacyState in interface PrivacyManagerpublic void setDefaultViewable(boolean defaultViewable)
defaultViewable - the defaultViewable to setpublic void setOverrideViewable(Boolean overrideViewable)
overrideViewable - the overrideViewable to setpublic void setUserRecordHasPrecedence(boolean userRecordHasPrecedence)
userRecordHasPrecedence - the userRecordHasPrecedence to setpublic void setMaxResultSetNumber(int maxResultSetNumber)
maxResultSetNumber - the maxResultSetNumber to setpublic void setPreferencesService(PreferencesService preferencesService)
public void setAuthzGroupService(AuthzGroupService authzGroupService)
Copyright © 2004–2017 Sakai Project. All rights reserved.