Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,4 @@ public static TellerData instance(final Long id, final Long officeId, final Long
.setName(name).setDescription(description).setStartDate(startDate).setEndDate(endDate).setStatus(status)
.setOfficeName(officeName).setHasTransactions(hasTransactions).setHasMappedCashiers(hasMappedCashiers);
}

public static TellerData lookup(final Long id, final String name) {
return new TellerData().setId(id).setName(name);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
package org.apache.fineract.organisation.teller.domain;

import java.util.Collection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

Expand All @@ -28,7 +27,4 @@
* @see org.apache.fineract.organisation.teller.domain.Teller
* @since 2.0.0
*/
public interface TellerRepository extends JpaRepository<Teller, Long>, JpaSpecificationExecutor<Teller> {

Collection<Teller> findTellerByOfficeId(Long officeId);
}
public interface TellerRepository extends JpaRepository<Teller, Long>, JpaSpecificationExecutor<Teller> {}
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ public Teller findOneWithNotFoundDetection(final Long id) {
return teller;
}

public Teller save(final Teller teller) {
return this.repository.save(teller);
}

public Teller saveAndFlush(final Teller teller) {
return this.repository.saveAndFlush(teller);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,4 @@ public static TellerStatus fromInt(final Integer statusValue) {
return status;
}

public boolean hasStateOf(final TellerStatus state) {
return this.value.equals(state.getValue());
}

public boolean isPending() {
return this.value.equals(TellerStatus.PENDING.getValue());
}

public boolean isActive() {
return this.value.equals(TellerStatus.ACTIVE.getValue());
}

public boolean isClosed() {
return this.value.equals(TellerStatus.CLOSED.getValue());
}

public boolean isInactive() {
return this.value.equals(TellerStatus.INACTIVE.getValue());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package org.apache.fineract.organisation.teller.exception;

import org.apache.fineract.infrastructure.core.exception.AbstractPlatformResourceNotFoundException;
import org.springframework.dao.EmptyResultDataAccessException;

/**
* Indicates that a teller could not be found.
Expand All @@ -41,8 +40,4 @@ public class TellerNotFoundException extends AbstractPlatformResourceNotFoundExc
public TellerNotFoundException(Long tellerId) {
super(ERROR_MESSAGE_CODE, DEFAULT_ERROR_MESSAGE, tellerId);
}

public TellerNotFoundException(Long id, EmptyResultDataAccessException e) {
super("error.msg.teller.id.invalid", "Teller with identifier " + id + " does not exist", id, e);
}
}

This file was deleted.

This file was deleted.

Loading