public class CreateSkillsComponent extends AbstractLogEnabled implements Serviceable, Component
| Modifier and Type | Class and Description |
|---|---|
private static class |
CreateSkillsComponent.Skill |
| Modifier and Type | Field and Description |
|---|---|
protected ContentWorkflowHelper |
_contentWorkflowHelper
The content workflow helper
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
static String |
ACQUIRED_SKILL_SETS_METADATA_NAME
The metadata name of the acquired skill sets
|
static String |
REQUIRED_SKILL_SETS_METADATA_NAME
The metadata name of the required skill sets
|
static String |
ROLE
The avalon role.
|
static String |
SKILL_CONTENT_TYPE
The skill content type id
|
static String |
SKILL_OTHER_NAMES_METADATA_NAME
The skills other names metadata name
|
static String |
SKILLS_METADATA_NAME
The metadata name of the skills
|
| Constructor and Description |
|---|
CreateSkillsComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_createSkillTableRef(CreateSkillsComponent.Skill skill)
Create a skill table ref content from the skill object
|
protected List<CreateSkillsComponent.Skill> |
_getSkillsFromCSVFile(String skillsCSVFilePath)
Get the list of skills from the csv file
|
void |
createSkillsFromESCOFileCSV(String skillsCSVFilePath)
Create all skills from ESCO file
|
void |
service(ServiceManager manager) |
getLogger, setLoggerpublic static final String SKILL_CONTENT_TYPE
public static final String REQUIRED_SKILL_SETS_METADATA_NAME
public static final String ACQUIRED_SKILL_SETS_METADATA_NAME
public static final String SKILLS_METADATA_NAME
public static final String SKILL_OTHER_NAMES_METADATA_NAME
protected ContentWorkflowHelper _contentWorkflowHelper
protected AmetysObjectResolver _resolver
public CreateSkillsComponent()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void createSkillsFromESCOFileCSV(String skillsCSVFilePath)
skillsCSVFilePath - the skills CSV file pathprotected List<CreateSkillsComponent.Skill> _getSkillsFromCSVFile(String skillsCSVFilePath)
skillsCSVFilePath - the skills CSV file pathprotected void _createSkillTableRef(CreateSkillsComponent.Skill skill) throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowException
skill - the skill objectAmetysRepositoryException - if a repository error occurredcom.opensymphony.workflow.WorkflowException - if a workflow error occurred