Skip to content

Commit

Permalink
🎨 b3log#934
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 7, 2019
1 parent c659ba8 commit edb98ff
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://qiankunpingtai.cn">qiankunpingtai</a>
* @version 1.1.1.8, May 20, 2018
* @version 1.1.1.9, Jun 6, 2019
* @since 0.2.0
*/
@Repository
Expand Down Expand Up @@ -78,8 +78,8 @@ public JSONObject get(final String id) throws RepositoryException {
}

@Override
public void update(final String id, final JSONObject article) throws RepositoryException {
super.update(id, article);
public void update(final String id, final JSONObject article, final String... propertyNames) throws RepositoryException {
super.update(id, article, propertyNames);

article.put(Keys.OBJECT_ID, id);
articleCache.putArticle(article);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Comment repository.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.1.2, Jan 25, 2019
* @version 1.1.1.3, Jun 6, 2019
* @since 0.2.0
*/
@Repository
Expand Down Expand Up @@ -175,8 +175,8 @@ public JSONObject get(final String id) throws RepositoryException {
}

@Override
public void update(final String id, final JSONObject comment) throws RepositoryException {
super.update(id, comment);
public void update(final String id, final JSONObject comment, final String... propertyNames) throws RepositoryException {
super.update(id, comment, propertyNames);

comment.put(Keys.OBJECT_ID, id);
commentCache.putComment(comment);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* Option repository.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.1.0, Jul 16, 2017
* @version 1.2.1.1, Jun 6, 2019
* @since 0.2.0
*/
@Repository
Expand Down Expand Up @@ -74,8 +74,8 @@ public JSONObject get(final String id) throws RepositoryException {
}

@Override
public void update(final String id, final JSONObject option) throws RepositoryException {
super.update(id, option);
public void update(final String id, final JSONObject option, final String... propertyNames) throws RepositoryException {
super.update(id, option, propertyNames);

option.put(Keys.OBJECT_ID, id);
optionCache.putOption(option);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Tag repository.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.0.2, Aug 27, 2018
* @version 1.2.0.3, Jun 6, 2018
* @since 0.2.0
*/
@Repository
Expand Down Expand Up @@ -82,8 +82,8 @@ public void remove(final String id) throws RepositoryException {
}

@Override
public void update(final String id, final JSONObject article) throws RepositoryException {
super.update(id, article);
public void update(final String id, final JSONObject article, final String... propertyNames) throws RepositoryException {
super.update(id, article, propertyNames);

article.put(Keys.OBJECT_ID, id);
tagCache.putTag(article);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* User repository.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.1.2.2, Aug 27, 2018
* @version 2.1.2.3, Jun 6, 2019
* @since 0.2.0
*/
@Repository
Expand Down Expand Up @@ -71,14 +71,14 @@ public JSONObject get(final String id) throws RepositoryException {
}

@Override
public void update(final String id, final JSONObject user) throws RepositoryException {
public void update(final String id, final JSONObject user, final String... propertyNames) throws RepositoryException {
final JSONObject old = get(id);
if (null == old) {
return;
}

userCache.removeUser(old);
super.update(id, user);
super.update(id, user, propertyNames);
user.put(Keys.OBJECT_ID, id);
userCache.putUser(user);
}
Expand Down

0 comments on commit edb98ff

Please sign in to comment.