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,DataHolder,ModifiableDataHolder,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject
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 subscriptiongetDate()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 subscriptionbooleanisForced()trueif the subscription is forcedMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getComposite, getComposite, getDataHolder, getId, getMetadataHolder, getName, getNode, getParent, getParentDataHolder, getParentPath, getPath, getRepositoryData, getRootDataHolder, needsSave, remove, removeValue, rename, revertChanges, saveChanges, setValue, setValue, synchronizeValuesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
dataToJSON, dataToJSON, dataToSAX, dataToSAX, equals, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hashCode, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToSAX, dataToSAX, dataToSAX, dataToSAX, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
-
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 thisSubscriptionparentPath- the parentPath in the Ametys hierarchyfactory- the factory which created the activity
-
-
Method Details
-
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
trueif the subscription is forced- Returns:
trueif 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
-