org.wso2.carbon.identity.entitlement.proxy.thrift
Class ThriftEntitlementServiceClient

java.lang.Object
  extended by org.wso2.carbon.identity.entitlement.proxy.AbstractEntitlementServiceClient
      extended by org.wso2.carbon.identity.entitlement.proxy.thrift.ThriftEntitlementServiceClient

public class ThriftEntitlementServiceClient
extends AbstractEntitlementServiceClient


Constructor Summary
ThriftEntitlementServiceClient(String serverUrl, String username, String password, String thriftHost, int thriftPort, boolean reuseSession)
           
 
Method Summary
 List<String> getActionableChildResourcesForAlias(String alias, String parentResource, String action, String appId)
           
 List<String> getActionableResourcesForAlias(String alias, String appId)
           
 List<String> getActionsForResource(String alias, String resources, String appId)
           
 String getDecision(Attribute[] attributes, String appId)
           
 List<String> getResourcesForAlias(String alias, String appId)
           
 boolean subjectCanActOnResource(String subjectType, String alias, String actionId, String resourceId, Attribute[] attributes, String domainId, String appId)
           
 boolean subjectCanActOnResource(String subjectType, String alias, String actionId, String resourceId, String domainId, String appId)
           
 
Methods inherited from class org.wso2.carbon.identity.entitlement.proxy.AbstractEntitlementServiceClient
getStatus, getStatusOMElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftEntitlementServiceClient

public ThriftEntitlementServiceClient(String serverUrl,
                                      String username,
                                      String password,
                                      String thriftHost,
                                      int thriftPort,
                                      boolean reuseSession)
Method Detail

getDecision

public String getDecision(Attribute[] attributes,
                          String appId)
                   throws Exception
Specified by:
getDecision in class AbstractEntitlementServiceClient
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       String domainId,
                                       String appId)
                                throws Exception
Specified by:
subjectCanActOnResource in class AbstractEntitlementServiceClient
Throws:
Exception

subjectCanActOnResource

public boolean subjectCanActOnResource(String subjectType,
                                       String alias,
                                       String actionId,
                                       String resourceId,
                                       Attribute[] attributes,
                                       String domainId,
                                       String appId)
                                throws Exception
Specified by:
subjectCanActOnResource in class AbstractEntitlementServiceClient
Throws:
Exception

getResourcesForAlias

public List<String> getResourcesForAlias(String alias,
                                         String appId)
Specified by:
getResourcesForAlias in class AbstractEntitlementServiceClient

getActionableResourcesForAlias

public List<String> getActionableResourcesForAlias(String alias,
                                                   String appId)
Specified by:
getActionableResourcesForAlias in class AbstractEntitlementServiceClient

getActionsForResource

public List<String> getActionsForResource(String alias,
                                          String resources,
                                          String appId)
Specified by:
getActionsForResource in class AbstractEntitlementServiceClient

getActionableChildResourcesForAlias

public List<String> getActionableChildResourcesForAlias(String alias,
                                                        String parentResource,
                                                        String action,
                                                        String appId)
                                                 throws Exception
Specified by:
getActionableChildResourcesForAlias in class AbstractEntitlementServiceClient
Throws:
Exception


Copyright © 2015 WSO2. All rights reserved.