mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/wso2/carbon-device-mgt into apim
This commit is contained in:
commit
5ccc480ddb
@ -116,7 +116,7 @@ public abstract class AbstractGadgetDataServiceDAO implements GadgetDataServiceD
|
|||||||
public DeviceCountByGroupEntry getFeatureNonCompliantDeviceCount(String nonCompliantFeatureCode,
|
public DeviceCountByGroupEntry getFeatureNonCompliantDeviceCount(String nonCompliantFeatureCode,
|
||||||
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ public abstract class AbstractGadgetDataServiceDAO implements GadgetDataServiceD
|
|||||||
getFeatureNonCompliantDeviceCountsByPlatforms(String nonCompliantFeatureCode,
|
getFeatureNonCompliantDeviceCountsByPlatforms(String nonCompliantFeatureCode,
|
||||||
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -416,7 +416,7 @@ public abstract class AbstractGadgetDataServiceDAO implements GadgetDataServiceD
|
|||||||
getFeatureNonCompliantDeviceCountsByOwnershipTypes(String nonCompliantFeatureCode,
|
getFeatureNonCompliantDeviceCountsByOwnershipTypes(String nonCompliantFeatureCode,
|
||||||
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,7 +531,7 @@ public abstract class AbstractGadgetDataServiceDAO implements GadgetDataServiceD
|
|||||||
public List<DetailedDeviceEntry> getFeatureNonCompliantDevicesWithDetails(String nonCompliantFeatureCode,
|
public List<DetailedDeviceEntry> getFeatureNonCompliantDevicesWithDetails(String nonCompliantFeatureCode,
|
||||||
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
FilterSet filterSet) throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -188,7 +188,7 @@ public class GenericGadgetDataServiceDAOImpl extends AbstractGadgetDataServiceDA
|
|||||||
FilterSet filterSet, int startIndex, int resultCount)
|
FilterSet filterSet, int startIndex, int resultCount)
|
||||||
throws InvalidParameterValueException, SQLException {
|
throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -190,7 +190,7 @@ public class MSSQLGadgetDataServiceDAOImpl extends AbstractGadgetDataServiceDAO
|
|||||||
FilterSet filterSet, int startIndex, int resultCount)
|
FilterSet filterSet, int startIndex, int resultCount)
|
||||||
throws InvalidParameterValueException, SQLException {
|
throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -190,7 +190,7 @@ public class OracleGadgetDataServiceDAOImpl extends AbstractGadgetDataServiceDAO
|
|||||||
FilterSet filterSet, int startIndex, int resultCount)
|
FilterSet filterSet, int startIndex, int resultCount)
|
||||||
throws InvalidParameterValueException, SQLException {
|
throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -188,7 +188,7 @@ public class PostgreSQLGadgetDataServiceDAOImpl extends AbstractGadgetDataServic
|
|||||||
FilterSet filterSet, int startIndex, int resultCount)
|
FilterSet filterSet, int startIndex, int resultCount)
|
||||||
throws InvalidParameterValueException, SQLException {
|
throws InvalidParameterValueException, SQLException {
|
||||||
|
|
||||||
if (nonCompliantFeatureCode == null || "".equals(nonCompliantFeatureCode)) {
|
if (nonCompliantFeatureCode == null || nonCompliantFeatureCode.isEmpty()) {
|
||||||
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
throw new InvalidParameterValueException("Non-compliant feature code should not be either null or empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,7 @@ import org.wso2.carbon.device.mgt.core.app.mgt.config.AppManagementConfig;
|
|||||||
import org.wso2.carbon.device.mgt.core.config.license.LicenseConfig;
|
import org.wso2.carbon.device.mgt.core.config.license.LicenseConfig;
|
||||||
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
|
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
|
||||||
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
|
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
|
||||||
|
import org.wso2.carbon.email.sender.core.service.EmailSenderService;
|
||||||
import org.wso2.carbon.ntask.core.service.TaskService;
|
import org.wso2.carbon.ntask.core.service.TaskService;
|
||||||
import org.wso2.carbon.registry.core.service.RegistryService;
|
import org.wso2.carbon.registry.core.service.RegistryService;
|
||||||
import org.wso2.carbon.user.core.service.RealmService;
|
import org.wso2.carbon.user.core.service.RealmService;
|
||||||
@ -36,6 +37,7 @@ import java.util.HashMap;
|
|||||||
|
|
||||||
public class DeviceManagementDataHolder {
|
public class DeviceManagementDataHolder {
|
||||||
|
|
||||||
|
private static DeviceManagementDataHolder thisInstance = new DeviceManagementDataHolder();
|
||||||
private RealmService realmService;
|
private RealmService realmService;
|
||||||
private TenantManager tenantManager;
|
private TenantManager tenantManager;
|
||||||
private DeviceManagementProviderService deviceManagerProvider;
|
private DeviceManagementProviderService deviceManagerProvider;
|
||||||
@ -49,12 +51,8 @@ public class DeviceManagementDataHolder {
|
|||||||
private HashMap<String,Boolean> requireDeviceAuthorization = new HashMap<>();
|
private HashMap<String,Boolean> requireDeviceAuthorization = new HashMap<>();
|
||||||
private DeviceAccessAuthorizationService deviceAccessAuthorizationService;
|
private DeviceAccessAuthorizationService deviceAccessAuthorizationService;
|
||||||
private GroupManagementProviderService groupManagementProviderService;
|
private GroupManagementProviderService groupManagementProviderService;
|
||||||
|
|
||||||
private TaskService taskService;
|
private TaskService taskService;
|
||||||
//private EmailSenderService emailSenderService;
|
private EmailSenderService emailSenderService;
|
||||||
|
|
||||||
|
|
||||||
private static DeviceManagementDataHolder thisInstance = new DeviceManagementDataHolder();
|
|
||||||
|
|
||||||
private DeviceManagementDataHolder() {}
|
private DeviceManagementDataHolder() {}
|
||||||
|
|
||||||
@ -74,6 +72,10 @@ public class DeviceManagementDataHolder {
|
|||||||
this.setTenantManager(realmService);
|
this.setTenantManager(realmService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TenantManager getTenantManager() {
|
||||||
|
return tenantManager;
|
||||||
|
}
|
||||||
|
|
||||||
private void setTenantManager(RealmService realmService) {
|
private void setTenantManager(RealmService realmService) {
|
||||||
if (realmService == null) {
|
if (realmService == null) {
|
||||||
throw new IllegalStateException("Realm service is not initialized properly");
|
throw new IllegalStateException("Realm service is not initialized properly");
|
||||||
@ -81,10 +83,6 @@ public class DeviceManagementDataHolder {
|
|||||||
this.tenantManager = realmService.getTenantManager();
|
this.tenantManager = realmService.getTenantManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
public TenantManager getTenantManager() {
|
|
||||||
return tenantManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
public DeviceManagementProviderService getDeviceManagementProvider() {
|
public DeviceManagementProviderService getDeviceManagementProvider() {
|
||||||
return deviceManagerProvider;
|
return deviceManagerProvider;
|
||||||
}
|
}
|
||||||
@ -189,13 +187,13 @@ public class DeviceManagementDataHolder {
|
|||||||
public void setTaskService(TaskService taskService) {
|
public void setTaskService(TaskService taskService) {
|
||||||
this.taskService = taskService;
|
this.taskService = taskService;
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// public EmailSenderService getEmailSenderService() {
|
public EmailSenderService getEmailSenderService() {
|
||||||
// return emailSenderService;
|
return emailSenderService;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// public void setEmailSenderService(EmailSenderService emailSenderService) {
|
public void setEmailSenderService(EmailSenderService emailSenderService) {
|
||||||
// this.emailSenderService = emailSenderService;
|
this.emailSenderService = emailSenderService;
|
||||||
// }
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,6 +54,7 @@ import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceIm
|
|||||||
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
|
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
|
||||||
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderServiceImpl;
|
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderServiceImpl;
|
||||||
import org.wso2.carbon.device.mgt.core.util.DeviceManagementSchemaInitializer;
|
import org.wso2.carbon.device.mgt.core.util.DeviceManagementSchemaInitializer;
|
||||||
|
import org.wso2.carbon.email.sender.core.service.EmailSenderService;
|
||||||
import org.wso2.carbon.ndatasource.core.DataSourceService;
|
import org.wso2.carbon.ndatasource.core.DataSourceService;
|
||||||
import org.wso2.carbon.registry.core.service.RegistryService;
|
import org.wso2.carbon.registry.core.service.RegistryService;
|
||||||
import org.wso2.carbon.user.core.service.RealmService;
|
import org.wso2.carbon.user.core.service.RealmService;
|
||||||
@ -100,6 +101,12 @@ import java.util.List;
|
|||||||
* policy="dynamic"
|
* policy="dynamic"
|
||||||
* bind="setConfigurationContextService"
|
* bind="setConfigurationContextService"
|
||||||
* unbind="unsetConfigurationContextService"
|
* unbind="unsetConfigurationContextService"
|
||||||
|
* @scr.reference name="email.sender.service"
|
||||||
|
* interface="org.wso2.carbon.email.sender.core.service.EmailSenderService"
|
||||||
|
* cardinality="0..1"
|
||||||
|
* policy="dynamic"
|
||||||
|
* bind="setEmailSenderService"
|
||||||
|
* unbind="unsetEmailSenderService"
|
||||||
*/
|
*/
|
||||||
public class DeviceManagementServiceComponent {
|
public class DeviceManagementServiceComponent {
|
||||||
|
|
||||||
@ -360,4 +367,18 @@ public class DeviceManagementServiceComponent {
|
|||||||
DeviceManagementDataHolder.getInstance().setConfigurationContextService(null);
|
DeviceManagementDataHolder.getInstance().setConfigurationContextService(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void setEmailSenderService(EmailSenderService emailSenderService) {
|
||||||
|
if (log.isDebugEnabled()) {
|
||||||
|
log.debug("Setting Email Sender Service");
|
||||||
|
}
|
||||||
|
DeviceManagementDataHolder.getInstance().setEmailSenderService(emailSenderService);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void unsetEmailSenderService(EmailSenderService emailSenderService) {
|
||||||
|
if (log.isDebugEnabled()) {
|
||||||
|
log.debug("Un-setting Email Sender Service");
|
||||||
|
}
|
||||||
|
DeviceManagementDataHolder.getInstance().setEmailSenderService(null);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,6 +47,9 @@ import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder;
|
|||||||
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementServiceComponent;
|
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementServiceComponent;
|
||||||
import org.wso2.carbon.device.mgt.core.internal.PluginInitializationListener;
|
import org.wso2.carbon.device.mgt.core.internal.PluginInitializationListener;
|
||||||
import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil;
|
import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil;
|
||||||
|
import org.wso2.carbon.email.sender.core.ContentProviderInfo;
|
||||||
|
import org.wso2.carbon.email.sender.core.EmailContext;
|
||||||
|
import org.wso2.carbon.email.sender.core.EmailSendingFailedException;
|
||||||
import org.wso2.carbon.email.sender.core.TypedValue;
|
import org.wso2.carbon.email.sender.core.TypedValue;
|
||||||
import org.wso2.carbon.user.api.UserStoreException;
|
import org.wso2.carbon.user.api.UserStoreException;
|
||||||
|
|
||||||
@ -540,14 +543,14 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpsUrl()));
|
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpsUrl()));
|
||||||
params.put(org.wso2.carbon.device.mgt.core.DeviceManagementConstants.EmailAttributes.SERVER_BASE_URL_HTTP,
|
params.put(org.wso2.carbon.device.mgt.core.DeviceManagementConstants.EmailAttributes.SERVER_BASE_URL_HTTP,
|
||||||
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpUrl()));
|
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpUrl()));
|
||||||
// try {
|
try {
|
||||||
// EmailContext ctx =
|
EmailContext ctx =
|
||||||
// new EmailContext.EmailContextBuilder(new ContentProviderInfo("user-enrollment", params),
|
new EmailContext.EmailContextBuilder(new ContentProviderInfo("user-enrollment", params),
|
||||||
// metaInfo.getRecipients()).build();
|
metaInfo.getRecipients()).build();
|
||||||
//// DeviceManagementDataHolder.getInstance().getEmailSenderService().sendEmail(ctx);
|
DeviceManagementDataHolder.getInstance().getEmailSenderService().sendEmail(ctx);
|
||||||
// } catch (EmailSendingFailedException e) {
|
} catch (EmailSendingFailedException e) {
|
||||||
// throw new DeviceManagementException("Error occurred while sending enrollment invitation", e);
|
throw new DeviceManagementException("Error occurred while sending enrollment invitation", e);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -565,14 +568,14 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpsUrl()));
|
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpsUrl()));
|
||||||
params.put(org.wso2.carbon.device.mgt.core.DeviceManagementConstants.EmailAttributes.SERVER_BASE_URL_HTTP,
|
params.put(org.wso2.carbon.device.mgt.core.DeviceManagementConstants.EmailAttributes.SERVER_BASE_URL_HTTP,
|
||||||
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpUrl()));
|
new TypedValue<Class<?>, Object>(String.class, DeviceManagerUtil.getServerBaseHttpUrl()));
|
||||||
// try {
|
try {
|
||||||
// EmailContext ctx =
|
EmailContext ctx =
|
||||||
// new EmailContext.EmailContextBuilder(new ContentProviderInfo("user-registration", params),
|
new EmailContext.EmailContextBuilder(new ContentProviderInfo("user-registration", params),
|
||||||
// metaInfo.getRecipients()).build();
|
metaInfo.getRecipients()).build();
|
||||||
// DeviceManagementDataHolder.getInstance().getEmailSenderService().sendEmail(ctx);
|
DeviceManagementDataHolder.getInstance().getEmailSenderService().sendEmail(ctx);
|
||||||
// } catch (EmailSendingFailedException e) {
|
} catch (EmailSendingFailedException e) {
|
||||||
// throw new DeviceManagementException("Error occurred while sending user registration notification", e);
|
throw new DeviceManagementException("Error occurred while sending user registration notification", e);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -1,62 +0,0 @@
|
|||||||
<%
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
||||||
*
|
|
||||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
|
||||||
* Version 2.0 (the "License"); you may not use this file except
|
|
||||||
* in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
||||||
* either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
var uri = request.getRequestURI();
|
|
||||||
var uriMatcher = new URIMatcher(String(uri));
|
|
||||||
|
|
||||||
var log = new Log("/api/operation-api.jag");
|
|
||||||
|
|
||||||
var utility = require('/app/modules/utility.js').utility;
|
|
||||||
var constants = require('/app/modules/constants.js');
|
|
||||||
var operationModule = require("/app/modules/operation.js").operationModule;
|
|
||||||
|
|
||||||
response.contentType = 'application/json';
|
|
||||||
|
|
||||||
var user = session.get(constants.USER_SESSION_KEY);
|
|
||||||
|
|
||||||
var result;
|
|
||||||
|
|
||||||
if (!user) {
|
|
||||||
response.sendRedirect("/devicemgt/login?#login-required");
|
|
||||||
exit();
|
|
||||||
} else {
|
|
||||||
if (uriMatcher.match("/{context}/api/operations/{deviceType}/stats")) {
|
|
||||||
var deviceType = uriMatcher.elements().deviceType;
|
|
||||||
var deviceId = request.getParameter("deviceId");
|
|
||||||
var monitorOperations = operationModule.getMonitorOperations(deviceType);
|
|
||||||
var stats = [];
|
|
||||||
result = {};
|
|
||||||
for (var op in monitorOperations) {
|
|
||||||
result = operationModule.handleGETOperation(deviceType, monitorOperations[op].operation, monitorOperations[op].name, deviceId);
|
|
||||||
stats.push(result.data);
|
|
||||||
}
|
|
||||||
result.data = stats;
|
|
||||||
} else if (uriMatcher.match("/{context}/api/operations/{deviceType}/{operation}")) {
|
|
||||||
var deviceType = uriMatcher.elements().deviceType;
|
|
||||||
var operation = uriMatcher.elements().operation;
|
|
||||||
var deviceId = request.getParameter("deviceId");
|
|
||||||
var params = request.getAllParameters();
|
|
||||||
result = operationModule.handlePOSTOperation(deviceType, operation, deviceId, params);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// returning the result.
|
|
||||||
if (result) {
|
|
||||||
print(result);
|
|
||||||
}
|
|
||||||
%>
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
<%
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
||||||
*
|
|
||||||
* WSO2 Inc. licenses this file to you under the Apache License,
|
|
||||||
* Version 2.0 (the "License"); you may not use this file except
|
|
||||||
* in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
var uri = request.getRequestURI();
|
|
||||||
var uriMatcher = new URIMatcher(String(uri));
|
|
||||||
|
|
||||||
var log = new Log("api/policy-api.jag");
|
|
||||||
|
|
||||||
var constants = require("/app/modules/constants.js");
|
|
||||||
var policyModule = require("/app/modules/policy.js").policyModule;
|
|
||||||
|
|
||||||
var deviceType, deviceId;
|
|
||||||
|
|
||||||
var user = session.get(constants.USER_SESSION_KEY);
|
|
||||||
|
|
||||||
var responseProcessor = require('utils').response;
|
|
||||||
response.contentType = 'application/json';
|
|
||||||
|
|
||||||
if (!user) {
|
|
||||||
response = responseProcessor.buildErrorResponse(response, 401, "Unauthorized");
|
|
||||||
} else {
|
|
||||||
if (uriMatcher.match("/{context}/api/policies/add")) {
|
|
||||||
var content = request.getContent();
|
|
||||||
var policyName = content.policyName;
|
|
||||||
var policyDefinition = content.profile.policyDefinition;
|
|
||||||
var policyDescription = content.profile.policyDescription;
|
|
||||||
deviceType = content.profile.deviceType.name;
|
|
||||||
deviceId = content.deviceId;
|
|
||||||
try {
|
|
||||||
response.content = policyModule.addPolicy(policyName, deviceType, policyDefinition,
|
|
||||||
policyDescription, deviceId);
|
|
||||||
} catch (e) {
|
|
||||||
log.error("Exception occurred while trying to add new policy under name:" + policyName, e);
|
|
||||||
// http status code 500 refers to - Internal Server Error.
|
|
||||||
responseProcessor.buildErrorResponse(response, 500, "Internal server error");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%>
|
|
||||||
@ -48,7 +48,8 @@
|
|||||||
<div class="wr-input-control">
|
<div class="wr-input-control">
|
||||||
<button class="wr-btn" id="add-group-btn">
|
<button class="wr-btn" id="add-group-btn">
|
||||||
Add </button>
|
Add </button>
|
||||||
<button class="wr-btn" onclick="history.go(-1)"> Cancel </button>
|
<button class="wr-btn" onclick="window.location = '{{@app.context}}/groups';return false;">
|
||||||
|
Cancel </button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -15,8 +15,7 @@
|
|||||||
<div class="wr-advance-operations">
|
<div class="wr-advance-operations">
|
||||||
<div class="row no-gutter">
|
<div class="row no-gutter">
|
||||||
<div class="wr-hidden-operations-nav col-lg-4">
|
<div class="wr-hidden-operations-nav col-lg-4">
|
||||||
<a href="javascript:void(0)" onclick="showAdvanceOperation('general', this)"
|
<a class="selected">
|
||||||
class="selected">
|
|
||||||
<span class="wr-hidden-operations-icon fw-stack">
|
<span class="wr-hidden-operations-icon fw-stack">
|
||||||
<i class="fw fw-settings fw-stack-2x"></i>
|
<i class="fw fw-settings fw-stack-2x"></i>
|
||||||
</span>
|
</span>
|
||||||
@ -32,7 +31,6 @@
|
|||||||
<div id="general-config-heading" class="panel-heading" role="tab">
|
<div id="general-config-heading" class="panel-heading" role="tab">
|
||||||
<h2 class="sub-title panel-title">
|
<h2 class="sub-title panel-title">
|
||||||
Policy Monitoring
|
Policy Monitoring
|
||||||
<hr>
|
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div id="email-config-body" class="panel-collapse panel-body"
|
<div id="email-config-body" class="panel-collapse panel-body"
|
||||||
@ -88,3 +86,6 @@
|
|||||||
<!-- /content -->
|
<!-- /content -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{#zone "bottomJs"}}
|
||||||
|
{{js "js/platform-configuration.js"}}
|
||||||
|
{{/zone}}
|
||||||
|
|||||||
@ -0,0 +1,120 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||||
|
*
|
||||||
|
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||||
|
* Version 2.0 (the "License"); you may not use this file except
|
||||||
|
* in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
var configParams = {
|
||||||
|
"NOTIFIER_TYPE": "notifierType",
|
||||||
|
"NOTIFIER_FREQUENCY": "notifierFrequency"
|
||||||
|
};
|
||||||
|
|
||||||
|
var responseCodes = {
|
||||||
|
"CREATED": "Created",
|
||||||
|
"SUCCESS": "201",
|
||||||
|
"INTERNAL_SERVER_ERROR": "Internal Server Error"
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if provided input is valid against RegEx input.
|
||||||
|
*
|
||||||
|
* @param regExp Regular expression
|
||||||
|
* @param inputString Input string to check
|
||||||
|
* @returns {boolean} Returns true if input matches RegEx
|
||||||
|
*/
|
||||||
|
function isPositiveInteger(str) {
|
||||||
|
return /^\+?(0|[1-9]\d*)$/.test(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
invokerUtil.get(
|
||||||
|
"/devicemgt_admin/configuration",
|
||||||
|
function (data) {
|
||||||
|
data = JSON.parse(data);
|
||||||
|
if (data && data.configuration) {
|
||||||
|
for (var i = 0; i < data.configuration.length; i++) {
|
||||||
|
var config = data.configuration[i];
|
||||||
|
if (config.name == configParams["NOTIFIER_FREQUENCY"]) {
|
||||||
|
$("input#monitoring-config-frequency").val(config.value / 1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, function (data) {
|
||||||
|
console.log(data);
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Following click function would execute
|
||||||
|
* when a user clicks on "Save" button
|
||||||
|
* on General platform configuration page in WSO2 EMM Console.
|
||||||
|
*/
|
||||||
|
$("button#save-general-btn").click(function () {
|
||||||
|
var notifierFrequency = $("input#monitoring-config-frequency").val();
|
||||||
|
var errorMsgWrapper = "#email-config-error-msg";
|
||||||
|
var errorMsg = "#email-config-error-msg span";
|
||||||
|
|
||||||
|
if (!notifierFrequency) {
|
||||||
|
$(errorMsg).text("Monitoring frequency is a required field. It cannot be empty.");
|
||||||
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
|
} else if (!isPositiveInteger(notifierFrequency)) {
|
||||||
|
$(errorMsg).text("Provided monitoring frequency is invalid. ");
|
||||||
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
|
} else {
|
||||||
|
var addConfigFormData = {};
|
||||||
|
var configList = new Array();
|
||||||
|
|
||||||
|
var monitorFrequency = {
|
||||||
|
"name": configParams["NOTIFIER_FREQUENCY"],
|
||||||
|
"value": String((notifierFrequency * 1000)),
|
||||||
|
"contentType": "text"
|
||||||
|
};
|
||||||
|
|
||||||
|
configList.push(monitorFrequency);
|
||||||
|
addConfigFormData.configuration = configList;
|
||||||
|
|
||||||
|
var addConfigAPI = "/devicemgt_admin/configuration";
|
||||||
|
invokerUtil.post(
|
||||||
|
addConfigAPI,
|
||||||
|
addConfigFormData,
|
||||||
|
function (data) {
|
||||||
|
data = JSON.parse(data);
|
||||||
|
if (data.statusCode == responseCodes["SUCCESS"]) {
|
||||||
|
$("#config-save-form").addClass("hidden");
|
||||||
|
$("#record-created-msg").removeClass("hidden");
|
||||||
|
} else if (data == 500) {
|
||||||
|
$(errorMsg).text("Exception occurred at backend.");
|
||||||
|
} else if (data == 403) {
|
||||||
|
$(errorMsg).text("Action was not permitted.");
|
||||||
|
} else {
|
||||||
|
$(errorMsg).text("An unexpected error occurred.");
|
||||||
|
}
|
||||||
|
|
||||||
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
|
}, function (data) {
|
||||||
|
data = data.status;
|
||||||
|
if (data == 500) {
|
||||||
|
$(errorMsg).text("Exception occurred at backend.");
|
||||||
|
} else if (data == 403) {
|
||||||
|
$(errorMsg).text("Action was not permitted.");
|
||||||
|
} else {
|
||||||
|
$(errorMsg).text("An unexpected error occurred.");
|
||||||
|
}
|
||||||
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -254,7 +254,7 @@ $(document).ready(function () {
|
|||||||
if (data.errorMessage) {
|
if (data.errorMessage) {
|
||||||
$(errorMsg).text("Selected user store prompted an error : " + data.errorMessage);
|
$(errorMsg).text("Selected user store prompted an error : " + data.errorMessage);
|
||||||
$(errorMsgWrapper).removeClass("hidden");
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
} else if (data["status"] == 201) {
|
} else if (data["statusCode"] == 201) {
|
||||||
// Clearing user input fields.
|
// Clearing user input fields.
|
||||||
$("input#username").val("");
|
$("input#username").val("");
|
||||||
$("input#firstname").val("");
|
$("input#firstname").val("");
|
||||||
@ -265,17 +265,17 @@ $(document).ready(function () {
|
|||||||
$("#user-create-form").addClass("hidden");
|
$("#user-create-form").addClass("hidden");
|
||||||
$("#user-created-msg").removeClass("hidden");
|
$("#user-created-msg").removeClass("hidden");
|
||||||
generateQRCode("#user-created-msg .qr-code");
|
generateQRCode("#user-created-msg .qr-code");
|
||||||
} else if (data["status"] == 409) {
|
} else if (data["statusCode"] == 409) {
|
||||||
$(errorMsg).text(data["messageFromServer"]);
|
$(errorMsg).text(data["messageFromServer"]);
|
||||||
$(errorMsgWrapper).removeClass("hidden");
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
} else if (data["status"] == 500) {
|
} else if (data["statusCode"] == 500) {
|
||||||
$(errorMsg).text("An unexpected error occurred at backend server. Please try again later.");
|
$(errorMsg).text("An unexpected error occurred at backend server. Please try again later.");
|
||||||
$(errorMsgWrapper).removeClass("hidden");
|
$(errorMsgWrapper).removeClass("hidden");
|
||||||
}
|
}
|
||||||
}, function (data) {
|
}, function (data) {
|
||||||
if (data["status"] == 409) {
|
if (data["statusCode"] == 409) {
|
||||||
$(errorMsg).text("User : " + username + " already exists. Pick another username.");
|
$(errorMsg).text("User : " + username + " already exists. Pick another username.");
|
||||||
} else if (data["status"] == 500) {
|
} else if (data["statusCode"] == 500) {
|
||||||
$(errorMsg).text("An unexpected error occurred at backend server. Please try again later.");
|
$(errorMsg).text("An unexpected error occurred at backend server. Please try again later.");
|
||||||
} else {
|
} else {
|
||||||
$(errorMsg).text(data.errorMessage);
|
$(errorMsg).text(data.errorMessage);
|
||||||
|
|||||||
@ -11,10 +11,6 @@
|
|||||||
"url": "/api/groups/*",
|
"url": "/api/groups/*",
|
||||||
"path": "/api/group-api.jag"
|
"path": "/api/group-api.jag"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"url": "/api/operations/*",
|
|
||||||
"path": "/api/operation-api.jag"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"url": "/api/policies/*",
|
"url": "/api/policies/*",
|
||||||
"path": "/api/policy-api.jag"
|
"path": "/api/policy-api.jag"
|
||||||
|
|||||||
@ -1,72 +0,0 @@
|
|||||||
#*
|
|
||||||
Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
||||||
|
|
||||||
WSO2 Inc. licenses this file to you under the Apache License,
|
|
||||||
Version 2.0 (the "License"); you may not use this file except
|
|
||||||
in compliance with the License.
|
|
||||||
you may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
*#
|
|
||||||
<EmailConfig>
|
|
||||||
<Subject>You have been invited to enroll your device in WSO2 EMM</Subject>
|
|
||||||
<Body>
|
|
||||||
<![CDATA[
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>WSO2 Enterprise Mobility Manager</title>
|
|
||||||
</head>
|
|
||||||
<body style="color: #666666; background-color:#cdcdcd; padding: 0px; margin: 0px;">
|
|
||||||
<div style="background-color:#cdcdcd; font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; padding: 20px 0px; margin: 0px;">
|
|
||||||
<div style="width: 86%; max-width: 650px; padding: 2%; background-color: #ffffff; margin: auto; border-radius: 14px;">
|
|
||||||
<div style="background-color: #49c8f5; line-height: 0px; border-top-left-radius: 10px; border-top-right-radius: 10px; padding: 0px 10px 0px 0px;">
|
|
||||||
<div style="display: inline-block; line-height: 0px;">
|
|
||||||
<img src="http://b.content.wso2.com/sites/all/2015-june-theme/navigation/wso2-nav-logo.png"
|
|
||||||
alt="WSO2" style="margin: 0px 20px 0px 25px; width: 100%; max-width: 251px;"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="background-color: #ffffff; line-height: 170%; color: #666666; padding: 20px 25px;">
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px 20px;">
|
|
||||||
Hi $first-name,
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
You have been invited to enrol your device in WSO2 Enterprise Mobility Manager.
|
|
||||||
Click <a href="$base-url-https/emm-web-agent/enrollment">here</a> to download the WSO2 EMM client application to begin device
|
|
||||||
enrolment.</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
Should you need assistance, please contact your administrator.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 20px 0px 5px;">
|
|
||||||
Regards,
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
WSO2 EMM Administrator
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div style="background-color: #333333; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;">
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 0px 20px 0px 0px;"><img
|
|
||||||
src="http://b.content.wso2.com/newsletter/images/wso2-logo-cloud-footer.png" alt="WSO2"
|
|
||||||
style="margin: 15px 0px 15px 25px; width: 100%; max-width: 258px;"/></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
]]>
|
|
||||||
</Body>
|
|
||||||
</EmailConfig>
|
|
||||||
@ -1,82 +0,0 @@
|
|||||||
#*
|
|
||||||
Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
||||||
|
|
||||||
WSO2 Inc. licenses this file to you under the Apache License,
|
|
||||||
Version 2.0 (the "License"); you may not use this file except
|
|
||||||
in compliance with the License.
|
|
||||||
you may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
|
||||||
software distributed under the License is distributed on an
|
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, either express or implied. See the License for the
|
|
||||||
specific language governing permissions and limitations
|
|
||||||
under the License.
|
|
||||||
*#
|
|
||||||
<EmailConfig>
|
|
||||||
<Subject>You have successfully been registered in WSO2 EMM</Subject>
|
|
||||||
<Body>
|
|
||||||
<![CDATA[
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>WSO2 Enterprise Mobility Manager</title>
|
|
||||||
</head>
|
|
||||||
<body style="color: #666666; background-color:#cdcdcd; padding: 0px; margin: 0px;">
|
|
||||||
<div style="background-color:#cdcdcd; font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; padding: 20px 0px; margin: 0px;">
|
|
||||||
<div style="width: 86%; max-width: 650px; padding: 2%; background-color: #ffffff; margin: auto; border-radius: 14px;">
|
|
||||||
<div style="background-color: #49c8f5; line-height: 0px; border-top-left-radius: 10px; border-top-right-radius: 10px; padding: 0px 10px 0px 0px;">
|
|
||||||
<div style="display: inline-block; line-height: 0px;">
|
|
||||||
<img src="http://b.content.wso2.com/sites/all/2015-june-theme/navigation/wso2-nav-logo.png"
|
|
||||||
alt="WSO2" style="margin: 0px 20px 0px 25px; width: 100%; max-width: 251px;"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="background-color: #ffffff; line-height: 170%; color: #666666; padding: 20px 25px;">
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px 20px;">
|
|
||||||
Hi $first-name,
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
You have been registered in WSO2 Enterprise Mobility Manager and invited to enrol your device.
|
|
||||||
Click <a href="$base-url-https/emm-web-agent/enrollment">here</a> to download the WSO2 EMM client application to begin device
|
|
||||||
enrolment.</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
Use following credentials to log in to WSO2 EMM client application.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
<b>Username:</b> $username
|
|
||||||
<br/>
|
|
||||||
<b>Password:</b> $password
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
Should you need assistance, please contact your administrator.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 20px 0px 5px;">
|
|
||||||
Regards,
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="font-size: 1em; font-family: Arial, Helvetica; line-height: 170%; color: #666666; margin: 5px 0px;">
|
|
||||||
WSO2 EMM Administrator
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div style="background-color: #333333; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;">
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 0px 20px 0px 0px;"><img
|
|
||||||
src="http://b.content.wso2.com/newsletter/images/wso2-logo-cloud-footer.png" alt="WSO2"
|
|
||||||
style="margin: 15px 0px 15px 25px; width: 100%; max-width: 258px;"/></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
]]>
|
|
||||||
</Body>
|
|
||||||
</EmailConfig>
|
|
||||||
@ -4,4 +4,3 @@ org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../featur
|
|||||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/conf/remote-appmanager-config.xml,target:${installFolder}/../../conf/etc/remote-appmanager-config.xml,overwrite:true);\
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/conf/remote-appmanager-config.xml,target:${installFolder}/../../conf/etc/remote-appmanager-config.xml,overwrite:true);\
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/dbscripts/cdm,target:${installFolder}/../../../dbscripts/cdm,overwrite:true);\
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/dbscripts/cdm,target:${installFolder}/../../../dbscripts/cdm,overwrite:true);\
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/rxts/license.rxt,target:${installFolder}/../../../repository/resources/rxts/license.rxt,overwrite:true);\
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/rxts/license.rxt,target:${installFolder}/../../../repository/resources/rxts/license.rxt,overwrite:true);\
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.server_${feature.version}/email/templates,target:${installFolder}/../../../repository/resources/email-templates,overwrite:true);\
|
|
||||||
Loading…
Reference in New Issue
Block a user