net.customware.license.confluence.restriction
Class ServerIdRestriction

java.lang.Object
  extended by net.customware.license.support.simple.SimpleRestriction
      extended by net.customware.license.atlassian.restriction.AbstractLicenseRestriction
          extended by 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.


Constructor Summary
ServerIdRestriction()
           
 
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
 

Constructor Detail

ServerIdRestriction

public ServerIdRestriction()
Method Detail

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.