Package dev.warrant
Class WarrantClient
java.lang.Object
dev.warrant.WarrantBaseClient
dev.warrant.WarrantClient
-
Field Summary
Fields inherited from class dev.warrant.WarrantBaseClient
SDK_VERSION, USER_AGENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignFeatureToPricingTier(Feature feature, PricingTier pricingTier) assignFeatureToPricingTier(String featureId, String pricingTierId) assignFeatureToTenant(Feature feature, Tenant tenant) assignFeatureToTenant(String featureId, String tenantId) assignFeatureToUser(Feature feature, User user) assignFeatureToUser(String featureId, String userId) assignPermissionToRole(Permission permission, Role role) assignPermissionToRole(String permissionId, String roleId) assignPermissionToUser(Permission permission, User user) assignPermissionToUser(String permissionId, String userId) assignPricingTierToTenant(PricingTier pricingTier, Tenant tenant) assignPricingTierToTenant(String pricingTierId, String tenantId) assignPricingTierToUser(PricingTier pricingTier, User user) assignPricingTierToUser(String pricingTierId, String userId) assignRoleToUser(Role role, User user) assignRoleToUser(String roleId, String userId) assignUserToTenant(User user, Tenant tenant) assignUserToTenant(String userId, String tenantId) booleancheckTenantHasFeature(Tenant tenant, String featureId) booleancheckTenantHasFeature(String tenantId, String featureId) booleancheckUserHasFeature(User user, String featureId) booleancheckUserHasFeature(String userId, String featureId) booleancheckUserHasPermission(User user, String permissionId) booleancheckUserHasPermission(String userId, String permissionId) createFeature(Feature feature) createPermission(Permission permission) createPricingTier(PricingTier pricingTier) createRole(Role role) createTenant(Tenant tenant) Tenant[]createTenants(Tenant[] tenants) createUser(User user) User[]createUsers(User[] users) voiddeleteFeature(Feature feature) voiddeleteFeature(String featureId) voiddeletePermission(Permission permission) voiddeletePermission(String permissionId) voiddeletePricingTier(PricingTier pricingTier) voiddeletePricingTier(String pricingTierId) voiddeleteRole(Role role) voiddeleteRole(String roleId) voiddeleteTenant(Tenant tenant) voiddeleteTenant(String tenantId) voiddeleteUser(User user) voiddeleteUser(String userId) getFeature(String featureId) getPermission(String permissionId) getPricingTier(String pricingTierId) Feature[]listFeatures(int limit, int page) Feature[]listFeatures(ListParams listParams) Feature[]listFeaturesForPricingTier(PricingTier pricingTier, int limit, int page) Feature[]listFeaturesForPricingTier(String pricingTierId, int limit, int page) Feature[]listFeaturesForTenant(Tenant tenant, int limit, int page) Feature[]listFeaturesForTenant(String tenantId, int limit, int page) Feature[]listFeaturesForUser(User user, int limit, int page) Feature[]listFeaturesForUser(String userId, int limit, int page) listPermissions(int limit, int page) listPermissions(ListParams listParams) listPermissionsForRole(Role role, int limit, int page) listPermissionsForRole(String roleId, int limit, int page) listPermissionsForUser(User user, int limit, int page) listPermissionsForUser(String userId, int limit, int page) listPricingTiers(int limit, int page) listPricingTiers(ListParams listParams) listPricingTiersForTenant(Tenant tenant, int limit, int page) listPricingTiersForTenant(String tenantId, int limit, int page) listPricingTiersForUser(User user, int limit, int page) listPricingTiersForUser(String userId, int limit, int page) Role[]listRoles(int limit, int page) Role[]listRoles(ListParams listParams) Role[]listRolesForUser(User user, int limit, int page) Role[]listRolesForUser(String userId, int limit, int page) Tenant[]listTenants(int limit, int page) Tenant[]listTenants(ListParams listParams) Tenant[]listTenantsForUser(User user, int limit, int page) Tenant[]listTenantsForUser(User user, ListParams listParams) Tenant[]listTenantsForUser(String userId, int limit, int page) Tenant[]listTenantsForUser(String userId, ListParams listParams) User[]listUsers(int limit, int page) User[]listUsers(ListParams listParams) User[]listUsersForTenant(Tenant tenant, int limit, int page) User[]listUsersForTenant(Tenant tenant, ListParams listParams) User[]listUsersForTenant(String tenantId, int limit, int page) User[]listUsersForTenant(String tenantId, ListParams listParams) voidremoveFeatureFromPricingTier(Feature feature, PricingTier pricingTier) voidremoveFeatureFromPricingTier(String featureId, String pricingTierId) voidremoveFeatureFromTenant(Feature feature, Tenant tenant) voidremoveFeatureFromTenant(String featureId, String tenantId) voidremoveFeatureFromUser(Feature feature, User user) voidremoveFeatureFromUser(String featureId, String userId) voidremovePermissionFromRole(Permission permission, Role role) voidremovePermissionFromRole(String permissionId, String roleId) voidremovePermissionFromUser(Permission permission, User user) voidremovePermissionFromUser(String permissionId, String userId) voidremovePricingTierFromTenant(PricingTier pricingTier, Tenant tenant) voidremovePricingTierFromTenant(String pricingTierId, String tenantId) voidremovePricingTierFromUser(PricingTier pricingTier, User user) voidremovePricingTierFromUser(String pricingTierId, String userId) voidremoveRoleFromUser(Role role, User user) voidremoveRoleFromUser(String roleId, String userId) voidremoveUserFromTenant(User user, Tenant tenant) voidremoveUserFromTenant(String userId, String tenantId) updatePermission(String permissionId, Permission toUpdate) updateRole(String roleId, Role toUpdate) updateTenant(String tenantId, Tenant toUpdate) updateUser(String userId, User toUpdate) Methods inherited from class dev.warrant.WarrantBaseClient
check, check, createUserAuthzSession, createUserSelfServiceDashboardUrl, createWarrant, createWarrant, deleteWarrant, deleteWarrant, queryWarrants
-
Constructor Details
-
WarrantClient
-
-
Method Details
-
createUser
- Throws:
WarrantException
-
createUser
- Throws:
WarrantException
-
createUsers
- Throws:
WarrantException
-
updateUser
- Throws:
WarrantException
-
deleteUser
- Throws:
WarrantException
-
deleteUser
- Throws:
WarrantException
-
getUser
- Throws:
WarrantException
-
listUsers
- Throws:
WarrantException
-
listUsers
- Throws:
WarrantException
-
listUsersForTenant
- Throws:
WarrantException
-
listUsersForTenant
- Throws:
WarrantException
-
listUsersForTenant
- Throws:
WarrantException
-
listUsersForTenant
- Throws:
WarrantException
-
createTenant
- Throws:
WarrantException
-
createTenant
- Throws:
WarrantException
-
createTenants
- Throws:
WarrantException
-
updateTenant
- Throws:
WarrantException
-
deleteTenant
- Throws:
WarrantException
-
deleteTenant
- Throws:
WarrantException
-
getTenant
- Throws:
WarrantException
-
listTenants
- Throws:
WarrantException
-
listTenants
- Throws:
WarrantException
-
listTenantsForUser
- Throws:
WarrantException
-
listTenantsForUser
- Throws:
WarrantException
-
listTenantsForUser
- Throws:
WarrantException
-
listTenantsForUser
- Throws:
WarrantException
-
createRole
- Throws:
WarrantException
-
updateRole
- Throws:
WarrantException
-
deleteRole
- Throws:
WarrantException
-
deleteRole
- Throws:
WarrantException
-
getRole
- Throws:
WarrantException
-
listRoles
- Throws:
WarrantException
-
listRoles
- Throws:
WarrantException
-
listRolesForUser
- Throws:
WarrantException
-
listRolesForUser
- Throws:
WarrantException
-
createPermission
- Throws:
WarrantException
-
updatePermission
public Permission updatePermission(String permissionId, Permission toUpdate) throws WarrantException - Throws:
WarrantException
-
deletePermission
- Throws:
WarrantException
-
deletePermission
- Throws:
WarrantException
-
getPermission
- Throws:
WarrantException
-
listPermissions
- Throws:
WarrantException
-
listPermissions
- Throws:
WarrantException
-
listPermissionsForUser
- Throws:
WarrantException
-
listPermissionsForUser
public Permission[] listPermissionsForUser(String userId, int limit, int page) throws WarrantException - Throws:
WarrantException
-
listPermissionsForRole
- Throws:
WarrantException
-
listPermissionsForRole
public Permission[] listPermissionsForRole(String roleId, int limit, int page) throws WarrantException - Throws:
WarrantException
-
createFeature
- Throws:
WarrantException
-
deleteFeature
- Throws:
WarrantException
-
deleteFeature
- Throws:
WarrantException
-
getFeature
- Throws:
WarrantException
-
listFeatures
- Throws:
WarrantException
-
listFeatures
- Throws:
WarrantException
-
listFeaturesForUser
- Throws:
WarrantException
-
listFeaturesForUser
- Throws:
WarrantException
-
listFeaturesForTenant
- Throws:
WarrantException
-
listFeaturesForTenant
public Feature[] listFeaturesForTenant(String tenantId, int limit, int page) throws WarrantException - Throws:
WarrantException
-
listFeaturesForPricingTier
public Feature[] listFeaturesForPricingTier(PricingTier pricingTier, int limit, int page) throws WarrantException - Throws:
WarrantException
-
listFeaturesForPricingTier
public Feature[] listFeaturesForPricingTier(String pricingTierId, int limit, int page) throws WarrantException - Throws:
WarrantException
-
createPricingTier
- Throws:
WarrantException
-
deletePricingTier
- Throws:
WarrantException
-
deletePricingTier
- Throws:
WarrantException
-
getPricingTier
- Throws:
WarrantException
-
listPricingTiers
- Throws:
WarrantException
-
listPricingTiers
- Throws:
WarrantException
-
listPricingTiersForTenant
public PricingTier[] listPricingTiersForTenant(Tenant tenant, int limit, int page) throws WarrantException - Throws:
WarrantException
-
listPricingTiersForTenant
public PricingTier[] listPricingTiersForTenant(String tenantId, int limit, int page) throws WarrantException - Throws:
WarrantException
-
listPricingTiersForUser
public PricingTier[] listPricingTiersForUser(User user, int limit, int page) throws WarrantException - Throws:
WarrantException
-
listPricingTiersForUser
public PricingTier[] listPricingTiersForUser(String userId, int limit, int page) throws WarrantException - Throws:
WarrantException
-
assignRoleToUser
- Throws:
WarrantException
-
assignRoleToUser
- Throws:
WarrantException
-
assignPermissionToUser
- Throws:
WarrantException
-
assignPermissionToUser
- Throws:
WarrantException
-
assignPricingTierToUser
- Throws:
WarrantException
-
assignPricingTierToUser
- Throws:
WarrantException
-
assignFeatureToUser
- Throws:
WarrantException
-
assignFeatureToUser
- Throws:
WarrantException
-
assignUserToTenant
- Throws:
WarrantException
-
assignUserToTenant
- Throws:
WarrantException
-
assignPricingTierToTenant
public Warrant assignPricingTierToTenant(PricingTier pricingTier, Tenant tenant) throws WarrantException - Throws:
WarrantException
-
assignPricingTierToTenant
public Warrant assignPricingTierToTenant(String pricingTierId, String tenantId) throws WarrantException - Throws:
WarrantException
-
assignFeatureToTenant
- Throws:
WarrantException
-
assignFeatureToTenant
- Throws:
WarrantException
-
assignFeatureToPricingTier
public Warrant assignFeatureToPricingTier(Feature feature, PricingTier pricingTier) throws WarrantException - Throws:
WarrantException
-
assignFeatureToPricingTier
public Warrant assignFeatureToPricingTier(String featureId, String pricingTierId) throws WarrantException - Throws:
WarrantException
-
assignPermissionToRole
- Throws:
WarrantException
-
assignPermissionToRole
- Throws:
WarrantException
-
removeRoleFromUser
- Throws:
WarrantException
-
removeRoleFromUser
- Throws:
WarrantException
-
removePermissionFromUser
- Throws:
WarrantException
-
removePermissionFromUser
- Throws:
WarrantException
-
removePricingTierFromUser
- Throws:
WarrantException
-
removePricingTierFromUser
- Throws:
WarrantException
-
removeFeatureFromUser
- Throws:
WarrantException
-
removeFeatureFromUser
- Throws:
WarrantException
-
removeUserFromTenant
- Throws:
WarrantException
-
removeUserFromTenant
- Throws:
WarrantException
-
removePricingTierFromTenant
public void removePricingTierFromTenant(PricingTier pricingTier, Tenant tenant) throws WarrantException - Throws:
WarrantException
-
removePricingTierFromTenant
public void removePricingTierFromTenant(String pricingTierId, String tenantId) throws WarrantException - Throws:
WarrantException
-
removeFeatureFromTenant
- Throws:
WarrantException
-
removeFeatureFromTenant
- Throws:
WarrantException
-
removeFeatureFromPricingTier
public void removeFeatureFromPricingTier(Feature feature, PricingTier pricingTier) throws WarrantException - Throws:
WarrantException
-
removeFeatureFromPricingTier
public void removeFeatureFromPricingTier(String featureId, String pricingTierId) throws WarrantException - Throws:
WarrantException
-
removePermissionFromRole
- Throws:
WarrantException
-
removePermissionFromRole
- Throws:
WarrantException
-
checkUserHasPermission
- Throws:
WarrantException
-
checkUserHasPermission
- Throws:
WarrantException
-
checkTenantHasFeature
- Throws:
WarrantException
-
checkTenantHasFeature
- Throws:
WarrantException
-
checkUserHasFeature
- Throws:
WarrantException
-
checkUserHasFeature
- Throws:
WarrantException
-