org.syncope.console.rest
Class PolicyRestClient

java.lang.Object
  extended by org.syncope.console.rest.AbstractBaseRestClient
      extended by org.syncope.console.rest.PolicyRestClient

@Component
public class PolicyRestClient
extends AbstractBaseRestClient

Console client for invoking Rest Policy services.


Field Summary
 
Fields inherited from class org.syncope.console.rest.AbstractBaseRestClient
baseURL, LOG, restTemplate
 
Constructor Summary
PolicyRestClient()
           
 
Method Summary
<T extends PolicyTO>
T
createPolicy(T policy)
           
 void delete(Long id)
           
<T extends PolicyTO>
T
getGlobalPolicy(PolicyType type)
           
<T extends PolicyTO>
List<T>
getPolicies(PolicyType type)
           
<T extends PolicyTO>
T
updatePolicy(T policy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyRestClient

public PolicyRestClient()
Method Detail

getGlobalPolicy

public <T extends PolicyTO> T getGlobalPolicy(PolicyType type)

getPolicies

public <T extends PolicyTO> List<T> getPolicies(PolicyType type)

createPolicy

public <T extends PolicyTO> T createPolicy(T policy)
                                throws InvalidPolicyType
Throws:
InvalidPolicyType

updatePolicy

public <T extends PolicyTO> T updatePolicy(T policy)
                                throws InvalidPolicyType
Throws:
InvalidPolicyType

delete

public void delete(Long id)


Copyright © 2011. All Rights Reserved.