public class PreferenceServiceImpl extends java.lang.Object implements PreferenceService
| Constructor and Description |
|---|
PreferenceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPreferences(java.lang.String userName)
Clears all the preferences for a particular user.
|
void |
clearPreferences(java.lang.String userName,
java.lang.String preferenceFilter)
Clears the preferences for a particular user that match the filter optionally provided.
|
java.util.Map |
getPreferences(java.lang.String userName)
Get all preferences for a particular user
|
java.util.Map |
getPreferences(java.lang.String userName,
java.lang.String preferenceFilter)
Get the preferences for a particular user.
|
void |
setAuthenticationContext(AuthenticationContext authenticationContext)
Set the authentication component
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Set the permission service
|
void |
setPersonService(PersonService personService)
Set the person service
|
void |
setPreferences(java.lang.String userName,
java.util.Map preferences)
Sets the preference values for a user.
|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the node servicepublic void setContentService(ContentService contentService)
contentService - the content servicepublic void setPersonService(PersonService personService)
personService - the person servicepublic void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService - the permission servicepublic void setAuthenticationContext(AuthenticationContext authenticationContext)
authenticationContext - the authentication componentpublic void setAuthorityService(AuthorityService authorityService)
authorityService - the authorityService to setpublic java.util.Map getPreferences(java.lang.String userName)
PreferenceServicegetPreferences in interface PreferenceServiceuserName - the user namePreferenceService.getPreferences(java.lang.String)public java.util.Map getPreferences(java.lang.String userName,
java.lang.String preferenceFilter)
PreferenceServiceIf no filter if provided all preferences are returned.
If a filter is provided it's used to filter the results. For example the filter "alfresco.myComp" will only return filters that are in the "namespace" alfresco.myComp.
getPreferences in interface PreferenceServiceuserName - the user namepreferenceFilter - the preference filterorg.alfresco.repo.person.PersonService#getPreferences(java.lang.String,
java.lang.String)public void setPreferences(java.lang.String userName,
java.util.Map preferences)
PreferenceServiceValues provided overlay those already present.
Preference value names can be "namespaced" by using package notation. For example "alfresc.myComp.myValue".
setPreferences in interface PreferenceServiceuserName - the user namepreferences - the preference valuesorg.alfresco.repo.person.PersonService#setPreferences(java.lang.String,
java.util.HashMap)public void clearPreferences(java.lang.String userName)
PreferenceServiceclearPreferences in interface PreferenceServiceuserName - the user namePreferenceService.clearPreferences(java.lang.String)public void clearPreferences(java.lang.String userName,
java.lang.String preferenceFilter)
PreferenceServiceIf no filter if present then all preferences are cleared.
clearPreferences in interface PreferenceServiceuserName - the user namepreferenceFilter - the preference filterorg.alfresco.repo.person.PersonService#clearPreferences(java.lang.String,
java.lang.String)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.