mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-26 02:57:52 +01: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);
|
void addPluginDataSource(PluginData pluginData);
|
||||||
|
|
||||||
String getPlayerInspectPageLink(UUID uuid);
|
String getPlayerInspectPageLink(UUID uuid);
|
||||||
|
@ -38,7 +38,9 @@ import java.util.UUID;
|
|||||||
* @author Rsl1122
|
* @author Rsl1122
|
||||||
* @see TableContainer
|
* @see TableContainer
|
||||||
* @see InspectContainer
|
* @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 {
|
public final class AnalysisContainer extends InspectContainer {
|
||||||
|
|
||||||
private Map<String, Map<UUID, ? extends Serializable>> playerTableValues;
|
private Map<String, Map<UUID, ? extends Serializable>> playerTableValues;
|
||||||
|
@ -35,7 +35,9 @@ import java.util.TreeMap;
|
|||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @author Rsl1122
|
||||||
* @see TableContainer
|
* @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 {
|
public class InspectContainer {
|
||||||
|
|
||||||
protected List<String> values;
|
protected List<String> values;
|
||||||
|
@ -29,7 +29,9 @@ import java.util.List;
|
|||||||
* Container used for parsing Html tables.
|
* Container used for parsing Html tables.
|
||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @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 {
|
public class TableContainer {
|
||||||
|
|
||||||
protected final String[] header;
|
protected final String[] header;
|
||||||
|
@ -23,8 +23,7 @@ import java.util.UUID;
|
|||||||
* Interface for PluginData objects that affect Ban state of players.
|
* Interface for PluginData objects that affect Ban state of players.
|
||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @author Rsl1122
|
||||||
* @deprecated New implementations should not be created as better plugin data integration is
|
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||||
* being created.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public interface BanData {
|
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.
|
* Enum class for PluginData to estimate the required width of the contained items.
|
||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @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 {
|
public enum ContainerSize {
|
||||||
THIRD,
|
THIRD,
|
||||||
TWO_THIRDS,
|
TWO_THIRDS,
|
||||||
|
@ -34,7 +34,9 @@ import java.util.UUID;
|
|||||||
* to register objects extending this class.
|
* to register objects extending this class.
|
||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @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 {
|
public abstract class PluginData {
|
||||||
|
|
||||||
private final ContainerSize size;
|
private final ContainerSize size;
|
||||||
|
@ -37,6 +37,7 @@ public class PluginsConfigSection {
|
|||||||
this.config = config;
|
this.config = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public boolean hasSection(PluginData dataSource) {
|
public boolean hasSection(PluginData dataSource) {
|
||||||
return hasSection(dataSource.getSourcePlugin());
|
return hasSection(dataSource.getSourcePlugin());
|
||||||
}
|
}
|
||||||
@ -51,6 +52,7 @@ public class PluginsConfigSection {
|
|||||||
.orElse(config.addNode("Plugins"));
|
.orElse(config.addNode("Plugins"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public void createSection(PluginData dataSource) throws IOException {
|
public void createSection(PluginData dataSource) throws IOException {
|
||||||
createSection(dataSource.getSourcePlugin());
|
createSection(dataSource.getSourcePlugin());
|
||||||
}
|
}
|
||||||
@ -63,6 +65,7 @@ public class PluginsConfigSection {
|
|||||||
section.save();
|
section.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public boolean isEnabled(PluginData dataSource) {
|
public boolean isEnabled(PluginData dataSource) {
|
||||||
return isEnabled(dataSource.getSourcePlugin());
|
return isEnabled(dataSource.getSourcePlugin());
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,7 @@ public class InfoRequestFactory {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public CacheRequest cacheInspectPluginsTabRequest(UUID uuid, String nav, String html) {
|
public CacheRequest cacheInspectPluginsTabRequest(UUID uuid, String nav, String html) {
|
||||||
return new CacheInspectPluginsTabRequest(uuid, nav, 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());
|
return new GenerateInspectPageRequest(uuid, this, responseFactory.get(), pageFactory.get(), infoSystem.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public GenerateInspectPluginsTabRequest generateInspectPluginsTabRequest(UUID uuid) {
|
public GenerateInspectPluginsTabRequest generateInspectPluginsTabRequest(UUID uuid) {
|
||||||
return new GenerateInspectPluginsTabRequest(uuid, infoSystem.get(), this, pageFactory.get());
|
return new GenerateInspectPluginsTabRequest(uuid, infoSystem.get(), this, pageFactory.get());
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ import java.util.*;
|
|||||||
* <p>
|
* <p>
|
||||||
* Extends Response so that it can be stored in ResponseCache.
|
* 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
|
* @author Rsl1122
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@ -25,6 +25,7 @@ import java.util.Comparator;
|
|||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @author Rsl1122
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class PluginDataNameComparator implements Comparator<PluginData> {
|
public class PluginDataNameComparator implements Comparator<PluginData> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -50,6 +50,7 @@ public class HtmlStructure {
|
|||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public static String[] createInspectPageTabContentCalculating() {
|
public static String[] createInspectPageTabContentCalculating() {
|
||||||
String tab = "<div class=\"tab\">" +
|
String tab = "<div class=\"tab\">" +
|
||||||
"<div class=\"row clearfix\">" +
|
"<div class=\"row clearfix\">" +
|
||||||
|
@ -37,8 +37,10 @@ import java.util.*;
|
|||||||
* Creates Plugin section contents for Analysis page.
|
* Creates Plugin section contents for Analysis page.
|
||||||
*
|
*
|
||||||
* @author Rsl1122
|
* @author Rsl1122
|
||||||
|
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||||
*/
|
*/
|
||||||
@Singleton
|
@Singleton
|
||||||
|
@Deprecated
|
||||||
public class AnalysisPluginsTabContentCreator {
|
public class AnalysisPluginsTabContentCreator {
|
||||||
|
|
||||||
private final HookHandler hookHandler;
|
private final HookHandler hookHandler;
|
||||||
|
Loading…
Reference in New Issue
Block a user