|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.unitedfront2.domain.communication.BlogEntry
public class BlogEntry
ブログの記事を表すドメインクラスです。
| フィールドの概要 | |
|---|---|
protected Log |
logger
ログ |
| コンストラクタの概要 | |
|---|---|
BlogEntry()
|
|
BlogEntry(Message entry)
|
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final transient Log logger
| コンストラクタの詳細 |
|---|
public BlogEntry()
public BlogEntry(Message entry)
| メソッドの詳細 |
|---|
public boolean equals(Object other)
Object 内の equalspublic int hashCode()
Object 内の hashCodepublic String toString()
Object 内の toStringpublic boolean identify(BlogEntry other)
Identifiable の記述:equals メソッドとは異なり、そのドメインオブジェクトを一意に識別できる最小のプ
ロパティを用いて同一性を判別します。特に説明がない限り、比較には主キーとなるプロパティが利用されま
す。このドメインオブジェクト自身または引数に指定したドメインオブジェクトに主キーが設定されていない場
合、false が返されます。一般的な実装例を示します。
public boolean identify(Domain other) {
if (id == null) {
return false;
}
return id.equals(other.getId());
}
Identifiable<BlogEntry> 内の identifyother - ドメインオブジェクト
true 、そうでなければ falsepublic void store()
Blog.post(BlogEntry) を利用してください。
Storable 内の storepublic void delete()
Deletable 内の deletepublic boolean canReadAccess()
public boolean canReadAccess(int userId)
public boolean canWriteAccess()
public boolean canWriteAccess(int userId)
public User getAuthor()
public Integer getAuthorId()
public String getCode()
public Integer getId()
public Date getRegistrationDate()
public Date getLastUpdateDate()
public User getOwner()
public Integer getOwnerId()
public AccessControl getReadAccessControl()
public MessageEntry getRequiredEntry()
public AccessControl getWriteAccessControl()
public void readAccess()
throws AccessDeniedException
AccessDeniedException
public void readAccess(int userId)
throws AccessDeniedException
AccessDeniedExceptionpublic void retrieveAuthor()
public void retrieveOwner()
public void writeAccess()
throws AccessDeniedException
AccessDeniedException
public void writeAccess(int userId)
throws AccessDeniedException
AccessDeniedExceptionpublic void retrieveComments()
public void retrieveCommenters()
public void retrieveCommenterProfiles()
public void retrieveCommentCount()
public void post(Comment comment)
comment - コメントpublic Comment findComment(int id)
id - コメント ID
nullpublic Message getEntry()
public void setEntry(Message entry)
public List<Comment> getComments()
public int getCommentCount()
public void setBlogDao(BlogDao blogDao)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||