|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.preference.PreferenceServiceImpl
public class PreferenceServiceImpl
Preference Service Implementation
Constructor Summary | |
---|---|
PreferenceServiceImpl()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferenceServiceImpl()
Method Detail |
---|
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 java.util.Map getPreferences(java.lang.String userName)
PreferenceService
getPreferences
in interface PreferenceService
userName
- the user name
PreferenceService.getPreferences(java.lang.String)
public java.util.Map getPreferences(java.lang.String userName, java.lang.String preferenceFilter)
PreferenceService
If 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 PreferenceService
userName
- the user namepreferenceFilter
- the preference filter
org.alfresco.repo.person.PersonService#getPreferences(java.lang.String, java.lang.String)
public void setPreferences(java.lang.String userName, java.util.Map preferences)
PreferenceService
Values provided overlay those already present.
Preference value names can be "namespaced" by using package notation. For example "alfresc.myComp.myValue".
setPreferences
in interface PreferenceService
userName
- the user namepreferences
- the preference valuesorg.alfresco.repo.person.PersonService#setPreferences(java.lang.String, java.util.HashMap)
public void clearPreferences(java.lang.String userName)
PreferenceService
clearPreferences
in interface PreferenceService
userName
- the user namePreferenceService.clearPreferences(java.lang.String)
public void clearPreferences(java.lang.String userName, java.lang.String preferenceFilter)
PreferenceService
If no filter if present then all preferences are cleared.
clearPreferences
in interface PreferenceService
userName
- the user namepreferenceFilter
- the preference filterorg.alfresco.repo.person.PersonService#clearPreferences(java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |