예제 #1
0
  @Override
  public String getRecordLableLogoAbsolutePath(String name) throws RecordLabelNotExistsException {

    // Create temp record label entity
    RecordLabelEntity recordLabelEntity = new RecordLabelEntity();
    recordLabelEntity.setName(name);

    return recordLabelLogic.getRecordLableLogoAbsolutePath(recordLabelEntity);
  }
예제 #2
0
  @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);
  }
예제 #3
0
  @Override
  public void deleteRecordLabel(String name)
      throws RecordLabelNotExistsException, FileNotExistsException {

    // create temporary record lable file
    RecordLabelEntity recordLabelEntity = new RecordLabelEntity();
    recordLabelEntity.setName(name);

    recordLabelLogic.deleteRecordLabel(recordLabelEntity);
  }
예제 #4
0
  @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);
  }