| org.sakaiproject.component.privacy.PrivacyManagerImpl
PrivacyManagerImpl | public class PrivacyManagerImpl extends HibernateDaoSupport implements PrivacyManager(Code) | | |
Method Summary | |
public Set | findHidden(String contextId, Set userIds) | public Set | findViewable(String contextId, Set userIds) | public Set | getViewableState(String contextId, Boolean value, String recordType) | public Map | getViewableState(String contextId, String recordType) | public boolean | isViewable(String contextId, String userId) | public void | setDefaultViewable(boolean defaultViewable) A 'true' value will set privacy enabled for a user whose privacy settings
are not known. | public void | setMaxResultSetNumber(int maxResultSetNumber) Set maximum result set number for database query, defulat is 1000. | public void | setOverrideViewable(Boolean overrideViewable) A 'true' value will make all users viewable in the system. | public void | setUserRecordHasPrecedence(boolean userRecordHasPrecedence) A 'true' value indicates that a user record has precedence over a system
record. | public void | setViewableState(String contextId, String userId, Boolean value, String recordType) | public void | setViewableState(String contextId, Map userViewableState, String recordType) |
defaultViewable | protected boolean defaultViewable(Code) | | |
maxResultSetNumber | protected int maxResultSetNumber(Code) | | |
userRecordHasPrecedence | protected boolean userRecordHasPrecedence(Code) | | |
setDefaultViewable | public void setDefaultViewable(boolean defaultViewable)(Code) | | 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 |
setMaxResultSetNumber | public void setMaxResultSetNumber(int maxResultSetNumber)(Code) | | Set maximum result set number for database query, defulat is 1000.
Parameters: maxResultSetNumber - the maxResultSetNumber to set |
setOverrideViewable | public void setOverrideViewable(Boolean overrideViewable)(Code) | | 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)(Code) | | 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 |
setViewableState | public void setViewableState(String contextId, Map userViewableState, String recordType)(Code) | | |
|
|