|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ArchiveManager
Manages the archive feature of Jive. Archiving provides an automated method of dealing with old content. Three different archiving modes are available, and are set on a per-community basis:
JiveContext.getArchiveManager()| Field Summary | |
|---|---|
static int |
DELETE_THREADS
An archive mode that specifies that threads should be deleted. |
static int |
MARK_THREADS
An archive mode that specifies that threads are marked as archived and left in their original community. |
static int |
MOVE_THREADS
An archive mode that specifies that threads should be moved to another community. |
| Method Summary | |
|---|---|
Community |
getArchiveCommunity(Community community)
Returns the "archive community" for the specified community. |
int |
getArchiveDays(Community community)
Returns the number of days that threads in community must be inactive before being archived. |
int |
getArchiveMode(Community community)
Returns the archive mode for the community. |
int |
getAutoArchiveInterval()
Returns the inverval between auto archive executions (in hours). |
Date |
getLastArchivedDate()
Returns the date the archiving process was last run. |
boolean |
isArchivingEnabled(Community community)
Returns true if archiving is enabled for the specified community. |
boolean |
isAutoArchiveEnabled()
Returns true if auto-archiving is enabled. |
void |
runArchiver()
Manually runs the archiving process. |
void |
setArchiveCommunity(Community community,
Community archiveCommunity)
Sets the "archive community" for the specified community. |
void |
setArchiveDays(Community archive,
int days)
Sets the number of days that threads in community must be inactive before being archived. |
void |
setArchiveMode(Community community,
int mode)
Returns the archive mode for the community. |
void |
setArchivingEnabled(Community community,
boolean enabled)
Enables or disables archiving for the specified community. |
void |
setAutoArchiveEnabled(boolean enabled)
Enables or disables auto-archiving. |
void |
setAutoArchiveInterval(int interval)
Sets the inverval between auto archive executions (in hours). |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Field Detail |
|---|
static final int MARK_THREADS
static final int DELETE_THREADS
static final int MOVE_THREADS
| Method Detail |
|---|
boolean isArchivingEnabled(Community community)
community - the community to check the status of.
void setArchivingEnabled(Community community,
boolean enabled)
throws UnauthorizedException
community - the community to set archiving enabled/disabled onenabled - true if archiving should be enabled for the community.
UnauthorizedException - if not an administrator of the community.int getArchiveDays(Community community)
community - the community to get the archive days for
void setArchiveDays(Community archive,
int days)
throws UnauthorizedException
archive - the community to set the archive days fordays - the number of days a thread must be inactive before being
archived.
UnauthorizedException - if not an admin of the community.int getArchiveMode(Community community)
If the MOVE_THREADS mode is being used, an "archive community" must be specified to move archived threads to.
community - the community to get the archive mode for
void setArchiveMode(Community community,
int mode)
throws UnauthorizedException
If the MOVE_THREADS mode is being used, an "archive community" must be specified to move archived threads to.
community - the community to set the archive mode formode - the archive mode.
UnauthorizedException - if not an administrator of the community.
Community getArchiveCommunity(Community community)
throws UnauthorizedException
community - the community to get the archive community for
UnauthorizedException - if not an admin of community or
does not have read permission on the archive community being returned.
void setArchiveCommunity(Community community,
Community archiveCommunity)
throws UnauthorizedException
community - the community to set the archive community forarchiveCommunity - the archive community to archive the community to
UnauthorizedException - if not an admin of community and
archiveCommunity.
boolean isAutoArchiveEnabled()
throws UnauthorizedException
UnauthorizedException - if not a system administrator.
void setAutoArchiveEnabled(boolean enabled)
throws UnauthorizedException
enabled - true if auto-archiving should be enabled.
UnauthorizedException - if not a system administrator.
int getAutoArchiveInterval()
throws UnauthorizedException
UnauthorizedException - if not a system administrator.
void setAutoArchiveInterval(int interval)
throws UnauthorizedException
interval - the interval betwen auto archive executions (in hours).
UnauthorizedException - if not a system administrator.
Date getLastArchivedDate()
throws UnauthorizedException
UnauthorizedException - if not a system administrator.
void runArchiver()
throws UnauthorizedException
UnauthorizedException - if not a system administrator.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||