This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClass { | |
// do not put stateful properties in here - I do NOT maintain state | |
static final MyClass INSTANCE = new MyClass(); | |
final className = "com.axeda.enablement.MyClass" | |
MyClass() | |
{ | |
if(MyClass.INSTANCE != null) | |
{ | |
throw new RuntimeException("There is already an instance of the MyClass. Please use MyClass.INSTANCE to obtain an instance") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.util.GroovyTestCase | |
import groovyx.net.http.HTTPBuilder | |
import groovyx.net.http.RESTClient | |
import groovy.json.JsonOutput | |
import groovy.util.XmlSlurper | |
import groovy.xml.MarkupBuilder | |
import groovyx.net.http.Method | |
import org.apache.http.HttpEntity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.xml.StreamingMarkupBuilder | |
import net.sf.json.JSONObject | |
import groovy.xml.XmlUtil | |
class ReturnSerializer { | |
static final ReturnSerializer INSTANCE = new ReturnSerializer(); | |
final className = "com.axeda.innovation.ReturnSerializer" | |
ReturnSerializer() { | |
if(ReturnSerializer.INSTANCE != null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.sf.json.JSONObject | |
import com.axeda.drm.sdk.user.UserGroupFinder | |
import com.axeda.drm.sdk.Context | |
import com.axeda.platform.sdk.v1.services.ServiceFactory | |
import com.axeda.drm.sdk.user.User | |
import com.axeda.drm.sdk.user.UserFinder | |
/** | |
* UserGroupPrivilegesForUser.groovy | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.axeda.common.sdk.id.Identifier | |
import com.axeda.drm.sdk.Context | |
import com.axeda.drm.sdk.audit.AuditCategory | |
import com.axeda.drm.sdk.audit.AuditMessage | |
import com.axeda.drm.sdk.scripto.Request | |
import groovy.json.* | |
import net.sf.json.JSONObject | |
import java.net.URLDecoder | |
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.services.v2.CustomObjectCriteria |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.services.v2.ExtendedMap | |
import com.axeda.services.v2.ExtendedMapCriteria | |
import com.axeda.services.v2.ExtendedList | |
import com.axeda.services.v2.ExtendedListCriteria | |
import com.axeda.services.v2.FindExtendedMapResult | |
import com.axeda.services.v2.FindExtendedListResult | |
import com.axeda.services.v2.NamedValue | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.axeda.drm.sdk.Context | |
import com.axeda.drm.sdk.scripto.Request | |
import com.axeda.drm.sdk.audit.AuditCategory | |
import com.axeda.drm.sdk.audit.AuditMessage | |
import com.axeda.drm.sdk.contact.Location | |
import com.axeda.drm.sdk.contact.Organization | |
import com.axeda.drm.sdk.data.UploadedFile | |
import com.axeda.drm.sdk.device.Device | |
import com.axeda.drm.sdk.rules.ActionContext | |
import com.axeda.drm.util.Emailer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.axeda.drm.sdk.Context | |
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.drm.sdk.scripto.Request | |
import com.axeda.drm.sdk.device.Device | |
import com.axeda.drm.sdk.device.DeviceFinder | |
import org.apache.commons.net.ftp.* | |
import groovy.json.* | |
import net.sf.json.JSONObject | |
import com.axeda.drm.sdk.device.Model | |
import com.axeda.drm.sdk.device.ModelFinder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.services.v2.* | |
import com.axeda.sdk.v2.exception.* | |
import com.axeda.drm.sdk.scripto.Request | |
def response = fileInfoBridge.getFileData(parameters.fileId) | |
def contentType = parameters.type ?: 'image/jpg' | |
return ['Content': response, 'Content-Disposition': contentType, 'Content-Type':contentType] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.axeda.drm.sdk.Context | |
import com.axeda.drm.sdk.data.* | |
import com.axeda.drm.sdk.device.* | |
import com.axeda.drm.sdk.mobilelocation.CurrentMobileLocationFinder | |
import com.axeda.drm.sdk.mobilelocation.MobileLocation | |
import com.axeda.drm.sdk.mobilelocation.MobileLocationFinder | |
import com.axeda.sdk.v2.bridge.FileInfoBridge | |
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.services.v2.ExecutionResult | |
import com.axeda.services.v2.FileInfo |
NewerOlder