Examples of PermissionsManager


Examples of com.epicsagaonline.bukkit.EpicGates.integration.PermissionsManager

    System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is disabled.");
  }

  public void setupPermissions()
  {
    EpicGates.permissions = new PermissionsManager(this);
  }
View Full Code Here

Examples of me.toalec.RankUp.Permissions.PermissionsManager

  public void onEnable() {
    Utility.printConsole("Loading...");
    config = new ConfigManager(this);
    config.load();
   
    pm = new PermissionsManager(this, config.getString("rankup_permissions"));
   
   
    if(isEnabled()){
      PluginManager pluginManager = getServer().getPluginManager();
      getServer().getPluginCommand("rankup").setExecutor(new CommandTrigger(this, config, pm));
View Full Code Here

Examples of net.sacredlabyrinth.Phaed.TelePlusPlus.managers.PermissionsManager

        entityListener = new TPEntityListener(this);
       
        pluginName = this.getDescription().getName();
        pluginVersion = this.getDescription().getVersion();
       
        permissionsManager = new PermissionsManager(this);
        settingsManager = new SettingsManager(this);
        requestsManager = new RequestsManager(this);
        teleportManager = new TeleportManager(this);
        toggleManager = new ToggleManager(this);
        commandManager = new CommandManager(this);
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

    }

    @Override
    public void save() {
        synchronized (lock) {
            final PermissionsManager mgr = view.getPermissions();
            if (mgr == null) {
                return;
            }
            if (savingService == null) {
                savingService = Executors.newFixedThreadPool(1);
            }
            savingService.submit(new Runnable() {

                @Override
                public void run() {
                    try {
                        mgr.save();
                    } catch (PermissionsStorageException e) {
                        ErrorLog.attention(PermissionsPage.class, Strings.get("Permissions.Page.Save.Error"), e);
                    }
                }
            });
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

    /**
     * Creates a panel displaying the effective permissions <tt>user</tt> has on <tt>entity</tt>.
     *
     */
    public EffectivePermissionsPanel(PermissionsViewImpl view, IntegrationEntity entity, User user) {
        PermissionsManager mgr = view.getPermissions();
        Permissions perms = mgr.getEffectivePermissions(user, entity);
        createPanel(perms);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

    /**
     * Creates a panel displaying the effective permissions <tt>group</tt> has on <tt>entity</tt>.
     *
     */
    public EffectivePermissionsPanel(PermissionsViewImpl view, IntegrationEntity entity, Group group) {
        PermissionsManager mgr = view.getPermissions();
        Permissions perms = mgr.getEffectivePermissions(group, entity);
        createPanel(perms);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

        return ListUtils.createModel(getListItems());
    }

    private List<ListItem> getListItems() {
        List<ListItem> items = new ArrayList<ListItem>();
        PermissionsManager perms = view.getPermissions();
        if (perms != null) {
            UserManager mgr = perms.getUserManager();
            addUserItems(mgr, items);
            addGroupItems(mgr, items);
        }
        return items;
    }
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

        refreshButton.setContentAreaFilled(false);
        ButtonUtils.enableRolloverForButton(refreshButton);
    }

    private void updateUsersList() {
        PermissionsManager mgr = view.getPermissions();
        if (mgr != null) {
            WaitLock wait = view.getWindow().startWait();
            UpdateUserManagerCallback callback = new UpdateUserAndGroupCallback(wait);
            mgr.getUserManager().updateUsersAndGroups(false, callback);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

    }

    private void copyPermissions(IntegrationEntity original, IntegrationEntity copy, IntegrationProject project) {
        try {
            ManagedProject mp = project.getExtensionObject(ManagedProject.class);
            PermissionsManager perms = mp.getPermissions();
            perms.copyPermissions(original, copy);
            perms.save();
        } catch (PermissionsStorageException e) {
            ErrorLog.attention(getClass(), "The permission settings could not be copied.", e);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager

    }

    private PermissionsManager createPermissionsManager() {
        UserManager users = manager.getUserManager();
        PermissionsStorage storage = new PermissionsFileStorage(ProjectFolders.getPermissionsFolder(rootDirectory));
        PermissionsManager mgr = new PermissionsManager(project, storage, new ProjectDependenciesImpl(), users);
        mgr.addEntityPermissionsListener(new EntityPermissionsListener() {

            @Override
            public void permissionsChanged(final IntegrationEntity entity) {
                IntegrationProjectLock.acquire();
                try {
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.