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 String
Data name for the broadcast channel of the subscriptionstatic final String
Data name for the date of the subscriptionstatic final String
Data name for the day of the subscription if it's forcedstatic final String
Data name for the hour of the subscription if it's forcedstatic final String
Data name for the frequency of the subscriptionstatic final String
Data name to determine if the subscription is forced or notstatic final String
Avalon Role for subscription data typesstatic final String
Subscription node type name.static final String
Data name for the subscriberstatic final String
Data name for the subscribers groupstatic final String
Data 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 aAmetysObject
from a persistent JCR node.Retrieves the extension point with available modelItem types forSubscription
getSubscriptionType
(String subscriptionTypeId) Retrieve anSubscriptionType
void
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classSimpleAmetysObjectFactory
- Throws:
ServiceException
-
getAmetysObject
public Subscription getAmetysObject(javax.jcr.Node node, String parentPath) throws AmetysRepositoryException, javax.jcr.RepositoryException Description copied from interface:JCRAmetysObjectFactory
Creates aAmetysObject
from a persistent JCR node.- Specified by:
getAmetysObject
in interfaceJCRAmetysObjectFactory<SimpleAmetysObject>
- Overrides:
getAmetysObject
in classSimpleAmetysObjectFactory
- Parameters:
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy, may benull
if 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
-