forked from xwikisas/application-admintools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into functional-tests
# Conflicts: # application-admintools-default/src/main/java/com/xwiki/admintools/internal/data/ConfigurationDataProvider.java # application-admintools-default/src/main/java/com/xwiki/admintools/internal/data/identifiers/CurrentServer.java # application-admintools-default/src/main/java/com/xwiki/admintools/internal/data/identifiers/TomcatInfo.java # application-admintools-default/src/test/java/com/xwiki/admintools/internal/data/ConfigurationDataProviderTest.java # application-admintools-default/src/test/java/com/xwiki/admintools/internal/data/identifiers/CurrentServerTest.java
- Loading branch information
Showing
31 changed files
with
1,078 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
application-admintools-api/src/main/java/com/xwiki/admintools/WikiSizeResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
/* | ||
* See the NOTICE file distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation; either version 2.1 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* This software is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this software; if not, write to the Free | ||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||
*/ | ||
package com.xwiki.admintools; | ||
|
||
import org.xwiki.stability.Unstable; | ||
|
||
/** | ||
* Stores info about the size of a wiki. | ||
* | ||
* @version $Id$ | ||
* @since 1.0 | ||
*/ | ||
@Unstable | ||
public class WikiSizeResult | ||
{ | ||
private String name; | ||
|
||
private Long userCount; | ||
|
||
private String attachmentsSize; | ||
|
||
private Long attachmentsCount; | ||
|
||
private Long documentsCount; | ||
|
||
/** | ||
* Null constructor to initialize a {@link WikiSizeResult} object. | ||
*/ | ||
public WikiSizeResult() | ||
{ | ||
} | ||
|
||
/** | ||
* Get the name of the wiki. | ||
* | ||
* @return the name of the wiki. | ||
*/ | ||
public String getName() | ||
{ | ||
return name; | ||
} | ||
|
||
/** | ||
* Set the name of the wiki. | ||
* | ||
* @param name representing the name of the wiki. | ||
*/ | ||
public void setName(String name) | ||
{ | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* Get the number of users registered in the wiki. | ||
* | ||
* @return {@link Long} representing the number of users in the wiki. | ||
*/ | ||
public Long getUserCount() | ||
{ | ||
return userCount; | ||
} | ||
|
||
/** | ||
* Set the number of users registered in the wiki. | ||
* | ||
* @param userCount the number of users in the wiki. | ||
*/ | ||
public void setUserCount(Long userCount) | ||
{ | ||
this.userCount = userCount; | ||
} | ||
|
||
/** | ||
* Get the total size of the attachments in the wiki. | ||
* | ||
* @return formatted {@link String} with the size of the attachments in the wiki and corresponding size unit. | ||
*/ | ||
public String getAttachmentsSize() | ||
{ | ||
return attachmentsSize; | ||
} | ||
|
||
/** | ||
* Set the total size of the attachments in the wiki. | ||
* | ||
* @param attachmentsSize the size of the attachments in the wiki and corresponding size unit. | ||
*/ | ||
public void setAttachmentsSize(String attachmentsSize) | ||
{ | ||
this.attachmentsSize = attachmentsSize; | ||
} | ||
|
||
/** | ||
* Get the total number of the attachments in wiki. | ||
* | ||
* @return the total number of the attachments in wiki. | ||
*/ | ||
public Long getAttachmentsCount() | ||
{ | ||
return attachmentsCount; | ||
} | ||
|
||
/** | ||
* Set the total number of the attachments in wiki. | ||
* | ||
* @param attachmentsCount the total number of the attachments in wiki. | ||
*/ | ||
public void setAttachmentsCount(Long attachmentsCount) | ||
{ | ||
this.attachmentsCount = attachmentsCount; | ||
} | ||
|
||
/** | ||
* Get the total number of documents in wiki. | ||
* | ||
* @return the total number of documents in wiki. | ||
*/ | ||
public Long getDocumentsCount() | ||
{ | ||
return documentsCount; | ||
} | ||
|
||
/** | ||
* Set the total number of documents in wiki. | ||
* | ||
* @param documentsCount the total number of documents in wiki. | ||
*/ | ||
public void setDocumentsCount(Long documentsCount) | ||
{ | ||
this.documentsCount = documentsCount; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 0 additions & 85 deletions
85
application-admintools-default/src/main/java/com/xwiki/admintools/internal/PingProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.