This file contains 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.geofence.Geofence | |
import com.axeda.drm.sdk.geofence.GeofenceFinder | |
import com.axeda.drm.sdk.rules.engine.Expression | |
import com.axeda.drm.sdk.rules.engine.ExpressionRule | |
import com.axeda.drm.sdk.rules.engine.ExpressionRuleFinder | |
import com.axeda.drm.sdk.rules.engine.RuleAssociation | |
import com.axeda.drm.sdk.rules.engine.RuleAssociationFinder | |
import com.axeda.drm.sdk.rules.engine.RuleType | |
import com.axeda.drm.sdk.common.EntityType |
This file contains 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.id.Identifier | |
import com.axeda.drm.sdk.Context | |
import com.axeda.drm.sdk.agent.commands.CommandStatus | |
import com.axeda.drm.sdk.agent.commands.SetDataItem | |
import com.axeda.drm.sdk.audit.AuditCategory | |
import com.axeda.drm.sdk.audit.AuditCategoryList | |
import com.axeda.drm.sdk.audit.AuditEntry | |
import com.axeda.drm.sdk.audit.AuditEntryFinder | |
import com.axeda.drm.sdk.audit.AuditMessage | |
import com.axeda.drm.sdk.common.Operator |
This file contains 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.util.Emailer; | |
import com.axeda.drm.sdk.contact.Email | |
import javax.mail.internet.AddressException; | |
import javax.mail.internet.InternetAddress; | |
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.services.v2.FileInfoCriteria | |
import org.apache.commons.io.IOUtils | |
import java.security.MessageDigest | |
try { |
This file contains 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.user.User | |
import com.axeda.drm.sdk.user.UserFinder | |
import com.axeda.drm.sdk.user.UserGroup | |
import com.axeda.drm.sdk.user.UserGroupFinder | |
import com.axeda.drm.sdk.device.Device | |
import com.axeda.drm.sdk.device.DeviceGroup | |
import com.axeda.drm.sdk.device.DeviceGroupFinder | |
import groovyx.net.http.* | |
import static groovyx.net.http.ContentType.* |
This file contains 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
var PLATFORM_HOST = document.URL.split('/apps/')[0]; // this is how you would retrieve the host on an Axeda instance | |
var SESSION_ID = null // usually retrieved from login function included below | |
/*** | |
* Depends on jQuery 1.7+ and HTML5, assumes an HTML5 element such as the following: | |
* <input type="file" id="fileinput" value="Upload" /> | |
* **/ | |
$("#fileinput").off("click.filein").on("click.filein", function () { |
This file contains 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 |
This file contains 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 javax.activation.MimetypesFileTypeMap | |
import com.axeda.services.v2.* | |
import com.axeda.sdk.v2.exception.* | |
import com.axeda.drm.sdk.scripto.Request | |
def knowntypes = [ | |
[png: 'image/png'] | |
,[gif: 'image/gif'] | |
,[jpg: 'image/jpeg'] |
This file contains 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 com.axeda.services.v2.FileInfoCriteria | |
import com.axeda.services.v2.ModelCriteria | |
import static com.axeda.sdk.v2.dsl.Bridges.* |
This file contains 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.privilege.PrivilegeFinder | |
import com.axeda.drm.sdk.user.UserGroup | |
import com.axeda.drm.sdk.user.UserGroupFinder | |
/**** | |
* PrivilegeList.groovy | |
* -------- | |
* Find or create a user group, add any privileges, then list out the privileges in alpha order. | |
* |
This file contains 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.device.DeviceProperty | |
import com.axeda.drm.sdk.device.ModelFinder | |
import com.axeda.drm.sdk.device.Model | |
import com.axeda.drm.sdk.Context | |
import com.axeda.drm.sdk.device.DevicePropertyFinder | |
import com.axeda.drm.sdk.device.Property | |
import com.axeda.drm.sdk.device.PropertyType | |
import com.axeda.common.sdk.id.Identifier | |
Set<String> REQUIRED_PROPERTIES = [ |