public class ActivityConfiguration extends Object implements Serializable
ActivityDefinition
by the templateId. While an ActivityDefinition holds the default
settings of an activity and only exists as long the providing plugin is deployed, a configuration
can be used to overwrite these defaults and can be persisted to allow automatic expiration even
after the providing plugin has been removed.Constructor and Description |
---|
ActivityConfiguration(String templateId,
String staticName,
boolean external)
Create a new configuration for an activity definition
|
Modifier and Type | Method and Description |
---|---|
long |
getExpirationTimeout() |
String |
getStaticName() |
String |
getTemplateId() |
boolean |
isActive() |
boolean |
isDeactivatableByManager() |
boolean |
isDeletable() |
boolean |
isDeletableByUser() |
boolean |
isExternal() |
void |
setActive(boolean active)
Activate or deactivate the activity.
|
void |
setDeactivatableByManager(boolean deactivatable)
Whether the client manager should be allowed to deactivate the activity.
|
void |
setDeletable(boolean deletable) |
void |
setDeletableByUser(boolean deletableByUser)
Set whether authorized users are allowed to delete the messages of the activity.
|
void |
setExpirationTimeout(long timeoutInMillis)
Set the expiration timeout for the activity.
|
public ActivityConfiguration(String templateId, String staticName, boolean external)
templateId
- the ID which uniquely identifies the associated activity definitionstaticName
- the unlocalized display name of the associated activity definitionexternal
- whether activity messages of this type are created by external systemspublic long getExpirationTimeout()
public String getStaticName()
public String getTemplateId()
public boolean isActive()
public boolean isDeactivatableByManager()
public boolean isDeletable()
ActivityDefinition#setDeletable()
public boolean isDeletableByUser()
public boolean isExternal()
public void setActive(boolean active)
active
- true to activate the activity, false to deactivate itisActive()
public void setDeactivatableByManager(boolean deactivatable)
deactivatable
- true if the client manager should be allowed to deactivate the activity, false
otherwisepublic void setDeletable(boolean deletable)
deletable
- the deletable to setActivityDefinition#setDeletable()
public void setDeletableByUser(boolean deletableByUser)
deletableByUser
- true if authorized users can delete activity messages, false otherwisepublic void setExpirationTimeout(long timeoutInMillis)
timeoutInMillis
- the timeout in milliseconds after which an activity should expire automatically. A
value of zero or less means that the activity won't expire.#getCurrentExpirationTimeout()
Copyright © 2019 Communote team. All rights reserved.