Deprecated PluginData API

This commit is contained in:
Rsl1122 2019-07-21 08:37:45 +03:00
parent dfff43f917
commit a33db109dd
13 changed files with 25 additions and 3 deletions

View File

@ -50,6 +50,10 @@ public interface PlanAPI {
}
}
/**
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
void addPluginDataSource(PluginData pluginData);
String getPlayerInspectPageLink(UUID uuid);

View File

@ -38,7 +38,9 @@ import java.util.UUID;
* @author Rsl1122
* @see TableContainer
* @see InspectContainer
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
public final class AnalysisContainer extends InspectContainer {
private Map<String, Map<UUID, ? extends Serializable>> playerTableValues;

View File

@ -35,7 +35,9 @@ import java.util.TreeMap;
*
* @author Rsl1122
* @see TableContainer
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
public class InspectContainer {
protected List<String> values;

View File

@ -29,7 +29,9 @@ import java.util.List;
* Container used for parsing Html tables.
*
* @author Rsl1122
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
public class TableContainer {
protected final String[] header;

View File

@ -23,8 +23,7 @@ import java.util.UUID;
* Interface for PluginData objects that affect Ban state of players.
*
* @author Rsl1122
* @deprecated New implementations should not be created as better plugin data integration is
* being created.
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
public interface BanData {

View File

@ -20,7 +20,9 @@ package com.djrapitops.plan.data.plugin;
* Enum class for PluginData to estimate the required width of the contained items.
*
* @author Rsl1122
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
public enum ContainerSize {
THIRD,
TWO_THIRDS,

View File

@ -34,7 +34,9 @@ import java.util.UUID;
* to register objects extending this class.
*
* @author Rsl1122
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Deprecated
public abstract class PluginData {
private final ContainerSize size;

View File

@ -37,6 +37,7 @@ public class PluginsConfigSection {
this.config = config;
}
@Deprecated
public boolean hasSection(PluginData dataSource) {
return hasSection(dataSource.getSourcePlugin());
}
@ -51,6 +52,7 @@ public class PluginsConfigSection {
.orElse(config.addNode("Plugins"));
}
@Deprecated
public void createSection(PluginData dataSource) throws IOException {
createSection(dataSource.getSourcePlugin());
}
@ -63,6 +65,7 @@ public class PluginsConfigSection {
section.save();
}
@Deprecated
public boolean isEnabled(PluginData dataSource) {
return isEnabled(dataSource.getSourcePlugin());
}

View File

@ -106,6 +106,7 @@ public class InfoRequestFactory {
);
}
@Deprecated
public CacheRequest cacheInspectPluginsTabRequest(UUID uuid, String nav, String html) {
return new CacheInspectPluginsTabRequest(uuid, nav, html);
}
@ -118,6 +119,7 @@ public class InfoRequestFactory {
return new GenerateInspectPageRequest(uuid, this, responseFactory.get(), pageFactory.get(), infoSystem.get());
}
@Deprecated
public GenerateInspectPluginsTabRequest generateInspectPluginsTabRequest(UUID uuid) {
return new GenerateInspectPluginsTabRequest(uuid, infoSystem.get(), this, pageFactory.get());
}

View File

@ -33,7 +33,7 @@ import java.util.*;
* <p>
* Extends Response so that it can be stored in ResponseCache.
*
* @deprecated Marked for removal when the connection system will be removed.
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
* @author Rsl1122
*/
@Deprecated

View File

@ -25,6 +25,7 @@ import java.util.Comparator;
*
* @author Rsl1122
*/
@Deprecated
public class PluginDataNameComparator implements Comparator<PluginData> {
@Override

View File

@ -50,6 +50,7 @@ public class HtmlStructure {
return builder.toString();
}
@Deprecated
public static String[] createInspectPageTabContentCalculating() {
String tab = "<div class=\"tab\">" +
"<div class=\"row clearfix\">" +

View File

@ -37,8 +37,10 @@ import java.util.*;
* Creates Plugin section contents for Analysis page.
*
* @author Rsl1122
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
*/
@Singleton
@Deprecated
public class AnalysisPluginsTabContentCreator {
private final HookHandler hookHandler;