모든 메소드는 restoreArticleFromTrash를 제외한 호출입니다. 다른 방법이 있습니다.
아래는 전체 클래스 파일
@Component (서비스 = ServiceWrapper.class)
공용 클래스 CustomJournalArticleServiceWrapper이 JournalArticleServiceWrapper를 확장을 추가 {
public CustomJournalArticleServiceWrapper() {
super(null);
}
@Override
public JournalArticle addArticle(long groupId, long folderId, long classNameId, long classPK, String articleId,
boolean autoArticleId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String content,
String ddmStructureKey, String ddmTemplateKey, String layoutUuid, int displayDateMonth, int displayDateDay,
int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth,
int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute,
boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour,
int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, String smallImageURL,
File smallFile, Map<String, byte[]> images, String articleURL, ServiceContext serviceContext)
throws PortalException {
return super.addArticle(groupId, folderId, classNameId, classPK, articleId,
autoArticleId, titleMap, descriptionMap, content, ddmStructureKey, ddmTemplateKey, layoutUuid,
displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute,
expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute,
neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour, reviewDateMinute,
neverReview, indexable, smallImage, smallImageURL, smallFile, images, articleURL, serviceContext);
}
@Override
public JournalArticle updateArticle(long groupId, long folderId, String articleId, double version,
Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String content, String ddmStructureKey,
String ddmTemplateKey, String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear,
int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay,
int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire,
int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute,
boolean neverReview, boolean indexable, boolean smallImage, String smallImageURL, File smallFile,
Map<String, byte[]> images, String articleURL, ServiceContext serviceContext) throws PortalException {
return super.updateArticle(groupId, folderId, articleId, version, titleMap,
descriptionMap, content, ddmStructureKey, ddmTemplateKey, layoutUuid, displayDateMonth, displayDateDay,
displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay,
expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, reviewDateMonth,
reviewDateDay, reviewDateYear, reviewDateHour, reviewDateMinute, neverReview, indexable, smallImage,
smallImageURL, smallFile, images, articleURL, serviceContext);
}
@Override
public JournalArticle moveArticleToTrash(long groupId, String articleId) throws PortalException {
// TODO Auto-generated method stub
System.out.println("::::::::::move article to the trash:::::::::::::");
return super.moveArticleToTrash(groupId, articleId);
}
@Override
public void restoreArticleFromTrash(long groupId, String articleId) throws PortalException {
// TODO Auto-generated method stub
System.out.println(":::::::::::::restote article from the trash::::::::::::");
super.restoreArticleFromTrash(groupId, articleId);
}
}
자세한 정보를 제공해야합니다. 이 메소드는 어디에 있습니까? 구성 요소를 어떻게 등록합니까? –
JournalArticleService에 대한 서비스 래퍼를 만들려고합니까? 전체 수업을 게시 할 수 있습니까? – clav
serviceWrapper 클래스를 추가했습니다. –