Package org.drools.guvnor.server.util

Examples of org.drools.guvnor.server.util.AssetPopulator


    public Asset loadRuleAsset(String uuid) throws SerializationException {

        long time = System.currentTimeMillis();

        AssetItem item = rulesRepository.loadAssetByUUID(uuid);
        Asset asset = new AssetPopulator().populateFrom(item);

        asset.setMetaData(repositoryAssetOperations.populateMetaData(item));

        serviceSecurity.checkIsPackageReadOnlyOrAnalystReadOnly(asset);
        ModuleItem pkgItem = handlePackageItem(item,
View Full Code Here


                                                initialCategory,
                                                format );

            //Set the Assets content - no need to use AssetTemplateCreator().applyPreBuiltTemplates() as we are provided a model
            //Use a transient Asset object so we can use ContentHandler to convert between model and persisted format correctly.
            Asset asset = new AssetPopulator().populateFrom( assetItem );
            ContentHandler handler = ContentManager.getHandler( assetItem.getFormat() );
            asset.setContent( content );
            handler.storeAssetContent( asset,
                                       assetItem );
View Full Code Here

    public Asset loadRuleAsset(String uuid) throws SerializationException {

        long time = System.currentTimeMillis();

        AssetItem item = rulesRepository.loadAssetByUUID( uuid );
        Asset asset = new AssetPopulator().populateFrom( item );

        asset.setMetaData( repositoryAssetOperations.populateMetaData( item ) );

        serviceSecurity.checkIsPackageReadOnlyOrAnalystReadOnly( asset );
        ModuleItem pkgItem = handlePackageItem( item,
View Full Code Here

    public Asset loadRuleAsset(String uuid) throws SerializationException {

        long time = System.currentTimeMillis();

        AssetItem item = rulesRepository.loadAssetByUUID( uuid );
        Asset asset = new AssetPopulator().populateFrom( item );

        asset.setMetaData( repositoryAssetOperations.populateMetaData( item ) );


        serviceSecurity.checkIsPackageReadOnlyOrAnalystReadOnly( asset );
View Full Code Here

TOP

Related Classes of org.drools.guvnor.server.util.AssetPopulator

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.