Package org.openquark.cal.metadata

Examples of org.openquark.cal.metadata.MetadataManager


        MetaModule metaModule = getMetaModule(featureName.toModuleName());
        if (metaModule == null) {
            throw new IllegalStateException("The module for the given entity does not exist in the workspace.");
        }

        MetadataManager metadataManager = virtualResourceManager.getMetadataManager(featureName.toModuleName());
        if (metadataManager == null) {
            return MetadataManager.getEmptyMetadata(featureName, locale);
        }
       
        return metadataManager.getMetadata(featureName, locale);
    }
View Full Code Here


     * @param oldFeatureName
     * @param newFeatureName
     * @param renameStatus
     */
    private void collectMetadataRenamings(List<Renaming> renamings, CALFeatureName oldFeatureName, CALFeatureName newFeatureName, Status renameStatus) {
        MetadataManager oldMetadataManager = virtualResourceManager.getMetadataManager(oldFeatureName.toModuleName());
        if (oldMetadataManager == null) {
            renameStatus.add(new Status(Status.Severity.WARNING, "The metadata manager for the old metadata resource does not exist."));
            return;
        }
       
        MetadataManager newMetadataManager = virtualResourceManager.getMetadataManager(newFeatureName.toModuleName());
        if (newMetadataManager == null) {
            renameStatus.add(new Status(Status.Severity.WARNING, "The metadata manager for the new metadata resource does not exist."));
            return;
        }
       
View Full Code Here

     * @param metadata the metadata object to save
     * @param saveStatus the tracking status object.
     * @return true if metadata was saved, false otherwise
     */
    public boolean saveMetadata(CALFeatureMetadata metadata, Status saveStatus) {
        MetadataManager metadataManager = virtualResourceManager.getMetadataManager(metadata.getFeatureName().toModuleName());
        if (metadataManager == null) {
            saveStatus.add(new Status(Status.Severity.WARNING, "No registered metadata manager."));
            return false;
        }
        return metadataManager.saveMetadata(metadata, saveStatus);
    }
View Full Code Here

TOP

Related Classes of org.openquark.cal.metadata.MetadataManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.