public class RNCPModelHelper extends AbstractLogEnabled implements Component, Serviceable, Initializable
| Modifier and Type | Field and Description |
|---|---|
private String |
_baseURL
URL to update DOCX properties
|
protected SourceResolver |
_srcResolver
The source resolver
|
private static String |
RNCP_DIR |
static String |
ROLE
The component role
|
| Constructor and Description |
|---|
RNCPModelHelper() |
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,Object>> |
getModels()
Get the list of RNCP models.
|
void |
initialize() |
void |
service(ServiceManager smanager) |
void |
updateAbstractProgramRNCPSheet(String modelId,
String programId,
String subProgramId,
OutputStream out)
Update the RNCP model with the good properties.
|
getLogger, setLoggerprivate static final String RNCP_DIR
protected SourceResolver _srcResolver
public RNCPModelHelper()
public void initialize() throws Exception
initialize in interface InitializableExceptionpublic void service(ServiceManager smanager) throws ServiceException
service in interface ServiceableServiceExceptionpublic List<Map<String,Object>> getModels() throws ConfigurationException, SAXException, IOException
ConfigurationException - if an error occursSAXException - if an error occursIOException - if an error occurspublic void updateAbstractProgramRNCPSheet(String modelId, String programId, String subProgramId, OutputStream out) throws MalformedURLException, IOException
modelId - The model ID, shouldn't be nullprogramId - The mention IDsubProgramId - The subprogram IDout - The OutputStreamMalformedURLException - if an error occursIOException - if an error occurs