@@ -0,0 +1,1951 @@
+/*%0A * ********************************************************************************************************************%0A *  %3Cp/%3E%0A *  BACKENDLESS.COM CONFIDENTIAL%0A *  %3Cp/%3E%0A *  ********************************************************************************************************************%0A *  %3Cp/%3E%0A *  Copyright 2012 BACKENDLESS.COM. All Rights Reserved.%0A *  %3Cp/%3E%0A *  NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,%0A *  if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its%0A *  suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret%0A *  or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden%0A *  unless prior written permission is obtained from Backendless.com.%0A *  %3Cp/%3E%0A *  ********************************************************************************************************************%0A */%0A%0Apackage com.backendless.servercode;%0A%0Aimport com.backendless.commons.DeviceType;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by oleg on 22.07.15.%0A */%0Apublic class InvocationContext%0A%7B%0A  static private String appId;%0A  static private String userId;%0A  static private List%3CString%3E userRoles;%0A  static private DeviceType deviceType;%0A%0A  private InvocationContext()%0A  %7B%0A  %7D%0A%0A  private static void setContext( String appId, String userId, List%3CString%3E userRoles, DeviceType deviceType )%0A  %7B%0A    InvocationContext.appId = appId;%0A    InvocationContext.userId = userId;%0A    InvocationContext.userRoles = userRoles;%0A    InvocationContext.deviceType = deviceType;%0A  %7D%0A%0A  public static String getAppId()%0A  %7B%0A    return appId;%0A  %7D%0A%0A  public static String getUserId()%0A  %7B%0A    return userId;%0A  %7D%0A%0A  public static List%3CString%3E getUserRoles()%0A  %7B%0A    return userRoles;%0A  %7D%0A%0A  public static DeviceType getDeviceType()%0A  %7B%0A    return deviceType;%0A  %7D%0A%7D%0A

Create InvocationContext for HostedServices