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 theDataHolderof 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 subscriptionbooleanisForced()trueif 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, saveChangesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getDataNamesMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelLessDataAwareAmetysObject
dataToJSON, dataToSAX, getModelItemTypeExtensionPoint, getType, getValue, getValue, getValueOfType, getValueOfType, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods 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 thisSubscriptionparentPath- the parentPath in the Ametys hierarchyfactory- the factory which created the activity
-
-
Method Details
-
getDataHolder
Description copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelLessDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelLessDataAwareAmetysObject- Returns:
- the
DataHolderof 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
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
-