Examples of inEditMode()


Examples of com.garbagemule.MobArena.framework.Arena.inEditMode()

            if (am.getArenas().size() > 1) {
                Messenger.tell(sender, "There are multiple arenas.");
                return true;
            }
            arena = am.getArenas().get(0);
            value = !arena.inEditMode();
        } else if (args.length == 1) {
            if (args[0].matches("on|off|true|false")) {
                if (am.getArenas().size() > 1) {
                    Messenger.tell(sender, "There are multiple arenas.");
                    return true;
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.inEditMode()

                arena = am.getArenaWithName(args[0]);
                if (arena == null) {
                    Messenger.tell(sender, "There is no arena named " + args[0]);
                    return true;
                }
                value = !arena.inEditMode();
            }
        } else {
            arena = am.getArenaWithName(args[0]);
            value = args[1].matches("on|true");
        }
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.inEditMode()

        } else {
            arena = am.getArenaWithName(args[0]);
            value = args[1].matches("on|true");
        }
        arena.setEditMode(value);
        Messenger.tell(sender, "Edit mode for arena '" + arena.configName() + "': " + ((arena.inEditMode()) ? ChatColor.GREEN + "true" : ChatColor.RED + "false"));
        if (arena.inEditMode()) Messenger.tell(sender, "Remember to turn it back off after editing!");
        return true;
    }
}
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.inEditMode()

            arena = am.getArenaWithName(args[0]);
            value = args[1].matches("on|true");
        }
        arena.setEditMode(value);
        Messenger.tell(sender, "Edit mode for arena '" + arena.configName() + "': " + ((arena.inEditMode()) ? ChatColor.GREEN + "true" : ChatColor.RED + "false"));
        if (arena.inEditMode()) Messenger.tell(sender, "Remember to turn it back off after editing!");
        return true;
    }
}
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.inEditMode()

        WorkspaceImpl wsp = (WorkspaceImpl) editingSession.getWorkspace();
        UpdatableItemStateManager stateMgr = wsp.getItemStateManager();
        ItemValidator helper = new ItemValidator(editingSession.getNodeTypeManager().getNodeTypeRegistry(), wsp.getHierarchyManager(), editingSession);

        synchronized (stateMgr) {
            if (stateMgr.inEditMode()) {
                throw new RepositoryException("Unable to write lock properties.");
            }
            stateMgr.edit();
            try {
                // add properties to content
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.inEditMode()

            try {
                // add properties to content
                NodeId nodeId = node.getNodeId();
                NodeState nodeState = (NodeState) stateMgr.getItemState(nodeId);

                if (stateMgr.inEditMode()) {
                    throw new RepositoryException("Unable to remove lock properties.");
                }
                stateMgr.edit();
                if (nodeState.hasPropertyName(NameConstants.JCR_LOCKOWNER)) {
                    PropertyState propState = (PropertyState) stateMgr.getItemState(new PropertyId(nodeId, NameConstants.JCR_LOCKOWNER));
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.inEditMode()

        SessionImpl editingSession = (SessionImpl) node.getSession();
        WorkspaceImpl wsp = (WorkspaceImpl) editingSession.getWorkspace();
        UpdatableItemStateManager stateMgr = wsp.getItemStateManager();

        synchronized (stateMgr) {
            if (stateMgr.inEditMode()) {
                throw new RepositoryException("Unable to write lock properties.");
            }
            stateMgr.edit();
            try {
                // add properties to content
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.inEditMode()

            try {
                // add properties to content
                NodeId nodeId = node.getNodeId();
                NodeState nodeState = (NodeState) stateMgr.getItemState(nodeId);

                if (stateMgr.inEditMode()) {
                    throw new RepositoryException("Unable to remove lock properties.");
                }
                stateMgr.edit();
                if (nodeState.hasPropertyName(NameConstants.JCR_LOCKOWNER)) {
                    PropertyState propState = (PropertyState) stateMgr.getItemState(new PropertyId(nodeId, NameConstants.JCR_LOCKOWNER));
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.inEditMode()

        WorkspaceImpl wsp = (WorkspaceImpl) editingSession.getWorkspace();
        UpdatableItemStateManager stateMgr = wsp.getItemStateManager();
        ItemValidator helper = new ItemValidator(editingSession.getNodeTypeManager().getNodeTypeRegistry(), wsp.getHierarchyManager(), editingSession);

        synchronized (stateMgr) {
            if (stateMgr.inEditMode()) {
                throw new RepositoryException("Unable to write lock properties.");
            }
            stateMgr.edit();
            try {
                // add properties to content
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.inEditMode()

            try {
                // add properties to content
                NodeId nodeId = node.getNodeId();
                NodeState nodeState = (NodeState) stateMgr.getItemState(nodeId);

                if (stateMgr.inEditMode()) {
                    throw new RepositoryException("Unable to remove lock properties.");
                }
                stateMgr.edit();
                if (nodeState.hasPropertyName(NameConstants.JCR_LOCKOWNER)) {
                    PropertyState propState = (PropertyState) stateMgr.getItemState(new PropertyId(nodeId, NameConstants.JCR_LOCKOWNER));
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.