Package com.pugh.sockso.music

Examples of com.pugh.sockso.music.Collection


     */

    @Inject
    public MusicTree( Database db  ) {

        super( new MusicTreeNode(new Collection()) );

        this.db = db;
       
    }
View Full Code Here


       
        if ( folderToScan != null ) {

            try {
           
                final Collection collection = Collection.findByPath( db, folderToScan.getAbsolutePath() );
               
                if ( collection != null ) {
                    new Thread() {
                        @Override
                        public void run() {
                            cm.scanDirectory(
                                collection.getId(),
                                folderToScan
                            );
                        }
                    }.start();
                }
View Full Code Here

            rs = st.executeQuery();

            final List<Collection> folders = new ArrayList<Collection>();
            while ( rs.next() )
                folders.add( new Collection(
                    rs.getInt( "id" ),
                    rs.getString( "path" )
                ));
           
            return folders;
View Full Code Here

     *
     */

    protected String scanDirectory( final String path ) throws SQLException {

        final Collection collection = Collection.findByPath( db, path );

        if ( collection != null ) {
            cm.scanDirectory( collection.getId(), new File(path) );
            return "Scanning folder...";
        }

        else {
            return "Invalid directory";
View Full Code Here

       
        final TestResponse res = new TestResponse();
        final Folderer b = new Folderer();
        final List<Collection> folders = new ArrayList<Collection>();
       
        folders.add( new Collection(12321,"/some/path") );
       
        b.setResponse( res );
        b.showFolders( folders );
       
        final String data = res.getOutput();
View Full Code Here

TOP

Related Classes of com.pugh.sockso.music.Collection

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.