Package com.atlassian.plugin.remotable.spi.util

Examples of com.atlassian.plugin.remotable.spi.util.RequirePermission


        }
    }

    private void validatePermissions(Method method)
    {
        RequirePermission permission = method.getAnnotation(RequirePermission.class);
        if (permission != null && !permissions.contains(permission.value()))
        {
            throw new PermissionDeniedException(pluginKey, "Not able to call method '" + method.getName() + "' due to not having "
                    + "asked for permission '" + permission.value() + "'");
        }
    }
View Full Code Here


        final Multimap<String, String> result = HashMultimap.create();
        for (Class serviceClass : serviceInterfaces)
        {
            for (Method method : serviceClass.getMethods())
            {
                final RequirePermission permission = method.getAnnotation(RequirePermission.class);
                if (permission != null)
                {
                    result.put(permission.value(), method.getName());
                }
            }
        }
        return result.asMap();
    }
View Full Code Here

TOP

Related Classes of com.atlassian.plugin.remotable.spi.util.RequirePermission

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.