Package dev.warrant
Class WarrantBaseClient
java.lang.Object
dev.warrant.WarrantBaseClient
- Direct Known Subclasses:
WarrantClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(WarrantObject object, String relation, WarrantSubject subject) booleancheck(WarrantObject object, String relation, WarrantSubject subject, RequestOptions requestOptions) booleancheck(WarrantObject object, String relation, WarrantSubject subject, Map<String, Object> context) booleancheck(WarrantObject object, String relation, WarrantSubject subject, Map<String, Object> context, RequestOptions requestOptions) checkAllOf(List<WarrantSpec> warrants) checkAllOf(List<WarrantSpec> warrants, RequestOptions requestOptions) checkAnyOf(List<WarrantSpec> warrants) checkAnyOf(List<WarrantSpec> warrants, RequestOptions requestOptions) checkBatch(List<WarrantSpec> warrants) checkBatch(List<WarrantSpec> warrants, RequestOptions requestOptions) createObject(BaseWarrantObject object) createObject(BaseWarrantObject object, RequestOptions requestOptions) createObject(BaseWarrantObject object, Map<String, Object> meta) createObject(BaseWarrantObject object, Map<String, Object> meta, RequestOptions requestOptions) createObject(String objectType) createObject(String objectType, RequestOptions requestOptions) <T extends WarrantObject>
TcreateObject(String objectType, Class<T> resultType) <T extends WarrantObject>
TcreateObject(String objectType, Class<T> resultType, RequestOptions requestOptions) createObject(String objectType, String objectId) createObject(String objectType, String objectId, RequestOptions requestOptions) <T extends WarrantObject>
TcreateObject(String objectType, String objectId, Class<T> resultType) <T extends WarrantObject>
TcreateObject(String objectType, String objectId, Class<T> resultType, RequestOptions requestOptions) createObject(String objectType, String objectId, Map<String, Object> meta, RequestOptions requestOptions) <T extends WarrantObject>
T<T extends WarrantObject>
TcreateObject(String objectType, String objectId, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) createObject(String objectType, Map<String, Object> meta) createObject(String objectType, Map<String, Object> meta, RequestOptions requestOptions) <T extends WarrantObject>
T<T extends WarrantObject>
TcreateObject(String objectType, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) <T extends WarrantObject>
TcreateObject(T object, Class<T> resultType) <T extends WarrantObject>
TcreateObject(T object, Class<T> resultType, RequestOptions requestOptions) <T extends WarrantObject>
TcreateObject(T object, Map<String, Object> meta, Class<T> resultType) <T extends WarrantObject>
TcreateObject(T object, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) createObjects(BaseWarrantObject[] objects) createObjects(BaseWarrantObject[] objects, RequestOptions requestOptions) <T extends WarrantObject>
T[]createObjects(T[] objects, Class<T[]> resultType) <T extends WarrantObject>
T[]createObjects(T[] objects, Class<T[]> resultType, RequestOptions requestOptions) createUserAuthzSession(String userId) createUserAuthzSession(String userId, RequestOptions requestOptions) createUserSelfServiceDashboardUrl(String userId, String tenantId, String selfServiceStrategy, String redirectUrl) createUserSelfServiceDashboardUrl(String userId, String tenantId, String selfServiceStrategy, String redirectUrl, RequestOptions requestOptions) createWarrant(WarrantObject object, String relation, WarrantSubject subject) createWarrant(WarrantObject object, String relation, WarrantSubject subject, RequestOptions requestOptions) createWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy) createWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy, RequestOptions requestOptions) Warrant[]createWarrants(Warrant[] warrants) Warrant[]createWarrants(Warrant[] warrants, RequestOptions requestOptions) deleteObject(WarrantObject obj, RequestOptions requestOptions) deleteObject(String objectType, String objectId) deleteObject(String objectType, String objectId, RequestOptions requestOptions) deleteObjects(BaseWarrantObject[] objects) deleteObjects(BaseWarrantObject[] objects, RequestOptions requestOptions) <T extends WarrantObject>
StringdeleteObjects(T[] objects) <T extends WarrantObject>
StringdeleteObjects(T[] objects, RequestOptions requestOptions) deleteWarrant(WarrantObject object, String relation, WarrantSubject subject) deleteWarrant(WarrantObject object, String relation, WarrantSubject subject, RequestOptions requestOptions) deleteWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy) deleteWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy, RequestOptions requestOptions) deleteWarrants(Warrant[] warrants) deleteWarrants(Warrant[] warrants, RequestOptions requestOptions) getObject(String objectType, String objectId, RequestOptions requestOptions) <T extends WarrantObject>
T<T extends WarrantObject>
TgetObject(String objectType, String objectId, Class<T> resultType, RequestOptions requestOptions) listObjects(ObjectFilters filters, ListParams listParams) listObjects(ObjectFilters filters, ListParams listParams, RequestOptions requestOptions) listWarrants(WarrantFilters filters, ListParams listParams) listWarrants(WarrantFilters filters, ListParams listParams, RequestOptions requestOptions) query(String query, ListParams listParams) query(String query, ListParams listParams, RequestOptions requestOptions) updateObject(String objectType, String objectId, Map<String, Object> meta, RequestOptions requestOptions) <T extends WarrantObject>
T<T extends WarrantObject>
TupdateObject(String objectType, String objectId, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions)
-
Field Details
-
SDK_VERSION
- See Also:
-
USER_AGENT
- See Also:
-
-
Constructor Details
-
WarrantBaseClient
-
-
Method Details
-
createWarrant
public Warrant createWarrant(WarrantObject object, String relation, WarrantSubject subject) throws WarrantException - Throws:
WarrantException
-
createWarrant
public Warrant createWarrant(WarrantObject object, String relation, WarrantSubject subject, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createWarrant
public Warrant createWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy) throws WarrantException - Throws:
WarrantException
-
createWarrant
public Warrant createWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createWarrants
- Throws:
WarrantException
-
createWarrants
public Warrant[] createWarrants(Warrant[] warrants, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
deleteWarrant
public String deleteWarrant(WarrantObject object, String relation, WarrantSubject subject) throws WarrantException - Throws:
WarrantException
-
deleteWarrant
public String deleteWarrant(WarrantObject object, String relation, WarrantSubject subject, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
deleteWarrant
public String deleteWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy) throws WarrantException - Throws:
WarrantException
-
deleteWarrant
public String deleteWarrant(WarrantObject object, String relation, WarrantSubject subject, String policy, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
deleteWarrants
- Throws:
WarrantException
-
deleteWarrants
public String deleteWarrants(Warrant[] warrants, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
listWarrants
public WarrantListResult listWarrants(WarrantFilters filters, ListParams listParams) throws WarrantException - Throws:
WarrantException
-
listWarrants
public WarrantListResult listWarrants(WarrantFilters filters, ListParams listParams, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
query
- Throws:
WarrantException
-
query
public QueryResultSet query(String query, ListParams listParams, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
check
public boolean check(WarrantObject object, String relation, WarrantSubject subject) throws WarrantException - Throws:
WarrantException
-
check
public boolean check(WarrantObject object, String relation, WarrantSubject subject, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
check
public boolean check(WarrantObject object, String relation, WarrantSubject subject, Map<String, Object> context) throws WarrantException- Throws:
WarrantException
-
check
public boolean check(WarrantObject object, String relation, WarrantSubject subject, Map<String, Object> context, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
checkBatch
- Throws:
WarrantException
-
checkBatch
public List<WarrantCheck> checkBatch(List<WarrantSpec> warrants, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
checkAnyOf
- Throws:
WarrantException
-
checkAnyOf
public WarrantCheck checkAnyOf(List<WarrantSpec> warrants, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
checkAllOf
- Throws:
WarrantException
-
checkAllOf
public WarrantCheck checkAllOf(List<WarrantSpec> warrants, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
- Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(BaseWarrantObject object, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(BaseWarrantObject object, Map<String, Object> meta) throws WarrantException- Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(BaseWarrantObject object, Map<String, Object> meta, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(T object, Class<T> resultType) throws WarrantException - Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(T object, Class<T> resultType, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(T object, Map<String, Object> meta, Class<T> resultType) throws WarrantException- Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(T object, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
createObject
- Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(String objectType, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, Class<T> resultType) throws WarrantException - Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, Class<T> resultType, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(String objectType, Map<String, Object> meta) throws WarrantException- Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(String objectType, Map<String, Object> meta, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, Map<String, Object> meta, Class<T> resultType) throws WarrantException- Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
createObject
- Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(String objectType, String objectId, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, String objectId, Class<T> resultType) throws WarrantException - Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, String objectId, Class<T> resultType, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(String objectType, String objectId, Map<String, Object> meta) throws WarrantException- Throws:
WarrantException
-
createObject
public BaseWarrantObject createObject(String objectType, String objectId, Map<String, Object> meta, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, String objectId, Map<String, Object> meta, Class<T> resultType) throws WarrantException- Throws:
WarrantException
-
createObject
public <T extends WarrantObject> T createObject(String objectType, String objectId, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
createObjects
- Throws:
WarrantException
-
createObjects
public BaseWarrantObject[] createObjects(BaseWarrantObject[] objects, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createObjects
public <T extends WarrantObject> T[] createObjects(T[] objects, Class<T[]> resultType) throws WarrantException - Throws:
WarrantException
-
createObjects
public <T extends WarrantObject> T[] createObjects(T[] objects, Class<T[]> resultType, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
getObject
- Throws:
WarrantException
-
getObject
public BaseWarrantObject getObject(String objectType, String objectId, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
getObject
public <T extends WarrantObject> T getObject(String objectType, String objectId, Class<T> resultType) throws WarrantException - Throws:
WarrantException
-
getObject
public <T extends WarrantObject> T getObject(String objectType, String objectId, Class<T> resultType, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
updateObject
public BaseWarrantObject updateObject(String objectType, String objectId, Map<String, Object> meta) throws WarrantException- Throws:
WarrantException
-
updateObject
public BaseWarrantObject updateObject(String objectType, String objectId, Map<String, Object> meta, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
updateObject
public <T extends WarrantObject> T updateObject(String objectType, String objectId, Map<String, Object> meta, Class<T> resultType) throws WarrantException- Throws:
WarrantException
-
updateObject
public <T extends WarrantObject> T updateObject(String objectType, String objectId, Map<String, Object> meta, Class<T> resultType, RequestOptions requestOptions) throws WarrantException- Throws:
WarrantException
-
deleteObject
- Throws:
WarrantException
-
deleteObject
public String deleteObject(WarrantObject obj, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
deleteObject
- Throws:
WarrantException
-
deleteObject
public String deleteObject(String objectType, String objectId, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
deleteObjects
- Throws:
WarrantException
-
deleteObjects
public String deleteObjects(BaseWarrantObject[] objects, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
deleteObjects
- Throws:
WarrantException
-
deleteObjects
public <T extends WarrantObject> String deleteObjects(T[] objects, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
listObjects
public BaseWarrantObjectListResult listObjects(ObjectFilters filters, ListParams listParams) throws WarrantException - Throws:
WarrantException
-
listObjects
public BaseWarrantObjectListResult listObjects(ObjectFilters filters, ListParams listParams, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createUserAuthzSession
- Throws:
WarrantException
-
createUserAuthzSession
public String createUserAuthzSession(String userId, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-
createUserSelfServiceDashboardUrl
public String createUserSelfServiceDashboardUrl(String userId, String tenantId, String selfServiceStrategy, String redirectUrl) throws WarrantException - Throws:
WarrantException
-
createUserSelfServiceDashboardUrl
public String createUserSelfServiceDashboardUrl(String userId, String tenantId, String selfServiceStrategy, String redirectUrl, RequestOptions requestOptions) throws WarrantException - Throws:
WarrantException
-