public class ProgramListGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysResolver
The ametys object resolver.
|
private ContentHelper |
_contentHelper |
protected OdfPageHandler |
_odfPageHandler
Handler for root
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
ProgramListGenerator() |
Modifier and Type | Method and Description |
---|---|
private boolean |
_filterMetadatas(String metadataPath,
String value,
HashMap<String,List<String>> metadataFilters) |
private boolean |
_isEqualOrHasParentInList(OrgUnit ou,
List<String> filteredOrgUnits) |
void |
generate() |
protected void |
saxCriterionValue(String name,
String value)
SAX a value.
|
void |
saxProgram(Program program,
HashMap<String,List<String>> metadataFilters)
SAX a program.
|
protected void |
saxSubProgram(SubProgram subProgram)
SAX a subprogram.
|
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _ametysResolver
protected OdfPageHandler _odfPageHandler
private ContentHelper _contentHelper
public ProgramListGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
private boolean _isEqualOrHasParentInList(OrgUnit ou, List<String> filteredOrgUnits)
public void saxProgram(Program program, HashMap<String,List<String>> metadataFilters) throws SAXException, IOException
program
- The program to SAX.metadataFilters
- Filters to apply to the metadatasSAXException
- If an error occurs while SAXingIOException
- If an error occurs while retrieving content.private boolean _filterMetadatas(String metadataPath, String value, HashMap<String,List<String>> metadataFilters)
protected void saxSubProgram(SubProgram subProgram) throws SAXException
subProgram
- The subprogram to SAX.SAXException
- If an error occurs while SAXingprotected void saxCriterionValue(String name, String value) throws SAXException
name
- the criterion name.value
- the criterion value.SAXException
- SAX error