Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 547289 - [Passage] Provide javadoc for org.eclipse.passage.lic.api package #23

Merged
merged 2 commits into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,33 @@
import org.eclipse.passage.lic.api.access.PermissionEmitter;

/**
*
*
* Defines the condition to be evaluated by {@link PermissionEmitter} <br/>
* Obtained from {@link ConditionMiner}
*
*
* @since 0.5.0
*
*/
public interface LicensingCondition {

/**
* Returns unique identifier of a feature under licensing.
*
* @return feature identifier
*/
String getFeatureIdentifier();

/**
* Returns descriptor of the feature version allowed by this licensing condition.
*
* @return version descriptor
* */
String getMatchVersion();

/**
* Returns rule of version matching, like "perfect match" or "equal or greater".
*
* @return match rule
* */
String getMatchRule();

/**
Expand All @@ -49,12 +63,20 @@ public interface LicensingCondition {
Date getValidUntil();

/**
* the type of condition like "time" or "hardware"
*
* @return
* The type of condition like "time" or "hardware".
*
* @return condition type
*/
String getConditionType();

/**
* Returns additional data encoded in a single string value.
* The expression is utilized by {@link PermissionEmitter} in conjunction with {@code conditionType}
*
* @return enlistment of additional information of this licencing condition
* @see PermissionEmitter
* @see #getConditionType
* */
ruspl-afed marked this conversation as resolved.
Show resolved Hide resolved
String getConditionExpression();

}