|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.impl.BaseRecentActivityInfoProvider
public abstract class BaseRecentActivityInfoProvider
Provides a base implementation of RecentActivityInfoProvider to simplify the
implementation of such providers. Default behavior is documented in the javadoc of each method.
| Constructor Summary | |
|---|---|
BaseRecentActivityInfoProvider()
|
|
| Method Summary | |
|---|---|
boolean |
eventsHandledExclusivelyByCustomListener()
In most cases, events are to be handled by the info provider. |
User |
getAssignedUser(JiveObject object,
Activity activity)
Most activities do not involve assignment to a user, so this returns null. |
abstract ActivityEventHandlingStrategy |
getEventHandlingStrategy()
Subclasses must provide their own event handling strategy, which may be null, to use the built-in default ones -- see com.jivesoftware.community.impl.activity.DefaultContainerActivityEventHandlingStrategy and
DefaultContentActivityEventHandlingStrategy. |
String |
getObjectUrl(JiveObject object,
boolean constructAbsoluteURL)
The com.jivesoftware.community.web.JiveResourceResolver in most cases should be able to
construct a relative link for the object. |
boolean |
isHideActivityDetail(Activity activity)
In most cases, the activity is visible, with no additional perm checks. |
boolean |
isUserAuthorizedToViewActivity(Activity activity,
User user)
By default, the user is authorized to view the activity if the proxied object can be loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseRecentActivityInfoProvider()
| Method Detail |
|---|
public boolean isUserAuthorizedToViewActivity(Activity activity,
User user)
isUserAuthorizedToViewActivity in interface RecentActivityInfoProvideractivity - the activityuser - the user
public User getAssignedUser(JiveObject object,
Activity activity)
getAssignedUser in interface RecentActivityInfoProviderobject - the jive objectactivity - the activity
public String getObjectUrl(JiveObject object,
boolean constructAbsoluteURL)
com.jivesoftware.community.web.JiveResourceResolver in most cases should be able to
construct a relative link for the object.
getObjectUrl in interface RecentActivityInfoProviderobject - the jive objectconstructAbsoluteURL -
public boolean isHideActivityDetail(Activity activity)
isHideActivityDetail in interface RecentActivityInfoProvideractivity - the activity
public boolean eventsHandledExclusivelyByCustomListener()
eventsHandledExclusivelyByCustomListener in interface RecentActivityInfoProviderpublic abstract ActivityEventHandlingStrategy getEventHandlingStrategy()
com.jivesoftware.community.impl.activity.DefaultContainerActivityEventHandlingStrategy and
DefaultContentActivityEventHandlingStrategy.
getEventHandlingStrategy in interface RecentActivityInfoProvider
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||