Class MemberHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.members.MemberHelper
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
Helper for members
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected ContentSearcherFactoryThe content searcherprotected AmetysObjectResolverThe AMetys object resolverstatic final StringThe Avalon role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeywords(Content content) Get the keywords' id of a membergetRelatedMembers(Content content, int max) Get the related members based on common skills and keywordsGet the skills' id of a membervoidservice(ServiceManager smanager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon role -
_contentSearcherFactory
The content searcher -
_resolver
The AMetys object resolver -
_contentHelper
The content helper
-
-
Constructor Details
-
MemberHelper
public MemberHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getSkills
Get the skills' id of a member- Parameters:
content- the content- Returns:
- the skills' id.
-
getKeywords
Get the keywords' id of a member- Parameters:
content- the content- Returns:
- the keywords' id.
-
getRelatedMembers
Get the related members based on common skills and keywords- Parameters:
content- the current member contentmax- the max number of related members- Returns:
- the related members
- Throws:
Exception- if search failed
-