public class PrivacyManagerImpl
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements org.sakaiproject.api.privacy.PrivacyManager, org.sakaiproject.authz.api.AuthzGroupAdvisor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultViewable |
protected int |
maxResultSetNumber |
protected Boolean |
overrideViewable |
protected boolean |
userRecordHasPrecedence |
| 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(org.sakaiproject.authz.api.AuthzGroup group,
String userId,
String roleId) |
void |
init() |
boolean |
isViewable(String contextId,
String userId) |
void |
remove(org.sakaiproject.authz.api.AuthzGroup group) |
void |
setAuthzGroupService(org.sakaiproject.authz.api.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(org.sakaiproject.user.api.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(org.sakaiproject.authz.api.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 org.sakaiproject.api.privacy.PrivacyManagerpublic Set findHidden(String contextId, Set userIds)
findHidden in interface org.sakaiproject.api.privacy.PrivacyManagerpublic Set getViewableState(String contextId, Boolean value, String recordType)
getViewableState in interface org.sakaiproject.api.privacy.PrivacyManagerpublic Map getViewableState(String contextId, String recordType)
getViewableState in interface org.sakaiproject.api.privacy.PrivacyManagerpublic boolean isViewable(String contextId, String userId)
isViewable in interface org.sakaiproject.api.privacy.PrivacyManagerpublic boolean userMadeSelection(String contextId, String userId)
userMadeSelection in interface org.sakaiproject.api.privacy.PrivacyManagerpublic void setViewableState(String contextId, String userId, Boolean value, String recordType)
setViewableState in interface org.sakaiproject.api.privacy.PrivacyManagerpublic void setViewableState(String contextId, Map userViewableState, String recordType)
setViewableState in interface org.sakaiproject.api.privacy.PrivacyManagerpublic void update(org.sakaiproject.authz.api.AuthzGroup group)
update in interface org.sakaiproject.authz.api.AuthzGroupAdvisorpublic void groupUpdate(org.sakaiproject.authz.api.AuthzGroup group,
String userId,
String roleId)
groupUpdate in interface org.sakaiproject.authz.api.AuthzGroupAdvisorpublic void remove(org.sakaiproject.authz.api.AuthzGroup group)
remove in interface org.sakaiproject.authz.api.AuthzGroupAdvisorpublic void setDefaultPrivacyState(String userId, String visibility)
setDefaultPrivacyState in interface org.sakaiproject.api.privacy.PrivacyManagerpublic String getDefaultPrivacyState(String userId)
getDefaultPrivacyState in interface org.sakaiproject.api.privacy.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(org.sakaiproject.user.api.PreferencesService preferencesService)
public void setAuthzGroupService(org.sakaiproject.authz.api.AuthzGroupService authzGroupService)
Copyright © 2004-2016 Sakai Project. All Rights Reserved.