mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
commit
6134f94e3c
@ -41,16 +41,13 @@ import java.util.List;
|
|||||||
public class Profiles {
|
public class Profiles {
|
||||||
|
|
||||||
@XmlElement(name = "Profile")
|
@XmlElement(name = "Profile")
|
||||||
protected List<String> profile;
|
protected List<String> profile = new ArrayList<String>();;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the value of the profile property.
|
* Gets the value of the profile property.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public List<String> getProfile() {
|
public List<String> getProfile() {
|
||||||
if (profile == null) {
|
|
||||||
profile = new ArrayList<String>();
|
|
||||||
}
|
|
||||||
return this.profile;
|
return this.profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ public class FilteringUtil {
|
|||||||
* This is used to filter from the cached policies.
|
* This is used to filter from the cached policies.
|
||||||
*/
|
*/
|
||||||
public static <T> List<T> getFilteredList(List<T> sourceList, int offset, int limit) {
|
public static <T> List<T> getFilteredList(List<T> sourceList, int offset, int limit) {
|
||||||
if(sourceList == null || sourceList.size() < offset){
|
if (sourceList == null || sourceList.size() < offset) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
return sourceList.subList(offset, Math.min(offset + limit, sourceList.size()));
|
return sourceList.subList(offset, Math.min(offset + limit, sourceList.size()));
|
||||||
|
|||||||
@ -81,7 +81,7 @@ public class JWTClientManagerServiceImpl implements JWTClientManagerService {
|
|||||||
addJWTClient(tenantDomain, jwtClient);
|
addJWTClient(tenantDomain, jwtClient);
|
||||||
} catch (JWTClientAlreadyExistsException e) {
|
} catch (JWTClientAlreadyExistsException e) {
|
||||||
log.warn("Attempting to register a jwt client for the tenant " + tenantDomain +
|
log.warn("Attempting to register a jwt client for the tenant " + tenantDomain +
|
||||||
" when one already exists. Returning existing jwt client");
|
" when one already exists. Returning existing jwt client", e);
|
||||||
return getJWTClient(tenantDomain);
|
return getJWTClient(tenantDomain);
|
||||||
} catch (JWTClientConfigurationException e) {
|
} catch (JWTClientConfigurationException e) {
|
||||||
throw new JWTClientException("Failed to parse jwt configuration for tenant " + tenantDomain, e);
|
throw new JWTClientException("Failed to parse jwt configuration for tenant " + tenantDomain, e);
|
||||||
@ -110,7 +110,7 @@ public class JWTClientManagerServiceImpl implements JWTClientManagerService {
|
|||||||
addJWTClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME, defaultJWTClient);
|
addJWTClient(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME, defaultJWTClient);
|
||||||
} catch (JWTClientAlreadyExistsException e) {
|
} catch (JWTClientAlreadyExistsException e) {
|
||||||
log.warn("Attempting to register a jwt client for the super tenant" +
|
log.warn("Attempting to register a jwt client for the super tenant" +
|
||||||
" when one already exists. Returning existing jwt client");
|
" when one already exists. Returning existing jwt client", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user