switch to valid aaf url property
[dmaap/dbcapi.git] / src / main / java / org / onap / dmaap / dbcapi / aaf / AafService.java
index 4778aff..9d8776a 100644 (file)
@@ -87,7 +87,7 @@ public class AafService extends BaseLoggingClass {
        
        public AafService(ServiceType t ) {
                DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig();
-               aafURL = p.getProperty( "aaf.URL", "https://authentication.domain.netset.com:8095/proxy/");
+               aafURL = p.getProperty( "aaf.URL", "https://authentication.domain.netset.com:8100/proxy/");
                initAafService( t );
        }
        public AafService( ServiceType t, String url ) {
@@ -112,6 +112,10 @@ public class AafService extends BaseLoggingClass {
                logger.info( "entry: addGrant() "  );
                return doPost( grant, "authz/role/perm", 201 );
        }
+       public int addUserRole( AafUserRole ur ) {
+               logger.info( "entry: addUserRole() "  );
+               return doPost( ur, "authz/userRole", 201 );
+       }
 
        public int delGrant( DmaapGrant grant ) {
                int rc = -1;