public abstract class AbstractRatingExtension extends AbstractRemoteExtension implements RatingExtension
RatingExtension
implementations.Modifier and Type | Field and Description |
---|---|
protected ExtensionRating |
rating |
recommended
allowedNamespaces, authors, category, components, dependencies, description, features, featuresMap, file, id, issueManagement, licenses, managedDependencies, name, properties, propertiesLock, repositories, repository, scm, summary, type, website
FIELD_AVERAGE_VOTE, FIELD_RATING, FIELD_TOTAL_VOTES
FIELD_RECOMMENDED
FIELD_ALLOWEDNAMESPACE, FIELD_ALLOWEDNAMESPACES, FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_COMPONENT, FIELD_COMPONENTS, 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, setRecommended
addAllowedNamespace, addAuthor, addComponent, addDependency, addExtensionFeature, addFeature, addLicense, addManagedDependency, addRepository, compareTo, equals, getAllowedNamespaces, getAuthors, getCategory, getComponents, 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, setComponents, setDependencies, setDescription, setExtensionFeatures, setFeatures, setFile, setId, setIssueManagement, setLicenses, setManagedDependencies, setName, setProperties, setRepositories, setRepository, setScm, setSummary, setType, setWebsite, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isRecommended
getAllowedNamespaces, getAuthors, getCategory, getComponents, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getFile, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSite
compareTo
protected 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)
AbstractExtension
get
in interface Extension
get
in class AbstractRemoteExtension
T
- type of the field valuefieldName
- the field name;Copyright © 2004–2021 XWiki. All rights reserved.