public interface RuntimeLock
extends java.io.Serializable
The actual lock is created from a license file. Depending on the values present in the file, different types of locks can be created. The system will look for the runtime lock in various places and react differently based on its presence and capabilities.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DETAIL_CAN_EDIT
If the value of this license key is "true", then the current system can edit locked projects.
|
static java.lang.String |
LICENSE_DETAIL
Name of the detail in the license file that dictates the type of lock
|
static java.lang.String |
LOCK_OWNER_NAME
Name of the detail in the license file that holds the name of the company who owns this lock
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockId()
Should return a short string identifying this particular lock.
|
byte[] |
lockResource(byte[] data)
Takes some data and returns a locked version of it.
|
boolean |
supportsEditing()
Returns whether this lock has the ability to edit resources (ie lock) resources.
|
byte[] |
unlockResource(byte[] data)
Takes a locked version of data and returns it in unlocked form.
|
static final java.lang.String LICENSE_DETAIL
static final java.lang.String LOCK_OWNER_NAME
static final java.lang.String DETAIL_CAN_EDIT
java.lang.String getLockId()
boolean supportsEditing()
byte[] lockResource(byte[] data) throws java.lang.Exception
UnlicensedFeatureException
- if the write lock isn't present, other exceptions for normal stuff.java.lang.Exception
byte[] unlockResource(byte[] data) throws java.lang.Exception
java.lang.Exception