Пример #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);
  }