コード例 #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);
  }