• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CreateWorkgroup类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.jivesoftware.openfire.fastpath.commands.CreateWorkgroup的典型用法代码示例。如果您正苦于以下问题:Java CreateWorkgroup类的具体用法?Java CreateWorkgroup怎么用?Java CreateWorkgroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

CreateWorkgroup类属于org.jivesoftware.openfire.fastpath.commands包,在下文中一共展示了CreateWorkgroup类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: start

点赞 3

import org.jivesoftware.openfire.fastpath.commands.CreateWorkgroup; //导入依赖的package包/类
public void start() {
    // Enable the shared secret SASL mechanism, which the Fastpath web client will use.
    // We use a custom SASL mechanism so that web-based customer chats can login without
    // a username or password. However, a shared secret key is still required so that
    // anonymous login doesn't have to be enabled for the whole server.
    if (!JiveSharedSecretSaslServer.isSharedSecretAllowed()) {
        JiveSharedSecretSaslServer.setSharedSecretAllowed( true );
    }

    // If the database was just created then create the "demo" user and "demo" workgroup
    // Workgroup creation requires MUC service address so we need to run this code after the
    // disco stuff
    if (!JiveGlobals.getBooleanProperty("fastpath.database.setup")) {
        boolean createUser = createDemoUser();
        if (createUser) {
            createDemoWorkgroup();
        }
        JiveGlobals.setProperty("fastpath.database.setup", "true");
    }

    // Register ad-hoc commands
    commandManager.addCommand(new CreateWorkgroup());
    commandManager.addCommand(new DeleteWorkgroup());
}
 

开发者ID:igniterealtime,
项目名称:Openfire,
代码行数:25,
代码来源:WorkgroupManager.java

示例2: start

点赞 3

import org.jivesoftware.openfire.fastpath.commands.CreateWorkgroup; //导入依赖的package包/类
public void start() {
    // Enable the shared secret SASL mechanism, which the Fastpath web client will use.
    // We use a custom SASL mechanism so that web-based customer chats can login without
    // a username or password. However, a shared secret key is still required so that
    // anonymous login doesn't have to be enabled for the whole server.
    if (!SASLAuthentication.isSharedSecretAllowed()) {
        SASLAuthentication.setSharedSecretAllowed(true);
    }

    // If the database was just created then create the "demo" user and "demo" workgroup
    // Workgroup creation requires MUC service address so we need to run this code after the
    // disco stuff
    if (!JiveGlobals.getBooleanProperty("fastpath.database.setup")) {
        boolean createUser = createDemoUser();
        if (createUser) {
            createDemoWorkgroup();
        }
        JiveGlobals.setProperty("fastpath.database.setup", "true");
    }

    // Register ad-hoc commands
    commandManager.addCommand(new CreateWorkgroup());
    commandManager.addCommand(new DeleteWorkgroup());
}
 

开发者ID:coodeer,
项目名称:g3server,
代码行数:25,
代码来源:WorkgroupManager.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)