org.sakaiproject.component.privacy
Class PrivacyManagerImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.sakaiproject.component.privacy.PrivacyManagerImpl
- All Implemented Interfaces:
- PrivacyManager, org.springframework.beans.factory.InitializingBean
public class PrivacyManagerImpl
- extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
- implements PrivacyManager
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
|
Method Summary |
Set |
findHidden(String contextId,
Set userIds)
|
Set |
findViewable(String contextId,
Set userIds)
|
Set |
getViewableState(String contextId,
Boolean value,
String recordType)
|
Map |
getViewableState(String contextId,
String recordType)
|
boolean |
isViewable(String contextId,
String userId)
|
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 |
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)
|
boolean |
userMadeSelection(String contextId,
String userId)
|
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultViewable
protected boolean defaultViewable
overrideViewable
protected Boolean overrideViewable
userRecordHasPrecedence
protected boolean userRecordHasPrecedence
maxResultSetNumber
protected int maxResultSetNumber
PrivacyManagerImpl
public PrivacyManagerImpl()
findViewable
public Set findViewable(String contextId,
Set userIds)
- Specified by:
findViewable in interface PrivacyManager
findHidden
public Set findHidden(String contextId,
Set userIds)
- Specified by:
findHidden in interface PrivacyManager
getViewableState
public Set getViewableState(String contextId,
Boolean value,
String recordType)
- Specified by:
getViewableState in interface PrivacyManager
getViewableState
public Map getViewableState(String contextId,
String recordType)
- Specified by:
getViewableState in interface PrivacyManager
isViewable
public boolean isViewable(String contextId,
String userId)
- Specified by:
isViewable in interface PrivacyManager
userMadeSelection
public boolean userMadeSelection(String contextId,
String userId)
- Specified by:
userMadeSelection in interface PrivacyManager
setViewableState
public void setViewableState(String contextId,
String userId,
Boolean value,
String recordType)
- Specified by:
setViewableState in interface PrivacyManager
setViewableState
public void setViewableState(String contextId,
Map userViewableState,
String recordType)
- Specified by:
setViewableState in interface PrivacyManager
setDefaultViewable
public void setDefaultViewable(boolean defaultViewable)
- A 'true' value will set privacy enabled for a user whose privacy settings
are not known. A 'false' value will set privacy disabled for a user whose
privacy settings are not known (i.e. no data found).
The default behavior will be to show users or make them viewable.
- Parameters:
defaultViewable - the defaultViewable to set
setOverrideViewable
public void setOverrideViewable(Boolean overrideViewable)
- A 'true' value will make all users viewable in the system. A 'false' value
will make all users hidden in the system.
Do not set this value for normal operation (non overridden behavior; i.e. null).
- Parameters:
overrideViewable - the overrideViewable to set
setUserRecordHasPrecedence
public void setUserRecordHasPrecedence(boolean userRecordHasPrecedence)
- A 'true' value indicates that a user record has precedence over a system
record. A 'false' value indicates that a system record has precedence over
a user record
- Parameters:
userRecordHasPrecedence - the userRecordHasPrecedence to set
setMaxResultSetNumber
public void setMaxResultSetNumber(int maxResultSetNumber)
- Set maximum result set number for database query, defulat is 1000.
- Parameters:
maxResultSetNumber - the maxResultSetNumber to set
Copyright © 2004-2013 Sakai Project. All Rights Reserved.