Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
d43edac9
Commit
d43edac9
authored
Feb 25, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
javadoc 链接修复
parent
88cdd063
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
+7
-16
src/main/java/org/b3log/solo/processor/util/Filler.java
src/main/java/org/b3log/solo/processor/util/Filler.java
+7
-7
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+0
-9
No files found.
src/main/java/org/b3log/solo/processor/util/Filler.java
View file @
d43edac9
...
@@ -70,7 +70,7 @@ import org.json.JSONObject;
...
@@ -70,7 +70,7 @@ import org.json.JSONObject;
* Filler utilities.
* Filler utilities.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.11.13,
Dec 17, 2015
* @version 1.5.11.13,
Feb 26, 2017
* @since 0.3.1
* @since 0.3.1
*/
*/
@Service
@Service
...
@@ -908,7 +908,7 @@ public class Filler {
...
@@ -908,7 +908,7 @@ public class Filler {
* @param author the specified author
* @param author the specified author
* @param preference the specified preference
* @param preference the specified preference
* @throws ServiceException service exception
* @throws ServiceException service exception
* @see #setArticlesExProperties(
java.util.List, org.json.
JSONObject)
* @see #setArticlesExProperties(
HttpServletRequest, List, JSONObject,
JSONObject)
*/
*/
private
void
setArticleExProperties
(
final
HttpServletRequest
request
,
private
void
setArticleExProperties
(
final
HttpServletRequest
request
,
final
JSONObject
article
,
final
JSONObject
author
,
final
JSONObject
preference
)
final
JSONObject
article
,
final
JSONObject
author
,
final
JSONObject
preference
)
...
@@ -970,7 +970,7 @@ public class Filler {
...
@@ -970,7 +970,7 @@ public class Filler {
* @param article the specified article
* @param article the specified article
* @param preference the specified preference
* @param preference the specified preference
* @throws ServiceException service exception
* @throws ServiceException service exception
* @see #setArticlesExProperties(
java.util.List, org.json.
JSONObject)
* @see #setArticlesExProperties(
HttpServletRequest, List,
JSONObject)
*/
*/
private
void
setArticleExProperties
(
final
HttpServletRequest
request
,
private
void
setArticleExProperties
(
final
HttpServletRequest
request
,
final
JSONObject
article
,
final
JSONObject
preference
)
throws
ServiceException
{
final
JSONObject
article
,
final
JSONObject
preference
)
throws
ServiceException
{
...
@@ -1016,7 +1016,7 @@ public class Filler {
...
@@ -1016,7 +1016,7 @@ public class Filler {
* Sets some extra properties into the specified article with the specified author and preference.
* Sets some extra properties into the specified article with the specified author and preference.
*
*
* <p>
* <p>
* The batch version of method {@linkplain #setArticleExProperties(
org.json.JSONObject, org.json.
JSONObject)}.
* The batch version of method {@linkplain #setArticleExProperties(
HttpServletRequest, JSONObject, JSONObject,
JSONObject)}.
* </p>
* </p>
*
*
* <p>
* <p>
...
@@ -1035,7 +1035,7 @@ public class Filler {
...
@@ -1035,7 +1035,7 @@ public class Filler {
* @param author the specified author
* @param author the specified author
* @param preference the specified preference
* @param preference the specified preference
* @throws ServiceException service exception
* @throws ServiceException service exception
* @see #setArticleExProperties(
org.json.JSONObject, org.json.
JSONObject)
* @see #setArticleExProperties(
HttpServletRequest, JSONObject, JSONObject,
JSONObject)
*/
*/
public
void
setArticlesExProperties
(
final
HttpServletRequest
request
,
public
void
setArticlesExProperties
(
final
HttpServletRequest
request
,
final
List
<
JSONObject
>
articles
,
final
JSONObject
author
,
final
JSONObject
preference
)
final
List
<
JSONObject
>
articles
,
final
JSONObject
author
,
final
JSONObject
preference
)
...
@@ -1049,7 +1049,7 @@ public class Filler {
...
@@ -1049,7 +1049,7 @@ public class Filler {
* Sets some extra properties into the specified article with the specified preference.
* Sets some extra properties into the specified article with the specified preference.
*
*
* <p>
* <p>
* The batch version of method {@linkplain #setArticleExProperties(
org.json.JSONObject, org.json.
JSONObject)}.
* The batch version of method {@linkplain #setArticleExProperties(
HttpServletRequest, JSONObject,
JSONObject)}.
* </p>
* </p>
*
*
* <p>
* <p>
...
@@ -1067,7 +1067,7 @@ public class Filler {
...
@@ -1067,7 +1067,7 @@ public class Filler {
* @param articles the specified articles
* @param articles the specified articles
* @param preference the specified preference
* @param preference the specified preference
* @throws ServiceException service exception
* @throws ServiceException service exception
* @see #setArticleExProperties(
org.json.JSONObject, org.json.
JSONObject)
* @see #setArticleExProperties(
HttpServletRequest, JSONObject,
JSONObject)
*/
*/
public
void
setArticlesExProperties
(
final
HttpServletRequest
request
,
public
void
setArticlesExProperties
(
final
HttpServletRequest
request
,
final
List
<
JSONObject
>
articles
,
final
JSONObject
preference
)
final
List
<
JSONObject
>
articles
,
final
JSONObject
preference
)
...
...
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
d43edac9
...
@@ -544,9 +544,6 @@ public class ArticleQueryService {
...
@@ -544,9 +544,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
article
.
put
(
ARTICLE_UPDATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_UPDATE_DATE
)).
getTime
());
article
.
put
(
ARTICLE_UPDATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_UPDATE_DATE
)).
getTime
());
// Markdown to HTML for content and abstract
markdown
(
article
);
// Remove unused properties
// Remove unused properties
for
(
int
j
=
0
;
j
<
excludes
.
length
();
j
++)
{
for
(
int
j
=
0
;
j
<
excludes
.
length
();
j
++)
{
article
.
remove
(
excludes
.
optString
(
j
));
article
.
remove
(
excludes
.
optString
(
j
));
...
@@ -609,9 +606,6 @@ public class ArticleQueryService {
...
@@ -609,9 +606,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
// Markdown to HTML for content and abstract
markdown
(
article
);
ret
.
add
(
article
);
ret
.
add
(
article
);
}
}
...
@@ -915,9 +909,6 @@ public class ArticleQueryService {
...
@@ -915,9 +909,6 @@ public class ArticleQueryService {
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
article
.
put
(
ARTICLE_CREATE_TIME
,
((
Date
)
article
.
get
(
ARTICLE_CREATE_DATE
)).
getTime
());
// Markdown to HTML for content and abstract
markdown
(
article
);
ret
.
add
(
article
);
ret
.
add
(
article
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment