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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected ContentSearcherFactory
The content searcherprotected AmetysObjectResolver
The AMetys object resolverstatic final String
The Avalon role -
Constructor Summary
-
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 membervoid
service
(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:
service
in 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
-