Class Subscription
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<SubscriptionFactory>
org.ametys.plugins.pagesubscription.Subscription
- All Implemented Interfaces:
AmetysObject
,DataAwareAmetysObject
,ModelLessDataAwareAmetysObject
,ModifiableModelLessDataAwareAmetysObject
,DataHolder
,ModelLessDataHolder
,ModifiableDataHolder
,ModifiableModelLessDataHolder
,JCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableAmetysObject
,RemovableAmetysObject
public class Subscription
extends SimpleAmetysObject<SubscriptionFactory>
implements ModifiableModelLessDataAwareAmetysObject
Object representing an subscription
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscription
(javax.jcr.Node node, String parentPath, SubscriptionFactory factory) Creates anSubscription
. -
Method Summary
Modifier and TypeMethodDescriptionGet the list of broadcast channel of the subscriptionReturns theDataHolder
of thisAmetysObject
.getDate()
Get the date of the subscription.Get the frequency timing hour if the subscription is forced.Get the frequency of the subscriptiongetSite()
Get the site of the subscriptionGet the subscriber of the subscriptionGet the subscribers group of the subscriptionGet the type of the subscriptionboolean
isForced()
true
if the subscription is forcedMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getDataNames
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToJSON, dataToSAX, getModelItemTypeExtensionPoint, getType, getValue, getValue, getValueOfType, getValueOfType, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelLessDataAwareAmetysObject
getComposite, getComposite, getParentDataHolder, getRepositoryData, getRootDataHolder, removeValue, setValue, setValue, synchronizeValues
-
Field Details
-
ACTIVITY_ID_KEY
key used to store the activity id when serialized- See Also:
-
ACTIVITY_NAME_KEY
key used to store the activity name when serialized- See Also:
-
-
Constructor Details
-
Subscription
Creates anSubscription
.- Parameters:
node
- the node backing thisSubscription
parentPath
- the parentPath in the Ametys hierarchyfactory
- the factory which created the activity
-
-
Method Details
-
getDataHolder
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelLessDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelLessDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
getSubscriptionType
Get the type of the subscription- Returns:
- the subscription type
-
getSubscriber
Get the subscriber of the subscription- Returns:
- the subscriber subscription
-
getSubscribersGroup
Get the subscribers group of the subscription- Returns:
- the subscribers group subscription
-
getBroadcastChannels
Get the list of broadcast channel of the subscription- Returns:
- the list of broadcast channel
-
getFrequency
Get the frequency of the subscription- Returns:
- the frequency
-
isForced
true
if the subscription is forced- Returns:
true
if the subscription is forced
-
getForceFrequencyTiming
Get the frequency timing hour if the subscription is forced.- Returns:
- the frequency timing
-
getDate
Get the date of the subscription.- Returns:
- the date of the subscription.
-
getSite
Get the site of the subscription- Returns:
- the site
-