Package org.jivesoftware.xmpp.workgroup

Examples of org.jivesoftware.xmpp.workgroup.WorkgroupManager


        // Create the generic reply packet.
        IQ reply = IQ.createResultIQ(packet);

        // Check that the sender of this IQ is an agent. If so
        // we throw an item not found exception.
        WorkgroupManager workgroupManager = WorkgroupManager.getInstance();
        try {
            workgroupManager.getAgentManager().getAgent(packet.getFrom());
        }
        catch (AgentNotFoundException e) {
            reply.setChildElement(packet.getChildElement().createCopy());
            reply.setError(new PacketError(PacketError.Condition.item_not_found));
            workgroup.send(reply);
View Full Code Here


     * @param imageName the name of the image.
     * @param workgroupName the name of the workgroup.
     * @return the image bytes found, otherwise null.
     */
    public byte[] getImage(String imageName, String workgroupName) {
        WorkgroupManager workgroupManager = WorkgroupManager.getInstance();
        JID workgroupJID = new JID(workgroupName);

        Workgroup workgroup;
        try {
            workgroup = workgroupManager.getWorkgroup(workgroupJID);
        }
        catch (UserNotFoundException e) {
            Log.error(e.getMessage(), e);
            return null;
        }
View Full Code Here

TOP

Related Classes of org.jivesoftware.xmpp.workgroup.WorkgroupManager

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.