public class NoteStoringFailDefinition extends Object implements Serializable
Constructor and Description |
---|
NoteStoringFailDefinition()
Creates a fail definition with default settings, that is nothing will lead to a failure.
|
NoteStoringFailDefinition(boolean failOnUnresolvableUsers,
boolean failOnUnresolvableBlogs,
boolean failOnMissingBlogWriteAccess,
boolean failOnUninformableUser)
Creates a fail definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFailOnMissingBlogWriteAccess() |
boolean |
isFailOnUninformableUser() |
boolean |
isFailOnUnresolvableBlogs() |
boolean |
isFailOnUnresolvableUsers() |
void |
setFailOnMissingBlogWriteAccess(boolean failOnMissingBlogWriteAccess)
Specify whether to fail when the current user has no write access to one of the cross posting
blogs.
|
void |
setFailOnUninformableUser(boolean failOnUninformableUser)
Specify whether to fail when one of the users that should be informed cannot be informed
because of missing read access rights for the blog.
|
void |
setFailOnUnresolvableBlogs(boolean failOnUnresolvableBlogs)
Specify whether to fail when one of the cross posting blogs cannot be resolved to an existing
blog.
|
void |
setFailOnUnresolvableUsers(boolean failOnUnresolvableUsers)
Specify whether to fail when one of the notification targets cannot be resolved to an
existing user.
|
public NoteStoringFailDefinition()
public NoteStoringFailDefinition(boolean failOnUnresolvableUsers, boolean failOnUnresolvableBlogs, boolean failOnMissingBlogWriteAccess, boolean failOnUninformableUser)
failOnUnresolvableUsers
- whether to fail if a user cannot be resolved to an existing userfailOnUnresolvableBlogs
- whether to fail if a blog cannot be resolved to an existing blogfailOnMissingBlogWriteAccess
- whether to fail if a crosspost blog is not writablefailOnUninformableUser
- whether to fail if a user to be notified has no read access to a blogpublic boolean isFailOnMissingBlogWriteAccess()
public boolean isFailOnUninformableUser()
public boolean isFailOnUnresolvableBlogs()
public boolean isFailOnUnresolvableUsers()
public void setFailOnMissingBlogWriteAccess(boolean failOnMissingBlogWriteAccess)
failOnMissingBlogWriteAccess
- true if the situation should lead to failurepublic void setFailOnUninformableUser(boolean failOnUninformableUser)
failOnUninformableUser
- true if the situation should lead to failurepublic void setFailOnUnresolvableBlogs(boolean failOnUnresolvableBlogs)
failOnUnresolvableBlogs
- true if the situation should lead to failurepublic void setFailOnUnresolvableUsers(boolean failOnUnresolvableUsers)
failOnUnresolvableUsers
- true if the situation should lead to failureCopyright © 2019 Communote team. All rights reserved.