Search in sources :

Example 1 with CategoryRes

use of org.wso2.identity.integration.test.rest.api.server.identity.governance.v1.dto.CategoryRes in project identity-api-server by wso2.

the class ServerIdentityGovernanceService method getGovernanceConnectorCategory.

/**
 * Get governance connector category.
 *
 * @param categoryId Governance connector category id.
 * @return List of governance connectors for the give id.
 */
public CategoryRes getGovernanceConnectorCategory(String categoryId) {
    List<ConnectorRes> connectors = getGovernanceConnectorsByCategory(categoryId);
    String categoryName = new String(Base64.getUrlDecoder().decode(categoryId), StandardCharsets.UTF_8);
    CategoryRes category = new CategoryRes();
    category.setConnectors(connectors);
    category.setName(categoryName);
    return category;
}
Also used : CategoryRes(org.wso2.carbon.identity.api.server.identity.governance.v1.model.CategoryRes) ConnectorRes(org.wso2.carbon.identity.api.server.identity.governance.v1.model.ConnectorRes)

Aggregations

CategoryRes (org.wso2.carbon.identity.api.server.identity.governance.v1.model.CategoryRes)1 ConnectorRes (org.wso2.carbon.identity.api.server.identity.governance.v1.model.ConnectorRes)1