Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions celements-xwiki-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
<version>7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.celements</groupId>
<artifactId>celements-xwiki-rendering-api</artifactId>
<version>7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.celements</groupId>
<artifactId>celements-servlet</artifactId>
Expand Down Expand Up @@ -197,15 +203,15 @@
<!-- Other XWiki modules -->
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-core-script</artifactId>
<artifactId>xwiki-core-xml</artifactId>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-core-bridge</artifactId>
<artifactId>xwiki-core-script</artifactId>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-core-rendering-api</artifactId>
<artifactId>xwiki-core-bridge</artifactId>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

/**
* Parse document source content as typed by the user.
*
* <p>
* Note: This is a very basic parser which currently only parses wiki links. It should probably
* not be developed further. Instead we should migrate to a proper parser such as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public Link parse(String contentToParse) throws ContentParserException {

/**
* Find out the alias part of the full link.
*
* <p>
* Note: As it's possible to specify a target we need a way to differentiate the following
* 2 links:
Expand Down Expand Up @@ -131,7 +130,6 @@ protected void parseAlias(StringBuffer content, Link link) {

/**
* Find out the target part of the full link.
*
* <p>
* Note: The target element must start with an underscore ("_"). See
* {@link #parseAlias(StringBuffer, Link)} for more details as to why.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class RenamePageReplaceLinkHandler implements ReplaceLinkHandler {

/**
* {@inheritDoc}
*
* <p>
* Two links are equal if they point to the same document and within the same location
* in that document.
Expand Down Expand Up @@ -74,7 +73,6 @@ public boolean compare(Link linkToLookFor, Link linkToReplace) {

/**
* {@inheritDoc}
*
* <p>
* Keep the query string, alias and target in the link to replace if they are not
* specified in the new link.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public boolean hasEqualsObjectsFromClass(XWikiDocument newdoc, XWikiDocument old
}
for (int i = 0; i < vobj1.size(); i++) {
if (((vobj1.get(i) != null) || (vobj2.get(i) != null))) {
if ((vobj1.get(i) == null) || (vobj2.get(i) == null) || !vobj1.get(i).equals(vobj2.get(i))) {
if ((vobj1.get(i) == null) || (vobj2.get(i) == null)
|| !vobj1.get(i).equals(vobj2.get(i))) {
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

/**
* Base string XProperty which all types of string XProperties extend.
*
* $Id$
*/
public class BaseStringProperty extends BaseProperty {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

/**
* Compare and sort instances of ElementInterface by name.
*
*/
public class ElementComparator implements Comparator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public class FileUploadPlugin extends XWikiDefaultPlugin implements XWikiPluginI
* the plugin classname (used in logs for example)
* @param context
* the XWiki Context
*
* @see XWikiDefaultPlugin#XWikiDefaultPlugin(String,String,com.xpn.xwiki.XWikiContext)
*/
public FileUploadPlugin(String name, String className, XWikiContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
/**
* Plugin that offers access to uploaded files. The uploaded files are automatically parsed and
* preserved as a list of {@link org.apache.commons.fileupload.FileItem}s.
*
* This is the wrapper accessible from in-document scripts.
*
* @version $Id$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ protected void ldapToXWikiAttribute(List<XWikiLDAPSearchAttribute> searchAttribu

/**
* Fully escape DN value (the part after the =).
*
* <p>
* For example, for the dn value "Acme, Inc", the escapeLDAPDNValue method
* returns "Acme\, Inc".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public String getFullName() {

/**
* @return the language of the described document
*
* @since 2.2M1
*/
public String getLanguage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,10 @@ public String export() throws IOException, XWikiException {
*
* @param data
* the file to create the package from, as a byte array.
*
* @return true if the package creation succeeded, false otherwise. If the package creation
* failed,
* the error message is placed in the velocity context under the <code>import_error</code>
* key,
*
* @since 2.2M1
*/
public boolean importPackageFromByteArray(byte data[]) {
Expand Down Expand Up @@ -288,7 +286,6 @@ public String toXml() {

/**
* @return a representation of this package under the JSON format
*
* @since 2.2M1
*/
public JSONObject toJSON() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class ZipExplorerPlugin extends XWikiDefaultPlugin {
* the plugin classname (used in logs for example)
* @param context
* the XWiki Context
*
* @see XWikiDefaultPlugin#XWikiDefaultPlugin(String,String,com.xpn.xwiki.XWikiContext)
*/
public ZipExplorerPlugin(String name, String className, XWikiContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ public List<String> getFileList(Document document, String attachmentName) {
* { id = &quot;Directory/&quot;, value = &quot;Directory&quot;, parent = &quot;&quot;}
* { id = &quot;Directory/File.txt&quot;, value = &quot;File.txt&quot;, parent = &quot;Directory/&quot;}
* { id = &quot;File2.txt&quot;, value = &quot;File2.txt&quot;, parent = &quot;&quot;}
*
* </pre>
*
* @param document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public synchronized void initHibernate() throws HibernateException {
*
* @param context
* @return
*
* @deprecated since 6.0 instead use {@link #getSession()}
*/
@Deprecated
Expand All @@ -126,7 +125,6 @@ public Session getSession() {
*
* @param session
* @param context
*
* @deprecated since 6.0 instead use {@link #setSession(Session)}
*/
@Deprecated
Expand All @@ -152,7 +150,6 @@ public void setSession(Session session) {
*
* @param context
* @return
*
* @deprecated since 6.0 instead use {@link #getTransaction()}
*/
@Deprecated
Expand All @@ -172,7 +169,6 @@ public Transaction getTransaction() {
*
* @param transaction
* @param context
*
* @deprecated since 6.0 instead use {@link #setTransaction(Transaction)}
*/
@Deprecated
Expand All @@ -196,7 +192,6 @@ public void setTransaction(Transaction transaction) {
*
* @param context
* @throws HibernateException
*
* @deprecated since 6.0 instead use {@link #updateSchema(String)}
*/
@Deprecated
Expand All @@ -220,7 +215,6 @@ public void updateSchema(WikiReference wikiRef) throws HibernateException {
* @param force
* defines wether or not to force the update despite the xwiki.cfg settings
* @throws HibernateException
*
* @deprecated since 6.0 instead use {@link #updateSchema(String, boolean)}
*/
@Deprecated
Expand Down Expand Up @@ -268,7 +262,6 @@ public synchronized void updateSchema(WikiReference wikiRef, boolean force)
* @param context
* the XWiki context.
* @return the database/schema name.
*
* @deprecated since 6.0 instead use {@link #getSchemaFromWikiName(String)}
*/
@Deprecated
Expand Down Expand Up @@ -312,7 +305,6 @@ public String getSchemaFromWikiName(WikiReference wikiRef) {
* the XWiki context.
* @return the database/schema name.
* @since XWiki Core 1.1.2, XWiki Core 1.2M2
*
* @deprecated since 6.0 instead use {@link #getSchemaFromWikiName(String)}
*/
@Deprecated
Expand All @@ -329,7 +321,6 @@ protected String getSchemaFromWikiName(XWikiContext context) {
* @param context
* @return
* @throws HibernateException
*
* @deprecated since 6.0 instead use {@link #getSchemaUpdateScript(Configuration, String)}
*/
@Deprecated
Expand Down Expand Up @@ -420,7 +411,6 @@ private void updateSchema(String[] createSQL, WikiReference wikiRef) {
*
* @param context
* @throws HibernateException
*
* @deprecated since 6.0 instead use {@link #checkHibernate(String)}
*/
@Deprecated
Expand All @@ -432,7 +422,6 @@ public void checkHibernate(XWikiContext context) throws HibernateException {
* Initializes hibernate and calls updateSchema if necessary
*
* @throws HibernateException
*
* @deprecated noop, bootstrap ensures hibernate is initialized
*/
@Deprecated(since = "6.5")
Expand All @@ -447,7 +436,6 @@ public void checkHibernate() throws HibernateException {
* @param context
* the XWiki context.
* @return true if multi-wiki, false otherwise.
*
* @deprecated since 6.0 instead use xwikiCfg.isVirtualMode()
*/
@Deprecated
Expand All @@ -461,7 +449,6 @@ protected boolean isVirtual(XWikiContext context) {
* @param session
* @param context
* @throws XWikiException
*
* @deprecated since 6.0 instead use {@link #setDatabase(Session, String)}
*/
@Deprecated
Expand Down Expand Up @@ -522,7 +509,6 @@ private String getCurrentSchema(Connection connection) {
* @param context
* the XWiki context to get database engine identifier
* @return the escaped version
*
* @deprecated since 6.0 instead use {@link #escapeSchema(String)}
*/
@Deprecated
Expand All @@ -546,7 +532,6 @@ protected String escapeSchema(String schema) {

/**
* Begins a transaction for the current database
*
*/
public boolean beginTransaction() throws HibernateException, XWikiException {
try {
Expand All @@ -564,7 +549,6 @@ public boolean beginTransaction() throws HibernateException, XWikiException {
* @param context
* @return
* @throws XWikiException
*
* @Deprecated since 6.0 instead use {@link #beginTransaction(String)}
*/
@Deprecated
Expand All @@ -577,7 +561,6 @@ public boolean beginTransaction(XWikiContext context) throws XWikiException {
*
* @throws HibernateException
* @throws XWikiException
*
*/
public boolean beginTransaction(@Nullable WikiReference wikiRef)
throws HibernateException, WikiMissingException, XWikiException {
Expand All @@ -591,7 +574,6 @@ public boolean beginTransaction(@Nullable WikiReference wikiRef)
* @param context
* @return
* @throws XWikiException
*
* @Deprecated since 6.0 instead use {@link #beginTransaction(String)}
*/
@Deprecated
Expand All @@ -608,7 +590,6 @@ public boolean beginTransaction(boolean withTransaction, XWikiContext context)
* @param context
* @return
* @throws XWikiException
*
* @Deprecated since 6.0 instead use {@link #beginTransaction(SessionFactory, String)}
*/
@Deprecated
Expand All @@ -625,7 +606,6 @@ public boolean beginTransaction(SessionFactory sfactory, boolean withTransaction
* @return
* @throws HibernateException
* @throws XWikiException
*
* @Deprecated since 6.0 instead use {@link #beginTransaction(SessionFactory, String)}
*/
@Deprecated
Expand All @@ -645,7 +625,6 @@ public boolean beginTransaction(SessionFactory sfactory, XWikiContext context)
*
* @throws HibernateException
* @throws XWikiException
*
*/
public boolean beginTransaction(
@Nullable SessionFactory sfactory,
Expand Down Expand Up @@ -676,7 +655,6 @@ public boolean beginTransaction(
* @param context
* @param commit
* should we commit or not
*
* @Deprecated since 6.0 instead use {@link #endTransaction(boolean)}
*/
@Deprecated
Expand All @@ -691,7 +669,6 @@ public void endTransaction(XWikiContext context, boolean commit, boolean withTra
* @param commit
* should we commit or not
* @throws HibernateException
*
* @Deprecated since 6.0 instead use {@link #endTransaction(boolean)}
*/
@Deprecated
Expand Down Expand Up @@ -852,7 +829,6 @@ public interface HibernateCallback<T> {
* - callback to execute
* @throws XWikiException
* if any error
*
* @Deprecated since 6.0 instead use {@link #execute(String, boolean, boolean, HibernateCallback)}
*/
@Deprecated
Expand Down Expand Up @@ -919,7 +895,6 @@ public <T> T execute(WikiReference wikiRef, boolean bTransaction, boolean doComm
* if any error
* @see #execute(XWikiContext, boolean, boolean,
* com.xpn.xwiki.store.XWikiHibernateBaseStore.HibernateCallback)
*
* @Deprecated since 6.0 instead use {@link #executeRead(String, boolean, HibernateCallback)}
*/
@Deprecated
Expand Down Expand Up @@ -959,7 +934,6 @@ public <T> T executeRead(WikiReference wikiRef, boolean bTransaction, HibernateC
* if any error
* @see #execute(XWikiContext, boolean, boolean,
* com.xpn.xwiki.store.XWikiHibernateBaseStore.HibernateCallback)
*
* @Deprecated since 6.0 instead use {@link #executeWrite(String, boolean, HibernateCallback)}
*/
@Deprecated
Expand Down
Loading