Examples of archiveItem()


Examples of org.drools.repository.PackageItem.archiveItem()

                    .getExtension(Translator.METADATA);
            if (metadataExtension != null) {
                ExtensibleElement archivedExtension = metadataExtension
                        .getExtension(Translator.ARCHIVED);
                if (archivedExtension != null) {
                    p.archiveItem(Boolean.getBoolean(archivedExtension
                            .getSimpleExtension(Translator.VALUE)));
                }

                // TODO: Package state is not fully supported yet
                /*
 
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

                                                                        1000 );
        assertEquals( -1,
                      td.total );
        repositoryAssetService.archiveAsset( uuid4 );
        PackageItem packageItem = impl.getRulesRepository().loadPackage( packageName );
        packageItem.archiveItem( true );

        TableDataResult td2 = repositoryAssetService.loadArchivedAssets( 0,
                                                                         1000 );
        assertTrue( td2.data.length == td.data.length + 1 );
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

        RepositoryAssetService repositoryAssetService = getRepositoryAssetService();
        PackageItem item = impl.getRulesRepository().loadPackage( "testCreateArchivedPackage" );
        TableDataResult td = repositoryAssetService.loadArchivedAssets( 0,
                                                                        1000 );

        item.archiveItem( true );

        TableDataResult td2 = repositoryAssetService.loadArchivedAssets( 0,
                                                                         1000 );
        assertEquals( td2.data.length,
                      td.data.length );
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

                      arch.length + 1 );

        assertEquals( pkgs.length,
                      repositoryPackageService.listPackages().length );

        item.archiveItem( false );
        arch2 = repositoryPackageService.listArchivedPackages();
        assertEquals( arch2.length,
                      arch.length );
    }
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

        PackageItem pkg = fm.getRepository().loadPackage( "testClassicDRLImport" );
        assertNotNull( pkg );
        assertFalse( pkg.isArchived() );

        // Archive it
        pkg.archiveItem( true );

        pkg = fm.getRepository().loadPackage( "testClassicDRLImport" );
        assertNotNull( pkg );
        assertTrue( pkg.isArchived() );
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

        PackageItem pkg = fm.getRepository().loadPackage( "testClassicDRLImport" );
        assertNotNull( pkg );
        assertFalse( pkg.isArchived() );

        // Archive it
        pkg.archiveItem( true );

        pkg = fm.getRepository().loadPackage( "testClassicDRLImport" );
        assertNotNull( pkg );
        assertTrue( pkg.isArchived() );
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

        updateCategoryRules( data,
                item );

        item.updateExternalURI( data.getExternalURI() );
        item.updateDescription( data.getDescription() );
        item.archiveItem( data.isArchived() );
        item.updateBinaryUpToDate( false );
        if(!data.getFormat().equals("")) {
            item.updateFormat(data.getFormat());
        }
        RuleBaseCache.getInstance().remove( data.getUuid() );
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

            String checkinComment = "";
            if (metadataExtension != null) {
                ExtensibleElement archivedExtension = metadataExtension
                        .getExtension(Translator.ARCHIVED);
                if (archivedExtension != null) {
                    existingPackage.archiveItem(Boolean.getBoolean(archivedExtension
                            .getSimpleExtension(Translator.VALUE)));
                }

                ExtensibleElement checkinCommentExtension = metadataExtension.getExtension(Translator.CHECKIN_COMMENT);
                if (checkinCommentExtension != null) {
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

        PackageItem item = impl.repository.loadPackage( "testCreateArchivedPackage" );
        TableDataResult td = impl.loadArchivedAssets( 0,
                                                      1000 );

        item.archiveItem( true );

        TableDataResult td2 = impl.loadArchivedAssets( 0,
                                                       1000 );
        assertEquals( td2.data.length,
                      td.data.length );
View Full Code Here

Examples of org.drools.repository.PackageItem.archiveItem()

                      arch.length + 1 );

        assertEquals( pkgs.length,
                      impl.listPackages().length );

        item.archiveItem( false );
        arch2 = impl.listArchivedPackages();
        assertEquals( arch2.length,
                      arch.length );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.