Search in sources :

Example 1 with NullFilingRule

use of org.alfresco.repo.virtual.template.NullFilingRule in project alfresco-repository by Alfresco.

the class VirtualStoreImpl method createFilingData.

@Override
public FilingData createFilingData(Reference parentReference, QName assocTypeQName, QName assocQName, QName nodeTypeQName, Map<QName, Serializable> properties) throws VirtualizationException {
    VirtualFolderDefinition structure = resolveVirtualFolderDefinition(parentReference);
    FilingRule filingRule = structure.getFilingRule();
    if (filingRule == null) {
        filingRule = new NullFilingRule(environment);
    }
    FilingParameters filingParameters = new FilingParameters(parentReference, assocTypeQName, assocQName, nodeTypeQName, properties);
    FilingData filingData = filingRule.createFilingData(filingParameters);
    return filingData;
}
Also used : NullFilingRule(org.alfresco.repo.virtual.template.NullFilingRule) FilingParameters(org.alfresco.repo.virtual.template.FilingParameters) FilingData(org.alfresco.repo.virtual.template.FilingData) VirtualFolderDefinition(org.alfresco.repo.virtual.template.VirtualFolderDefinition) FilingRule(org.alfresco.repo.virtual.template.FilingRule) NullFilingRule(org.alfresco.repo.virtual.template.NullFilingRule)

Aggregations

FilingData (org.alfresco.repo.virtual.template.FilingData)1 FilingParameters (org.alfresco.repo.virtual.template.FilingParameters)1 FilingRule (org.alfresco.repo.virtual.template.FilingRule)1 NullFilingRule (org.alfresco.repo.virtual.template.NullFilingRule)1 VirtualFolderDefinition (org.alfresco.repo.virtual.template.VirtualFolderDefinition)1