Package org.socialmusicdiscovery.server.business.model.core

Examples of org.socialmusicdiscovery.server.business.model.core.Image


        return "Track";
    }

    @Override
    protected <T extends SMDIdentity> Image getPersistentImage(T item) {
        Image image = ((TrackEntity)item).getDefaultImage();
        if(image==null && ((TrackEntity) item).getRelease()!=null) {
            image = ((ReleaseEntity)((TrackEntity) item).getRelease()).getDefaultImage();
        }
        return image;
    }
View Full Code Here


        }
        return result;
    }

    protected <T extends SMDIdentity> ResultItem.ResultItemImage getImage(T item) {
        Image image = getPersistentImage(item);
        if(image!=null) {
            String url = imageProviderManager.getProvider(image.getProviderId()).getImageURL(image);
            return new ResultItem.ResultItemImage(image.getProviderId(), image.getProviderImageId(), url);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.model.core.Image

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.