最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

gliffy-confluence-plugin-9.1.2插件教程詳解

 更新時(shí)間:2021年02月18日 12:03:05   作者:shiyuan_90  
這篇文章主要介紹了gliffy-confluence-plugin-9.1.2破解教程詳解,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

1、下載gliffy-confluence-plugin-9.1.2.obr

2、解壓后找到GliffyLicenseManager.class

3、反編譯GliffyLicenseManager.class,替換原來的實(shí)現(xiàn),重新編譯成class后替換進(jìn)去

package com.gliffy.plugin.confluence.license;
 
import com.atlassian.confluence.setup.BootstrapManager;
import com.atlassian.confluence.setup.settings.CoreFeaturesManager;
import com.atlassian.upm.api.license.PluginLicenseManager;
import com.atlassian.upm.api.license.entity.LicenseError;
import com.atlassian.upm.api.license.entity.LicenseType;
import com.atlassian.upm.api.license.entity.PluginLicense;
import com.atlassian.upm.api.util.Option;
import org.joda.time.DateTime;
import org.joda.time.Days;
import org.joda.time.ReadableInstant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
public class GliffyLicenseManager {
 private static final Logger logger = LoggerFactory.getLogger(GliffyLicenseManager.class);
 private PluginLicenseManager licenseManager;
 private CoreFeaturesManager coreFeaturesManager;
 private BootstrapManager bootstrapManager;
 
 public GliffyLicenseManager(PluginLicenseManager licenseManager, CoreFeaturesManager coreFeaturesManager, BootstrapManager bootstrapManager) {
 this.licenseManager = licenseManager;
 this.coreFeaturesManager = coreFeaturesManager;
 this.bootstrapManager = bootstrapManager;
 }
 
 /*private PluginLicense fetchLicense() {
 PluginLicense license = null;
 Option<PluginLicense> licenseOption = this.licenseManager.getLicense();
 if (licenseOption.isDefined()) {
 license = (PluginLicense)licenseOption.get();
 } else {
 logger.debug("no Gliffy license found");
 }
 return license;
 }*/
 
 public boolean isValid() {
 /*PluginLicense license = this.fetchLicense();
 return license != null ? license.isValid() : false;*/
 
 return true;
 }
 
 public boolean isSupported() {
 /*PluginLicense license = this.fetchLicense();
 if (license != null) {
 return !license.isMaintenanceExpired();
 } else {
 return false;
 }*/
 
 return true;
 }
 
 public boolean isEvaluation() {
 /*PluginLicense license = this.fetchLicense();
 return license != null ? license.isEvaluation() : false;*/
 
 return false;
 }
 
 public String getLicenseError() {
 /*PluginLicense license = this.fetchLicense();
 if (license != null) {
 Option<LicenseError> errorOption = license.getError();
 if (errorOption.isDefined()) {
 return ((LicenseError)errorOption.get()).toString();
 }
 }
 return null;*/
 
 return null;
 }
 
 public String getSEN() {
 /*PluginLicense license = this.fetchLicense();
 if (license != null) {
 Option<String> customerIdOption = license.getSupportEntitlementNumber();
 if (customerIdOption.isDefined()) {
 return (String)customerIdOption.get();
 }
 }
 return null;*/
 
 return null;
 }
 
 public boolean isCloud() {
 return this.coreFeaturesManager.isOnDemand();
 }
 
 public LicenseType getLicenseType() {
 /*PluginLicense license = this.fetchLicense();
 return license != null ? license.getLicenseType() : null;*/
 
 return LicenseType.COMMERCIAL;
 }
 
 public int getDaysToExpiration() {
 /*PluginLicense license = this.fetchLicense();
 if (license != null) {
 Option<DateTime> expiryDateOption = license.getExpiryDate();
 if (expiryDateOption.isDefined()) {
 return Days.daysBetween(new DateTime(), (ReadableInstant)expiryDateOption.get()).getDays();
 }
 }
 return 0;*/
 
 return Integer.MAX_VALUE;
 }
 
 public Integer getUserCount() {
 /*PluginLicense license = this.fetchLicense();
 if (license != null) {
 Option<Integer> qtyUsersOption = license.getEdition();
 if (qtyUsersOption.isDefined()) {
 return (Integer)qtyUsersOption.get();
 }
 }
 return null;*/
 
 return Integer.MAX_VALUE;
 }
 
 public boolean isFree() {
 /*if (this.fetchLicense() == null) {
 return false;
 } else {
 LicenseType type = this.getLicenseType();
 return type.equals(LicenseType.COMMUNITY) || type.equals(LicenseType.NON_PROFIT) || type.equals(LicenseType.OPEN_SOURCE);
 }*/
 
 return false;
 }
 
 public boolean isCommercial() {
 return this.isValid() && this.isSupported() && !this.isEvaluation() && !this.isFree();
 }
 
 public long getLicenseInstallUnixTimestamp() {
 /*PluginLicense license = this.fetchLicense();
 return license != null ? license.getCreationDate().getMillis() / 1000L : 0L;*/
 
 return 0L;
 }
 
 public String getLicenseManagementURL() {
 /*return this.bootstrapManager.getWebAppContextPath() + "/plugins/servlet/upm#manage/com.gliffy.integration.confluence";*/
 
 return "";
 }
 
 public boolean isNonAnalyticsLicenseType() {
 /*LicenseType licenseType = this.getLicenseType();
 boolean isEvalCloudInstance = this.isCloud() && (this.isEvaluation() || licenseType == null);
 return isEvalCloudInstance || LicenseType.DEVELOPER.equals(licenseType) || LicenseType.TESTING.equals(licenseType) || LicenseType.DEMONSTRATION.equals(licenseType);*/
 
 return false;
 }
}

知識(shí)點(diǎn)擴(kuò)展:Gliffy confluence插件的破解

Gliffy是一個(gè)在線畫流程圖的工具,或者簡單的說Gliffy就是web版的Visio。Gliffy的用戶體驗(yàn)非常的好,加打開瀏覽器就可以使用,使用起來非常的方便。Gliffy同時(shí)推出了confluence的插件版本。在安裝插件后可在confluence中方便的編輯和插入流程圖。

同事對Gliffy甚為垂涎,只是Gliffy還有些小貴。confluence插件版,500用戶的許可要賣到2000$。

雖然同事的利誘有些不靠譜,但偶爾干干著方面的事也還算有趣,那就動(dòng)手吧。

注:下面只是簡單的講解一些關(guān)鍵點(diǎn),如果你對java一竅不通,那還是罷手吧。

java應(yīng)用破解的通常做法是:將文件反編譯,找到認(rèn)證部分的處理,直接將認(rèn)證結(jié)果返回true。java的反編譯工具推薦Java Decompiler。

Gliffy的jar包比較大,但其中java代碼并不是很多。而且Gliffy采用的是仿君子不防小人的做法,里面的java代碼并未混淆過。在代碼中有個(gè)目錄非常的扎眼\src\com\gliffy\core\license\。再做些簡單的分析我們即可找到真正的關(guān)鍵點(diǎn)SimpleLicenseManager.java

不得不說Gliffy的命名還是非常規(guī)范的。以函數(shù)名為線索,很容易就可以找到我們要的函數(shù)validLicenseValues。簡單粗暴的將函數(shù)返回值改為true。打包并重新安裝插件。

如果問題就這么解決了,那也未免順利的有些不太尋常。雖然可以成功安裝,但運(yùn)行的時(shí)候拋出一堆的異常。試著進(jìn)入Gliffy的管理界面,依舊是一堆的異常。雖然我們強(qiáng)制的將認(rèn)證結(jié)果設(shè)置為了true,但某些地方還需要獲取license的到期日期等信息。由于讀不到相關(guān)數(shù)據(jù),直接出異常了。

既然如此,那我們需要先將license信息寫入系統(tǒng)。

validLicenseValues還原,然后找到設(shè)置license的函數(shù)installLicense。在函數(shù)中注釋掉license認(rèn)證相關(guān)的代碼,讓系統(tǒng)在忽略認(rèn)證結(jié)果的情況下強(qiáng)行寫入注冊信息。修改后的java文件在執(zhí)行時(shí)還會(huì)報(bào)getHostedStatus的虛函數(shù)錯(cuò)誤。按理說這個(gè)函數(shù)應(yīng)當(dāng)會(huì)在子類中被重寫。不過我們先不管這么多,把它修改為普通函數(shù)并直接返回0。

重新打包安裝,然后進(jìn)入Gliffy的管理界面,license信息隨便填寫,然后保存。保存是成功的,但認(rèn)證還是失敗。修改validLicenseValues函數(shù),重新打包安裝。這次由于我們有寫入注冊信息,因此就不會(huì)再出現(xiàn)先前的空指針異常了。

享受Gliffy吧。

注:Gliffy確實(shí)是個(gè)好東西,如果喜歡,還是盡量說服公司出錢買吧。

到此這篇關(guān)于gliffy-confluence-plugin-9.1.2破解教程詳解的文章就介紹到這了,更多相關(guān)gliffy-confluence-plugin-9.1.2內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

您可能感興趣的文章:

相關(guān)文章

  • 微信支付--簽名錯(cuò)誤問題的解決方法

    微信支付--簽名錯(cuò)誤問題的解決方法

    這篇文章主要介紹了微信支付--簽名錯(cuò)誤問題,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值 ,需要的朋友可以參考下
    2019-07-07
  • Dreamweaver中如何設(shè)定文字大小、字體、顏色

    Dreamweaver中如何設(shè)定文字大小、字體、顏色

    這篇文章主要給大家介紹了關(guān)于Dreamweaver中如何設(shè)定文字大小、字體、顏色的相關(guān)資料,文中通過代碼介紹的非常詳細(xì),需要的朋友可以參考下
    2007-06-06
  • 什么是負(fù)載均衡為什么需要負(fù)載均衡

    什么是負(fù)載均衡為什么需要負(fù)載均衡

    Load?balancing,即負(fù)載均衡,是一種計(jì)算機(jī)技術(shù),用來在多個(gè)計(jì)算機(jī)(計(jì)算機(jī)集群)、網(wǎng)絡(luò)連接、CPU、磁盤驅(qū)動(dòng)器或其他資源中分配負(fù)載,以達(dá)到最優(yōu)化資源使用、最大化吞吐率、最小化響應(yīng)時(shí)間、同時(shí)避免過載的目的
    2024-04-04
  • cnpm不是內(nèi)部命令的解決方案:配置環(huán)境變量【推薦】

    cnpm不是內(nèi)部命令的解決方案:配置環(huán)境變量【推薦】

    這篇文章主要介紹了cnpm不是內(nèi)部命令的解決方案:配置環(huán)境變量的相關(guān)知識(shí),本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2019-07-07
  • Elasticsearch在應(yīng)用中常見錯(cuò)誤示例解析

    Elasticsearch在應(yīng)用中常見錯(cuò)誤示例解析

    這篇文章主要為大家介紹了Elasticsearch在應(yīng)用中常見錯(cuò)誤示例解析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪
    2022-04-04
  • pycharm、idea、golang等JetBrains其他IDE修改行分隔符的詳細(xì)步驟(換行符)

    pycharm、idea、golang等JetBrains其他IDE修改行分隔符的詳細(xì)步驟(換行符)

    這篇文章主要介紹了pycharm、idea、golang等JetBrains其他IDE修改行分隔符(換行符),本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2023-08-08
  • 從學(xué)習(xí)到接單賺錢 十大網(wǎng)絡(luò)技術(shù)人員推薦收藏的網(wǎng)站

    從學(xué)習(xí)到接單賺錢 十大網(wǎng)絡(luò)技術(shù)人員推薦收藏的網(wǎng)站

    這篇文章主要介紹了從學(xué)習(xí)到接單賺錢 十大網(wǎng)絡(luò)技術(shù)人員推薦收藏的網(wǎng)站,需要的朋友可以參考下
    2015-08-08
  • 在本地快速部署deepseek的操作指南(3分鐘極速部署)

    在本地快速部署deepseek的操作指南(3分鐘極速部署)

    這篇文章介紹了如何在本地快速部署Deepseek模型,包括下載、安裝、運(yùn)行和測試,文中通過圖文結(jié)合的方式講解的非常詳細(xì),對大家本地快速部署deepseek有一定的幫助,需要的朋友可以參考下
    2025-02-02
  • 消息交換模式RabbitMQ簡介

    消息交換模式RabbitMQ簡介

    這篇文章簡單介紹了消息交換模式RabbitMQ,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2022-07-07
  • deepseek本地部署使用步驟詳解

    deepseek本地部署使用步驟詳解

    DeepSeek是一個(gè)開源的深度學(xué)習(xí)模型,支持自然語言處理和推薦系統(tǒng),本地部署步驟包括克隆倉庫、創(chuàng)建虛擬環(huán)境、安裝依賴、配置模型和數(shù)據(jù)、啟動(dòng)服務(wù)、調(diào)試與優(yōu)化以及使用接口進(jìn)行調(diào)用,感興趣的朋友跟隨小編一起看看吧
    2025-02-02

最新評論

石景山区| 伊宁市| 梓潼县| 双桥区| 滨州市| 康乐县| 土默特左旗| 德格县| 广元市| 宝丰县| 全南县| 修武县| 霍山县| 鲜城| 水富县| 博客| 洛扎县| 扶风县| 喜德县| 闽侯县| 和龙市| 化德县| 理塘县| 赣榆县| 河西区| 南康市| 东光县| 中牟县| 泽普县| 永丰县| 甘谷县| 邵阳县| 高清| 遂川县| 萨嘎县| 阜新市| 筠连县| 北宁市| 龙口市| 溆浦县| 澄江县|