Class UmaRptService


  • @ApplicationScoped
    public class UmaRptService
    extends Object
    RPT manager component
    Version:
    June 28, 2017
    Author:
    Yuriy Zabrovarnyy, Javier Rojas Blum
    • Constructor Detail

      • UmaRptService

        public UmaRptService()
    • Method Detail

      • getPermissionDns

        public static List<String> getPermissionDns​(Collection<io.jans.as.model.uma.persistence.UmaPermission> permissions)
      • branchDn

        public String branchDn()
      • persist

        public void persist​(UmaRPT rpt)
      • getRPTByCode

        public UmaRPT getRPTByCode​(String rptCode)
      • deleteByCode

        public void deleteByCode​(String rptCode)
      • addPermissionToRPT

        public boolean addPermissionToRPT​(UmaRPT rpt,
                                          Collection<io.jans.as.model.uma.persistence.UmaPermission> permissions)
      • addPermissionToRPT

        public boolean addPermissionToRPT​(UmaRPT rpt,
                                          io.jans.as.model.uma.persistence.UmaPermission... permission)
      • getRptPermissions

        public List<io.jans.as.model.uma.persistence.UmaPermission> getRptPermissions​(UmaRPT rpt)
      • rptExpirationDate

        public Date rptExpirationDate()
      • createRPTAndPersist

        public UmaRPT createRPTAndPersist​(ExecutionContext executionContext,
                                          List<io.jans.as.model.uma.persistence.UmaPermission> permissions)
      • merge

        public void merge​(UmaRPT rpt)
      • buildPermissionsJSONObject

        public org.json.JSONArray buildPermissionsJSONObject​(List<io.jans.as.model.uma.persistence.UmaPermission> permissions)
                                                      throws IOException,
                                                             org.json.JSONException
        Throws:
        IOException
        org.json.JSONException
      • addBranch

        public void addBranch()
      • addBranchIfNeeded

        public void addBranchIfNeeded()
      • containsBranch

        public boolean containsBranch()