mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Deprecated PluginData API
This commit is contained in:
parent
dfff43f917
commit
a33db109dd
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -25,6 +25,7 @@ import java.util.Comparator;
|
||||
*
|
||||
* @author Rsl1122
|
||||
*/
|
||||
@Deprecated
|
||||
public class PluginDataNameComparator implements Comparator<PluginData> {
|
||||
|
||||
@Override
|
||||
|
@ -50,6 +50,7 @@ public class HtmlStructure {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static String[] createInspectPageTabContentCalculating() {
|
||||
String tab = "<div class=\"tab\">" +
|
||||
"<div class=\"row clearfix\">" +
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user