-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,131 additions
and
2 deletions.
There are no files selected for viewing
84 changes: 84 additions & 0 deletions
84
logicaldoc-core/src/main/java/com/logicaldoc/core/parser/ParseParameters.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,84 @@ | ||
package com.logicaldoc.core.parser; | ||
|
||
import java.util.Locale; | ||
|
||
import com.logicaldoc.core.document.Document; | ||
|
||
/** | ||
* Some parameters to parse documents | ||
* | ||
* @author Marco Meschieri - LogicalDOC | ||
* @since 8.8.5 | ||
*/ | ||
public class ParseParameters { | ||
|
||
private Document document; | ||
|
||
private String fileName; | ||
|
||
private String fileVersion; | ||
|
||
private String encoding; | ||
|
||
private Locale locale; | ||
|
||
private String tenant; | ||
|
||
public ParseParameters(Document document, String filename, String fileVersion, String encoding, Locale locale, | ||
String tenant) { | ||
this.document = document; | ||
this.fileName = filename; | ||
this.fileVersion = fileVersion; | ||
this.encoding = encoding; | ||
this.locale = locale; | ||
this.tenant = tenant; | ||
} | ||
|
||
public Document getDocument() { | ||
return document; | ||
} | ||
|
||
public void setDocument(Document document) { | ||
this.document = document; | ||
} | ||
|
||
public String getFileName() { | ||
return fileName; | ||
} | ||
|
||
public void setFileName(String fileName) { | ||
this.fileName = fileName; | ||
} | ||
|
||
public String getFileVersion() { | ||
return fileVersion; | ||
} | ||
|
||
public void setFileVersion(String fileVersion) { | ||
this.fileVersion = fileVersion; | ||
} | ||
|
||
public String getEncoding() { | ||
return encoding; | ||
} | ||
|
||
public void setEncoding(String encoding) { | ||
this.encoding = encoding; | ||
} | ||
|
||
public Locale getLocale() { | ||
return locale; | ||
} | ||
|
||
public void setLocale(Locale locale) { | ||
this.locale = locale; | ||
} | ||
|
||
public String getTenant() { | ||
return tenant; | ||
} | ||
|
||
public void setTenant(String tenant) { | ||
this.tenant = tenant; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
logicaldoc-core/src/main/java/com/logicaldoc/core/searchengine/IndexException.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,27 @@ | ||
package com.logicaldoc.core.searchengine; | ||
|
||
/** | ||
* An error happened during indexing | ||
* | ||
* @author Marco Meschieri - LogicalDOC | ||
* @since 8.8.5 | ||
*/ | ||
public class IndexException extends Exception { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public IndexException() { | ||
super(); | ||
} | ||
|
||
public IndexException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public IndexException(String message) { | ||
super(message); | ||
} | ||
|
||
public IndexException(Throwable cause) { | ||
this(cause.getMessage(), cause); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
logicaldoc-core/src/main/java/com/logicaldoc/core/task/TaskException.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,27 @@ | ||
package com.logicaldoc.core.task; | ||
|
||
/** | ||
* An error happened during task esexcution | ||
* | ||
* @author Marco Meschieri - LogicalDOC | ||
* @since 8.8.5 | ||
*/ | ||
public class TaskException extends Exception { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public TaskException() { | ||
super(); | ||
} | ||
|
||
public TaskException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public TaskException(String message) { | ||
super(message); | ||
} | ||
|
||
public TaskException(Throwable cause) { | ||
this(cause.getMessage(), cause); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...doc-core/src/main/java/com/logicaldoc/core/threading/ThreadPoolNotAvailableException.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,19 @@ | ||
package com.logicaldoc.core.threading; | ||
|
||
/** | ||
* An error happened accessing a thread pool | ||
* | ||
* @author Marco Meschieri - LogicalDOC | ||
* @since 8.8.5 | ||
*/ | ||
public class ThreadPoolNotAvailableException extends Exception { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public ThreadPoolNotAvailableException(String pool) { | ||
this(pool, null); | ||
} | ||
|
||
public ThreadPoolNotAvailableException(String pool, Throwable cause) { | ||
super(pool + " pool was shutdown or not is not available", cause); | ||
} | ||
} |
158 changes: 158 additions & 0 deletions
158
...gui/src/main/java/com/logicaldoc/gui/common/client/beans/CalendarEventSearchCriteria.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,158 @@ | ||
package com.logicaldoc.gui.common.client.beans; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
/** | ||
* The criteria to search calendar events | ||
* | ||
* @author Marco Meschieri - LogicalDOC | ||
* @since 8.8.5 | ||
*/ | ||
public class CalendarEventSearchCriteria implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Start date (optional) | ||
*/ | ||
private Date startDate; | ||
|
||
/** | ||
* End date (optional) | ||
*/ | ||
private Date endDate; | ||
|
||
/** | ||
* optional | ||
*/ | ||
private Date expireFrom; | ||
|
||
/** | ||
* optional | ||
*/ | ||
private Date expireTo; | ||
|
||
/** | ||
* The frequency of the event (1,15, 30 ... optional) | ||
*/ | ||
private Integer frequency; | ||
|
||
/** | ||
* The title (used with like operator, optional) | ||
*/ | ||
private String title; | ||
|
||
/** | ||
* The type (used with like operator, optional) | ||
*/ | ||
private String type; | ||
|
||
/** | ||
* The subtype (used with like operator, optional) | ||
*/ | ||
private String subtype; | ||
|
||
/** | ||
* The status (used with like operator, optional) | ||
*/ | ||
private Integer status; | ||
|
||
/** | ||
* Maximum number of records (optional) | ||
*/ | ||
private Integer maxRecords; | ||
|
||
public CalendarEventSearchCriteria() { | ||
} | ||
|
||
public CalendarEventSearchCriteria(Date startDate, Date endDate, Date expireFrom, Date expireTo, | ||
Integer frequency) { | ||
super(); | ||
this.startDate = startDate; | ||
this.endDate = endDate; | ||
this.expireFrom = expireFrom; | ||
this.expireTo = expireTo; | ||
this.frequency = frequency; | ||
} | ||
|
||
public Date getStartDate() { | ||
return startDate; | ||
} | ||
|
||
public void setStartDate(Date startDate) { | ||
this.startDate = startDate; | ||
} | ||
|
||
public Date getEndDate() { | ||
return endDate; | ||
} | ||
|
||
public void setEndDate(Date endDate) { | ||
this.endDate = endDate; | ||
} | ||
|
||
public Date getExpireFrom() { | ||
return expireFrom; | ||
} | ||
|
||
public void setExpireFrom(Date expireFrom) { | ||
this.expireFrom = expireFrom; | ||
} | ||
|
||
public Date getExpireTo() { | ||
return expireTo; | ||
} | ||
|
||
public void setExpireTo(Date expireTo) { | ||
this.expireTo = expireTo; | ||
} | ||
|
||
public Integer getFrequency() { | ||
return frequency; | ||
} | ||
|
||
public void setFrequency(Integer frequency) { | ||
this.frequency = frequency; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getSubtype() { | ||
return subtype; | ||
} | ||
|
||
public void setSubtype(String subtype) { | ||
this.subtype = subtype; | ||
} | ||
|
||
public Integer getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(Integer status) { | ||
this.status = status; | ||
} | ||
|
||
public Integer getMaxRecords() { | ||
return maxRecords; | ||
} | ||
|
||
public void setMaxRecords(Integer maxRecords) { | ||
this.maxRecords = maxRecords; | ||
} | ||
} |
Oops, something went wrong.