Class OfficeWritePlatformServiceJpaRepositoryImpl

java.lang.Object
org.apache.fineract.organisation.office.service.OfficeWritePlatformServiceJpaRepositoryImpl
All Implemented Interfaces:
OfficeWritePlatformService

public class OfficeWritePlatformServiceJpaRepositoryImpl extends Object implements OfficeWritePlatformService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.fineract.infrastructure.core.data.CommandProcessingResult
    createOffice(org.apache.fineract.infrastructure.core.api.JsonCommand command)
     
    org.apache.fineract.infrastructure.core.data.CommandProcessingResult
    deleteOfficeTransaction(Long transactionId, org.apache.fineract.infrastructure.core.api.JsonCommand command)
     
    org.apache.fineract.infrastructure.security.service.PlatformSecurityContext
     
    org.apache.fineract.infrastructure.core.data.CommandProcessingResult
    officeTransaction(org.apache.fineract.infrastructure.core.api.JsonCommand command)
     
    org.apache.fineract.infrastructure.core.data.CommandProcessingResult
    updateOffice(Long officeId, org.apache.fineract.infrastructure.core.api.JsonCommand command)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OfficeWritePlatformServiceJpaRepositoryImpl

      public OfficeWritePlatformServiceJpaRepositoryImpl()
  • Method Details

    • createOffice

      @Transactional @CacheEvict(value="offices",key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat(#root.target.context.authenticatedUser().getOffice().getHierarchy()+\'of\')") @CacheEvict(value="officesForDropdown",key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat(#root.target.context.authenticatedUser().getOffice().getHierarchy()+\'ofd\')") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult createOffice(org.apache.fineract.infrastructure.core.api.JsonCommand command)
      Specified by:
      createOffice in interface OfficeWritePlatformService
    • updateOffice

      @Transactional @CacheEvict(value="offices",key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat(#root.target.context.authenticatedUser().getOffice().getHierarchy()+\'of\')") @CacheEvict(value="officesForDropdown",key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat(#root.target.context.authenticatedUser().getOffice().getHierarchy()+\'ofd\')") @CacheEvict(value="officesById",key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat(#officeId)") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult updateOffice(Long officeId, org.apache.fineract.infrastructure.core.api.JsonCommand command)
      Specified by:
      updateOffice in interface OfficeWritePlatformService
    • officeTransaction

      @Transactional public org.apache.fineract.infrastructure.core.data.CommandProcessingResult officeTransaction(org.apache.fineract.infrastructure.core.api.JsonCommand command)
      Specified by:
      officeTransaction in interface OfficeWritePlatformService
    • deleteOfficeTransaction

      @Transactional public org.apache.fineract.infrastructure.core.data.CommandProcessingResult deleteOfficeTransaction(Long transactionId, org.apache.fineract.infrastructure.core.api.JsonCommand command)
      Specified by:
      deleteOfficeTransaction in interface OfficeWritePlatformService
    • getContext

      public org.apache.fineract.infrastructure.security.service.PlatformSecurityContext getContext()