@Override public String getRecordLableLogoAbsolutePath(String name) throws RecordLabelNotExistsException { // Create temp record label entity RecordLabelEntity recordLabelEntity = new RecordLabelEntity(); recordLabelEntity.setName(name); return recordLabelLogic.getRecordLableLogoAbsolutePath(recordLabelEntity); }
@Override public void addNewRecordLabel(String name, String recordLabelArtworkPath) throws RecordLabelExistsException, FileNotExistsException, FileExistException { // create temporary record label entity RecordLabelEntity recordLabelEntity = new RecordLabelEntity(); recordLabelEntity.setName(name); recordLabelLogic.addNewRecordLabel(recordLabelEntity, recordLabelArtworkPath); }
@Override public void deleteRecordLabel(String name) throws RecordLabelNotExistsException, FileNotExistsException { // create temporary record lable file RecordLabelEntity recordLabelEntity = new RecordLabelEntity(); recordLabelEntity.setName(name); recordLabelLogic.deleteRecordLabel(recordLabelEntity); }
@Override public void addNewRecordLabel(String name, FileItem recordLabelFile) throws RecordLabelExistsException, FileExistException { // creating temporary record label RecordLabelEntity recordLabelEntity = new RecordLabelEntity(); recordLabelEntity.setName(name); // calling logic function recordLabelLogic.addNewRecordLabel(recordLabelEntity, recordLabelFile); }