Package wt.notify
Class NotifySubscriptionRecipient
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.notify._NotifySubscriptionRecipient
wt.notify.NotifySubscriptionRecipient
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,NetFactor,ObjectMappable,Persistable,DisplayIdentification
@GenAsPersistable(superClass=WTObject.class,serializable=EXTERNALIZABLE_BASIC,properties={@GeneratedProperty(name="subscriberRef",type=ObjectReference.class,supportedAPI=PUBLIC,javaDoc="Reference to the recipient object. This is a reference to either a WTUser, a WTGroup, a WTOrganization, or an ObjectSubscriptionListener.",accessors=@PropertyAccessors(getAccess=PRIVATE)),@GeneratedProperty(name="subscriberType",type=int.class,initialValue="NotifySubscriptionRecipient.UNSPECIFIED_SUBSCRIBER_TYPE",javaDoc="Integer that specifies the type of subscriber, either: Principal subscriber or Listener subscriber. Use the NotifySubscriptionRecipient class constants: WTPRINCIPAL_SUBSCRIBER, LISTENER_SUBSCRIBER to specify this value.",accessors=@PropertyAccessors(getAccess=PRIVATE)),@GeneratedProperty(name="addressType",type=int.class,initialValue="NotifySubscriptionRecipient.TO_ADDRESS",supportedAPI=PUBLIC,javaDoc="Integer that specifies how the recipient should be addressed when sending a notification email for this subscription, either: TO, CC, or BCC. Use the NotifySubscriptionRecipient class constants TO_ADDRESS, CC_ADDRESS, and BCC_ADDRESS to specify this value. If not specified, it defaults to TO_ADDRESS.")},foreignKeys=@GeneratedForeignKey(name="NotifySubscriptnRecipntLink",foreignKeyRole=@ForeignKeyRole(name="subscription",type=NotificationSubscription.class,constraints=@PropertyConstraints(required=true)),myRole=@MyRole(name="recipient",cardinality=ONE_TO_MANY,cascade=true)),tableProperties=@TableProperties(compositeIndex1="subscriptionReference.key.id",compositeIndex2="subscriberRef.key.id",compositeIndex3="subscriberRef.key.id + subscriptionReference.key.id",compositeIndex4="subscriptionReference.key.id + subscriberType"))
public class NotifySubscriptionRecipient
extends _NotifySubscriptionRecipient
Contains the information specific to a notification
subscription recipient (also known as a subscriber).
Recipients can be WTUsers, WTGroups, WTOrganizations, or
ObjectSubscriptionListeners. The attributes contained in this
class are the attributes that are unique to a subscription
recipient. In addition, this class contains a reference to
the NotificationSubscription object the recipient applies to.
A complete subscription consists of a single NotificationSubscription object, one or more NotifySubscriptionRecipient objects, and one or more NotifySubscriptionTarget objects.
Use the newNotifySubscriptionRecipient static factory method(s),
not the NotifySubscriptionRecipient constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Note that NotificationSubscriptionRecipient objects are created by Windchill when a subscription is created. Directly creating objects of this class is not supported.
Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intaddressType attribute constant.static final intaddressType attribute constant.static final intaddressType attribute constant.Fields inherited from class wt.notify._NotifySubscriptionRecipient
ADDRESS_TYPE, SUBSCRIBER_REF -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: SUBSCRIBER_REF.voidsetAddressType(int a_AddressType) Sets the value of the attribute: ADDRESS_TYPE.voidsetSubscriberRef(Object a_Subscriber) Sets the value of the attribute: SUBSCRIBER_REF.toString()Returns a string representation of the NotifySubscriptionRecipient object contents.Methods inherited from class wt.notify._NotifySubscriptionRecipient
getAddressTypeMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
-
Field Details
-
TO_ADDRESS
public static final int TO_ADDRESSaddressType attribute constant. If addressType is set to TO_ADDRESS, this subscription recipient is addressed as one of the TO users in notification emails sent for the subscription.
Supported API: true- See Also:
-
CC_ADDRESS
public static final int CC_ADDRESSaddressType attribute constant. If addressType is set to CC_ADDRESS, this subscription recipient is addressed as one of the CC users in notification emails sent for the subscription.
Supported API: true- See Also:
-
BCC_ADDRESS
public static final int BCC_ADDRESSaddressType attribute constant. If addressType is set to BCC_ADDRESS, this subscription recipient is addressed as one of the BCC users in notification emails sent for the subscription.
Supported API: true- See Also:
-
-
Method Details
-
setAddressType
Sets the value of the attribute: ADDRESS_TYPE. Integer that specifies how the recipient should be address when sending a notification email for this subscription, either TO, CC, or BCC. Use the NotifySubscriptionRecipient class constants TO_ADDRESS, CC_ADDRESS, BCC_ADDRESS to specify this value.
Supported API: true- Overrides:
setAddressTypein class_NotifySubscriptionRecipient- Parameters:
a_AddressType-- Throws:
WTPropertyVetoException- See Also:
-
getSubscriberRef
Gets the value of the attribute: SUBSCRIBER_REF. Reference to the recipient object. This is a reference to either a WTUser, a WTGroup, a WTOrganization or an ObjectSubscriptionListener.
Supported API: true- Returns:
- ObjectReference
-
setSubscriberRef
Sets the value of the attribute: SUBSCRIBER_REF. The attribute is set to the Object Reference of the input subscriber.
Supported API: true- Parameters:
a_Subscriber- The subscriber object. This must be either a WTUser, a WTGroup, a WTOrganization or an ObjectSubscriptionListener object.- Throws:
WTPropertyVetoExceptionWTException
-
toString
Returns a string representation of the NotifySubscriptionRecipient object contents.
Supported API: true
-