public abstract class AbstractRatingExtension extends AbstractRemoteExtension implements RatingExtension
RatingExtension implementations.| Modifier and Type | Field and Description |
|---|---|
protected ExtensionRating |
rating |
recommendedallowedNamespaces, authors, category, dependencies, description, features, featuresMap, file, id, issueManagement, licenses, managedDependencies, name, properties, propertiesLock, repositories, repository, scm, summary, type, websiteFIELD_AVERAGE_VOTE, FIELD_RATING, FIELD_TOTAL_VOTESFIELD_RECOMMENDEDFIELD_ALLOWEDNAMESPACE, FIELD_ALLOWEDNAMESPACES, FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_DEPENDENCIES, FIELD_DESCRIPTION, FIELD_EXTENSIONFEATURE, FIELD_EXTENSIONFEATURES, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_ISSUEMANAGEMENT, FIELD_LICENSE, FIELD_LICENSES, FIELD_MANAGEDDEPENDENCIES, FIELD_NAME, FIELD_NAMESPACES, FIELD_PROPERTIES, FIELD_REPOSITORIES, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE, IKEYPREFIX| Constructor and Description |
|---|
AbstractRatingExtension(ExtensionRepository repository,
Extension extension)
Create new extension descriptor by copying provided one.
|
AbstractRatingExtension(ExtensionRepository repository,
ExtensionId id,
String type) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String fieldName)
Get an extension field by name.
|
ExtensionRating |
getRating() |
void |
setRating(ExtensionRating rating) |
isRecommended, setRecommendedaddAllowedNamespace, addAuthor, addDependency, addExtensionFeature, addFeature, addLicense, addManagedDependency, addRepository, compareTo, equals, getAllowedNamespaces, getAuthors, getCategory, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getFile, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSite, hashCode, putProperty, removeProperty, set, setAllowedNamespaces, setAuthors, setCategory, setDependencies, setDescription, setExtensionFeatures, setFeatures, setFile, setId, setIssueManagement, setLicenses, setManagedDependencies, setName, setProperties, setRepositories, setRepository, setScm, setSummary, setType, setWebsite, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisRecommendedgetAllowedNamespaces, getAuthors, getCategory, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getFile, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSitecompareToprotected ExtensionRating rating
getRating()public AbstractRatingExtension(ExtensionRepository repository, ExtensionId id, String type)
repository - the repository where this extension comes fromid - the extension identifiertype - the extension typepublic AbstractRatingExtension(ExtensionRepository repository, Extension extension)
repository - the repository where this extension comes fromextension - the extension to copypublic ExtensionRating getRating()
public void setRating(ExtensionRating rating)
rating - an extension's ratingpublic <T> T get(String fieldName)
AbstractExtensionget in interface Extensionget in class AbstractRemoteExtensionT - type of the field valuefieldName - the field name;Copyright © 2004–2017 XWiki. All rights reserved.