public class ScopeMappingUtil extends Object
| Constructor and Description |
|---|
ScopeMappingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getScopePaginatedURL(Integer offset,
Integer limit)
Returns the paginated url for Scopes API
|
static org.wso2.carbon.auth.scope.registration.dto.Scope |
scopeDTOToModel(ScopeDTO scopeDTO)
This method convert the scope DTO to scope model object
|
static ScopeListDTO |
scopeModelListToListDTO(List<org.wso2.carbon.auth.scope.registration.dto.Scope> scopeList,
Integer offset,
Integer limit,
Integer total)
This method convert the scope model object into DTO
|
static ScopeDTO |
scopeModelToDTO(org.wso2.carbon.auth.scope.registration.dto.Scope scope)
This method convert the scope model object into DTO
|
public static ScopeDTO scopeModelToDTO(org.wso2.carbon.auth.scope.registration.dto.Scope scope)
scope - model objectpublic static ScopeListDTO scopeModelListToListDTO(List<org.wso2.carbon.auth.scope.registration.dto.Scope> scopeList, Integer offset, Integer limit, Integer total)
scopeList - model object listoffset - starting indexlimit - total scopes objects in the response arraytotal - total scopes objects available in the systempublic static org.wso2.carbon.auth.scope.registration.dto.Scope scopeDTOToModel(ScopeDTO scopeDTO)
scopeDTO - Scope DTO objectCopyright © 2018 WSO2. All rights reserved.