Ejemplo n.º 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);
  }
Ejemplo n.º 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);
  }
Ejemplo n.º 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);
  }
Ejemplo n.º 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);
  }