Package org.apache.ws.muws.v1_0.capability.impl

Examples of org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl


        return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
    }

    public QueryRelationshipsByTypeResponseDocument queryRelationshipsByType(QueryRelationshipsByTypeDocument requestDoc)
    {
        return new RelationshipsCapabilityImpl(getResourceContext()).queryRelationshipsByType(requestDoc);
    }
View Full Code Here


     * @param event
     * @return ManagementEvent
     */
    private XmlObject buildManagementEvent(XmlObject event)
    {
        Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
        XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
        ManagementEventDocument mgmtEventDoc = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
        ManagementEventType mgmtEvent = mgmtEventDoc.getManagementEvent();
        XmlBeanUtils.addChildElement(mgmtEvent, event);
        return mgmtEventDoc;
View Full Code Here

            if ( operationalStatus == null )
            {
               throw new Exception( "The topic is not set" );
            }

            Situation aSituation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_AVAILABILITY ) );

            if ( firstEvent )
            {
               aSituation.setSeverity( (short) 4 );
               lStringC.setStringValue( "Available disk space is too low" );
               aSituation.setSuccessDisposition( Boolean.FALSE );
               m_correlationId = ((UUID) IdentifierUtils.UUID_VERSION_FOUR_GENERATOR.nextIdentifier()).toString();
            }
            else
            {
               aSituation.setSeverity( (short) 1 );
               lStringC.setStringValue( "Available disk space is OK" );
               aSituation.setSuccessDisposition( Boolean.TRUE );
            }

            LangStringImpl lstring = new LangStringImpl( lStringC );
            aSituation.setMessage( lstring );
            XmlBeansManagementEvent event = new XmlBeansManagementEvent( aSituation );

            // set resource Reporter and source  ResourceId
            ResourcePropertySet propSet      = m_notificationProducerResource.getResourcePropertySet(  );
            ResourceProperty    resourceId   = propSet.get( ApplicationPropertyQNames.RESOURCEID );
View Full Code Here

            if ( operationalStatus == null )
            {
               throw new Exception( "The topic is not set" );
            }

            Situation aSituation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_AVAILABILITY ) );

            if ( firstEvent )
            {
               aSituation.setSeverity( (short) 4 );
               lStringC.setStringValue( "Available disk space is too low" );
               aSituation.setSuccessDisposition( Boolean.FALSE );
               m_correlationId = UUID_GEN.generateUuid(  );
            }
            else
            {
               aSituation.setSeverity( (short) 1 );
               lStringC.setStringValue( "Available disk space is OK" );
               aSituation.setSuccessDisposition( Boolean.TRUE );
            }

            LangStringImpl lstring = new LangStringImpl( lStringC );
            aSituation.setMessage( lstring );
            XmlBeansManagementEvent event = new XmlBeansManagementEvent( aSituation );

            // set resource Reporter and source  ResourceId
            ResourcePropertySet propSet      = m_notificationProducerResource.getResourcePropertySet(  );
            ResourceProperty    resourceId   = propSet.get( ApplicationPropertyQNames.RESOURCEID );
View Full Code Here

            stateTransitionType.setTransitionIdentifier("urn:NONE");
            stateTransitionType.setTime(currentTime);
            notif.setCurrentTime(currentTime);

            Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
            XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
            ManagementEventDocument mgmtEvent = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType managementEvent = mgmtEvent.getManagementEvent();
            XmlBeanUtils.addChildElement(managementEvent, notifDocument);
View Full Code Here

        {
           //if its there then build a notif and publish

            try
            {
                Situation situation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_CREATE ) );
                XmlBeansManagementEvent xme = new XmlBeansManagementEvent( situation );
                RelationshipCreatedNotificationDocument relationshipCreatedDoc = RelationshipCreatedNotificationDocument.Factory.newInstance();
                org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipCreatedNotificationDocument.RelationshipCreatedNotification relationshipCreatedNotification = relationshipCreatedDoc.addNewRelationshipCreatedNotification();
                relationshipCreatedNotification.setRelationship(((RelationshipDocumentImpl)o).getRelationship());
                xme.setAny(new Object[]{relationshipCreatedDoc});
View Full Code Here

        if(deletedTopic != null)
        {
            //if its there then build a notif and publish
            try
            {
                Situation situation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_DESTROY ) );
                XmlBeansManagementEvent xme = new XmlBeansManagementEvent( situation );
                RelationshipDeletedNotificationDocument relationshipDeletedDoc = RelationshipDeletedNotificationDocument.Factory.newInstance();
                org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDeletedNotificationDocument.RelationshipDeletedNotification relationshipDeletedNotification = relationshipDeletedDoc.addNewRelationshipDeletedNotification();
                relationshipDeletedNotification.setRelationship(((RelationshipDocumentImpl)copiedRelationship).getRelationship());
                xme.setAny(new Object[]{relationshipDeletedDoc});
View Full Code Here

     * @return  ManagementEvent
     */
    private XmlObject buildManagementEvent(XmlObject event)
    {
        ManagementEventDocument me;
        Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
        XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
        me = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType managementEvent = me.getManagementEvent();
        XmlBeanUtils.addChildElement(managementEvent, event);
        return me;
View Full Code Here

        {
            me = (ManagementEventDocument) ((XmlObjectWrapper)m_propChangeManagementEvent).getXmlObject();
        }
        else
        {
            Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
            XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
            me = (ManagementEventDocument) ((XmlObjectWrapper)xme).getXmlObject();
        }

        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType managementEvent = me.getManagementEvent();
View Full Code Here

               aSituation.setSeverity( (short) 1 );
               lStringC.setStringValue( "Available disk space is OK" );
               aSituation.setSuccessDisposition( Boolean.TRUE );
            }

            LangStringImpl lstring = new LangStringImpl( lStringC );
            aSituation.setMessage( lstring );
            XmlBeansManagementEvent event = new XmlBeansManagementEvent( aSituation );

            // set resource Reporter and source  ResourceId
            ResourcePropertySet propSet      = m_notificationProducerResource.getResourcePropertySet(  );
View Full Code Here

TOP

Related Classes of org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl

Copyright © 2018 www.massapicom. 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.