net.customware.license.confluence.restriction
Class ServerIdRestriction
java.lang.Object
net.customware.license.support.simple.SimpleRestriction
net.customware.license.atlassian.restriction.AbstractLicenseRestriction
net.customware.license.confluence.restriction.ServerIdRestriction
- All Implemented Interfaces:
- net.customware.license.support.Restriction
public class ServerIdRestriction
- extends net.customware.license.atlassian.restriction.AbstractLicenseRestriction
Restricts the license to be used with a specific Confluence Server ID.
|
Method Summary |
protected void |
checkRestriction(java.lang.Object context,
net.customware.license.support.simple.SimpleLicenseContent content,
java.lang.Object attributeValue)
|
static java.lang.String |
getServerId(net.customware.license.support.simple.SimpleLicenseContent content)
|
static void |
setServerId(net.customware.license.support.simple.SimpleLicenseContent content,
java.lang.String serverId)
|
| Methods inherited from class net.customware.license.atlassian.restriction.AbstractLicenseRestriction |
getLicense |
| Methods inherited from class net.customware.license.support.simple.SimpleRestriction |
checkRestriction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerIdRestriction
public ServerIdRestriction()
checkRestriction
protected void checkRestriction(java.lang.Object context,
net.customware.license.support.simple.SimpleLicenseContent content,
java.lang.Object attributeValue)
throws net.customware.license.support.simple.SimpleRestrictionException
- Specified by:
checkRestriction in class net.customware.license.support.simple.SimpleRestriction
- Throws:
net.customware.license.support.simple.SimpleRestrictionException
setServerId
public static void setServerId(net.customware.license.support.simple.SimpleLicenseContent content,
java.lang.String serverId)
getServerId
public static java.lang.String getServerId(net.customware.license.support.simple.SimpleLicenseContent content)
Copyright © 2011 CustomWare Asia Pacific. All Rights Reserved.