public class ConsistencyGenerator extends ServiceableGenerator
| Modifier and Type | Field and Description | 
|---|---|
protected ConsistencyChecker | 
_consistencyChecker
The consistency checker 
 | 
protected ContentHelper | 
_contentHelper
The content helper 
 | 
protected ContentTypeExtensionPoint | 
_cTypeEP
The content types extension point 
 | 
protected AmetysObjectResolver | 
_resolver
Repository content 
 | 
managerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description | 
|---|
ConsistencyGenerator()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
_getMetadataDefinitionListByPath(String metadataValuePath,
                                MetadataDefinitionHolder metadataDefHolder,
                                Map<String,MetadataDefinition> metadataDefByPath,
                                String prefix)
Retrieve the list of metadata definition for the given path 
 | 
void | 
generate()  | 
protected Map<String,MetadataDefinition> | 
getMetadataDefinitionListByPath(String metadataValuePath,
                               String[] cTypes,
                               String[] mixins)
Retrieve the list of metadata definition for the given path 
 | 
void | 
service(ServiceManager smanager)  | 
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected AmetysObjectResolver _resolver
protected ConsistencyChecker _consistencyChecker
protected ContentTypeExtensionPoint _cTypeEP
protected ContentHelper _contentHelper
public ConsistencyGenerator()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic void generate() throws IOException, SAXException, ProcessingException
protected Map<String,MetadataDefinition> getMetadataDefinitionListByPath(String metadataValuePath, String[] cTypes, String[] mixins)
metadataValuePath - the metadata value path. It is slash-separated and repeaters are present as indices, eg "mycomposite/myrepeater[3]/mymetadata".cTypes - The id of content typesmixins - The id of mixinsprotected void _getMetadataDefinitionListByPath(String metadataValuePath, MetadataDefinitionHolder metadataDefHolder, Map<String,MetadataDefinition> metadataDefByPath, String prefix)
metadataValuePath - the metadata value path. It is slash-separated and repeaters are present as indices, eg "mycomposite/myrepeater[3]/mymetadata".metadataDefHolder - The metadata def holder (such as the content type)metadataDefByPath - The map of metadata definition by path, to be filled.prefix - The metadata path prefix.