Package com.bea.wcp.profile
Interface ProfileService
- All Known Subinterfaces:
ProfileServiceSpi
- All Known Implementing Classes:
ProfileServiceCached,ProfileServiceSpiImplBase,WlssProfileService
public interface ProfileService
Starting point for accessing the Profile service.
The ProfileService is stored as an attribute of the ServletContext.
For example in a Servlet, the following example illustrates how to obtain a reference to the service:
ProfileService psvc = (ProfileService) getServletContext().getAttribute(ProfileService.PROFILE_SERVICE);
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe string to be used to look up the ProfileService in the ServletContext attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteDocument(String docSel) Deletes a document.voiddeleteDocument(javax.servlet.sip.Address requestor, String docSel) Deletes a document.getDocument(String docSel) Gets a document.getDocument(javax.servlet.sip.Address requestor, String docSel) Gets a document.voidputDocument(String docSel, Document doc) Updates a document.voidputDocument(javax.servlet.sip.Address requestor, String docSel, Document doc) Updates a document.subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) Subscribes to change notifications for a document described by the docSel document selector.subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) Subscribes to change notifications for a document described by the docSel document selector.subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) Subscribes to change notifications for a document described by the docSel document selector.subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) Subscribes to change notifications for a document described by the docSel document selector.
-
Field Details
-
PROFILE_SERVICE
The string to be used to look up the ProfileService in the ServletContext attributes.- See Also:
-
-
Method Details
-
getDocument
Gets a document.- Parameters:
docSel- the document selector to use- Returns:
- the Document
- Throws:
ProfileException
-
getDocument
Gets a document.- Parameters:
requestor- the party making the requestdocSel- the Document- Returns:
- the Document retrieved
- Throws:
ProfileException
-
putDocument
Updates a document.- Parameters:
docSel- the document selector to usedoc- the Document to update- Throws:
ProfileException
-
putDocument
void putDocument(javax.servlet.sip.Address requestor, String docSel, Document doc) throws ProfileException Updates a document.- Parameters:
requestor- the party making the requestdocSel- the document selector to usedoc- the Document to update- Throws:
ProfileException
-
deleteDocument
Deletes a document.- Parameters:
docSel- the document selector to use- Throws:
ProfileException
-
deleteDocument
Deletes a document.- Parameters:
requestor- the party ordering the deletedocSel- the document selector to use- Throws:
ProfileException
-
subscribe
ProfileSubscription subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) throws ProfileException Subscribes to change notifications for a document described by the docSel document selector. The subscription is assumed to run forever. This is delegated to thesubscribemethod.- Parameters:
session- The session interested in this subscriptiondocSel- The document Selectorinfo- Extra information to be passed in the callback- Throws:
ProfileException
-
subscribe
ProfileSubscription subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) throws ProfileException Subscribes to change notifications for a document described by the docSel document selector. The subscription is assumed to run forever. This is delegated to thesubscribemethod.- Parameters:
subscriber- the party making the subscriptionsession- The session interested in this subscriptiondocSel- The document Selectorinfo- Extra information to be passed in the callback- Throws:
ProfileException
-
subscribe
ProfileSubscription subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) throws ProfileException Subscribes to change notifications for a document described by the docSel document selector. The subscription lasts for duration seconds.- Parameters:
session- The session interested in this subscriptiondocSel- The document Selectorduration- The length of the subscription in secondsinfo- Extra information to be passed in the callback- Returns:
- the new ProfileSubscription
- Throws:
ProfileException
-
subscribe
ProfileSubscription subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) throws ProfileException Subscribes to change notifications for a document described by the docSel document selector. The subscription lasts for duration seconds.- Parameters:
subscriber- The party making the subscription.session- The session interested in this subscriptiondocSel- The document Selectorduration- The length of the subscription in secondsinfo- Extra information to be passed in the callback.- Returns:
- the new ProfileSubscription
- Throws:
ProfileException
-