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
aac7e56c
Unverified
Commit
aac7e56c
authored
Oct 23, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💡
#12861 更新注释
parent
9ddddeb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
src/main/java/org/b3log/solo/service/LinkMgmtService.java
src/main/java/org/b3log/solo/service/LinkMgmtService.java
+10
-11
No files found.
src/main/java/org/b3log/solo/service/LinkMgmtService.java
View file @
aac7e56c
...
@@ -32,7 +32,7 @@ import org.json.JSONObject;
...
@@ -32,7 +32,7 @@ import org.json.JSONObject;
* Link management service.
* Link management service.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
1, Nov 2, 2011
* @version 1.0.0.
2, Oct 23, 2019
* @since 0.4.0
* @since 0.4.0
*/
*/
@Service
@Service
...
@@ -55,8 +55,7 @@ public class LinkMgmtService {
...
@@ -55,8 +55,7 @@ public class LinkMgmtService {
* @param linkId the given link id
* @param linkId the given link id
* @throws ServiceException service exception
* @throws ServiceException service exception
*/
*/
public
void
removeLink
(
final
String
linkId
)
public
void
removeLink
(
final
String
linkId
)
throws
ServiceException
{
throws
ServiceException
{
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
try
{
try
{
...
@@ -80,13 +79,14 @@ public class LinkMgmtService {
...
@@ -80,13 +79,14 @@ public class LinkMgmtService {
* "link": {
* "link": {
* "oId": "",
* "oId": "",
* "linkTitle": "",
* "linkTitle": "",
* "linkAddress": ""
* "linkAddress": "",
* "linkDescription": "",
* "linkIcon": ""
* }
* }
* see {@link Link} for more details
* see {@link Link} for more details
* @throws ServiceException service exception
* @throws ServiceException service exception
*/
*/
public
void
updateLink
(
final
JSONObject
requestJSONObject
)
public
void
updateLink
(
final
JSONObject
requestJSONObject
)
throws
ServiceException
{
throws
ServiceException
{
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
try
{
try
{
...
@@ -118,8 +118,7 @@ public class LinkMgmtService {
...
@@ -118,8 +118,7 @@ public class LinkMgmtService {
* @param direction the specified direction, "up"/"down"
* @param direction the specified direction, "up"/"down"
* @throws ServiceException service exception
* @throws ServiceException service exception
*/
*/
public
void
changeOrder
(
final
String
linkId
,
final
String
direction
)
public
void
changeOrder
(
final
String
linkId
,
final
String
direction
)
throws
ServiceException
{
throws
ServiceException
{
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
try
{
try
{
...
@@ -170,14 +169,14 @@ public class LinkMgmtService {
...
@@ -170,14 +169,14 @@ public class LinkMgmtService {
* "link": {
* "link": {
* "linkTitle": "",
* "linkTitle": "",
* "linkAddress": "",
* "linkAddress": "",
* "linkDescription": "" // optional
* "linkDescription": "",
* "linkIcon": ""
* }
* }
* }, see {@link Link} for more details
* }, see {@link Link} for more details
* @return generated link id
* @return generated link id
* @throws ServiceException service exception
* @throws ServiceException service exception
*/
*/
public
String
addLink
(
final
JSONObject
requestJSONObject
)
public
String
addLink
(
final
JSONObject
requestJSONObject
)
throws
ServiceException
{
throws
ServiceException
{
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
final
Transaction
transaction
=
linkRepository
.
beginTransaction
();
try
{
try
{
...
...
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