Examples of Participants


Examples of org.apache.cxf.sts.request.Participants

            AudienceRestrictionBean audienceRestriction = new AudienceRestrictionBean();
            audienceRestriction.setAudienceURIs(Collections.singletonList(appliesToAddress));
            audienceRestrictions.add(audienceRestriction);
        }
       
        Participants participants = providerParameters.getTokenRequirements().getParticipants();
        if (participants != null) {
            String address =
                extractAddressFromParticipantsEPR(participants.getPrimaryParticipant());
            if (address != null) {
                AudienceRestrictionBean audienceRestriction = new AudienceRestrictionBean();
                audienceRestriction.setAudienceURIs(Collections.singletonList(address));
                audienceRestrictions.add(audienceRestriction);
            }

            if (participants.getParticipants() != null) {
                for (Object participant : participants.getParticipants()) {
                    if (participant != null) {
                        address = extractAddressFromParticipantsEPR(participant);
                        if (address != null) {
                            AudienceRestrictionBean audienceRestriction = new AudienceRestrictionBean();
                            audienceRestriction.setAudienceURIs(Collections.singletonList(address));
View Full Code Here

Examples of org.apache.cxf.sts.request.Participants

    protected List<AudienceRestrictionBean> createAudienceRestrictions(
        TokenProviderParameters providerParameters
    ) {
        List<AudienceRestrictionBean> audienceRestrictions = new ArrayList<AudienceRestrictionBean>();
       
        Participants participants = providerParameters.getTokenRequirements().getParticipants();
        if (participants != null) {
            String address =
                extractAddressFromParticipantsEPR(participants.getPrimaryParticipant());
            if (address != null) {
                AudienceRestrictionBean audienceRestriction = new AudienceRestrictionBean();
                audienceRestriction.setAudienceURIs(Collections.singletonList(address));
                audienceRestrictions.add(audienceRestriction);
            }

            if (participants.getParticipants() != null) {
                for (Object participant : participants.getParticipants()) {
                    if (participant != null) {
                        address = extractAddressFromParticipantsEPR(participant);
                        if (address != null) {
                            AudienceRestrictionBean audienceRestriction = new AudienceRestrictionBean();
                            audienceRestriction.setAudienceURIs(Collections.singletonList(address));
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.Participants

    public void insertParticipant() {
        graphController.setUpdateInProgress(true);
        Participant toInsert = null;

        //CUSTOM
        Participants pars = null;
        if (JaWE.BASIC_MODE) {
            pars = this.getJaWEController().getSelectionManager().getWorkingPKG().getParticipants();
        } else {
            pars = getGraph().getWorkflowProcess().getParticipants();
        }
        //END CUSTOM

        String idForVO = null;
        boolean insertIntoCollection = false;
        if (GraphEAConstants.PARTICIPANT_TYPE_FREE_TEXT_EXPRESSION.equals(subType)) {
            if (!getGraphManager().isFreeTextExpressionParticipantShown()) {
                toInsert = FreeTextExpressionParticipant.getInstance();
                idForVO = toInsert.getId();
                setSelectionMode();
            } else {
                return;
            }
        } else if (GraphEAConstants.PARTICIPANT_TYPE_COMMON_EXPRESSION.equals(subType)) {
            toInsert = CommonExpressionParticipants.getInstance().generateCommonExpressionParticipant(getGraph().getXPDLObject());
            idForVO = CommonExpressionParticipants.getInstance().getIdForVisualOrderEA(toInsert.getId());
        } else {
            toInsert = JaWEManager.getInstance().getXPDLObjectFactory().createXPDLObject(
                    pars, subType, false);
            idForVO = toInsert.getId();
            insertIntoCollection = true;
        }
        JaWEManager.getInstance().getJaWEController().startUndouableChange();
        if (insertIntoCollection) {
            pars.add(toInsert);
        }
        List vo = GraphUtilities.getParticipantVisualOrder(getGraph().getXPDLObject());
        vo.add(idForVO);
        GraphUtilities.setParticipantVisualOrder(getGraph().getXPDLObject(), vo);
        getGraphManager().insertParticipantAndArrangeParticipants(toInsert);
View Full Code Here

Examples of org.opensaml.ws.wstrust.Participants

public class ParticipantsUnmarshaller extends AbstractWSTrustObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Participants participants = (Participants) parentXMLObject;
       
        if (childXMLObject instanceof Primary) {
            participants.setPrimary((Primary) childXMLObject);
        } else if (childXMLObject instanceof Participant) {
            participants.getParticipants().add((Participant) childXMLObject);
        } else {
            participants.getUnknownXMLObjects().add(childXMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.Participants

public class ParticipantsUnmarshaller extends AbstractWSTrustObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Participants participants = (Participants) parentXMLObject;
       
        if (childXMLObject instanceof Primary) {
            participants.setPrimary((Primary) childXMLObject);
        } else if (childXMLObject instanceof Participant) {
            participants.getParticipants().add((Participant) childXMLObject);
        } else {
            participants.getUnknownXMLObjects().add(childXMLObject);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.