Class SubscriptionFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
org.ametys.plugins.pagesubscription.SubscriptionFactory
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>,JCRAmetysObjectFactory<SimpleAmetysObject>,Component,Configurable,LogEnabled,Serviceable
AmetysObject factory associated with
Subscription-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringData name for the broadcast channel of the subscriptionstatic final StringData name for the date of the subscriptionstatic final StringData name for the day of the subscription if it's forcedstatic final StringData name for the hour of the subscription if it's forcedstatic final StringData name for the frequency of the subscriptionstatic final StringData name to determine if the subscription is forced or notstatic final StringAvalon Role for subscription data typesstatic final StringSubscription node type name.static final StringData name for the subscriberstatic final StringData name for the subscribers groupstatic final StringData name for the subscription type idFields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAmetysObject(javax.jcr.Node node, String parentPath) Creates aAmetysObjectfrom a persistent JCR node.Retrieves the extension point with available modelItem types forSubscriptiongetSubscriptionType(String subscriptionTypeId) Retrieve anSubscriptionTypevoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForIdMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
MODEL_ITEM_TYPE_EXTENSION_ROLE
Avalon Role for subscription data types -
NODE_TYPE
Subscription node type name.- See Also:
-
SUBSCRIPTION_TYPE_ID
Data name for the subscription type id- See Also:
-
SUBSCRIBER
Data name for the subscriber- See Also:
-
SUBSCRIBERS_GROUP
Data name for the subscribers group- See Also:
-
DATE
Data name for the date of the subscription- See Also:
-
FREQUENCY
Data name for the frequency of the subscription- See Also:
-
BROADCAST_CHANNEL
Data name for the broadcast channel of the subscription- See Also:
-
IS_FORCED
Data name to determine if the subscription is forced or not- See Also:
-
FORCED_DAY
Data name for the day of the subscription if it's forced- See Also:
-
FORCED_HOUR
Data name for the hour of the subscription if it's forced- See Also:
-
-
Constructor Details
-
SubscriptionFactory
public SubscriptionFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSimpleAmetysObjectFactory- Throws:
ServiceException
-
getAmetysObject
public Subscription getAmetysObject(javax.jcr.Node node, String parentPath) throws AmetysRepositoryException, javax.jcr.RepositoryException Description copied from interface:JCRAmetysObjectFactoryCreates aAmetysObjectfrom a persistent JCR node.- Specified by:
getAmetysObjectin interfaceJCRAmetysObjectFactory<SimpleAmetysObject>- Overrides:
getAmetysObjectin classSimpleAmetysObjectFactory- Parameters:
node- the JCR node to use.parentPath- the parent Path in the Ametys hierarchy, may benullif not known yet.- Returns:
- the object.
- Throws:
AmetysRepositoryException- if an error occurs.javax.jcr.RepositoryException- if a JCR error occurs.
-
getElementTypesExtensionPoint
Retrieves the extension point with available modelItem types forSubscription- Returns:
- the extension point with available modelItem types for
Subscription
-
getSubscriptionType
Retrieve anSubscriptionType- Parameters:
subscriptionTypeId- the type id- Returns:
- the subscription type
-