fixed author tag
fixed duplicate in taglib
This commit is contained in:
@ -10,7 +10,7 @@ import org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter;
|
|||||||
* found at http://balusc.omnifaces.org/2013/01/apache-shiro-is-it-ready-for-java-ee-6.html#MakeShiroJSFAjaxAware)
|
* found at http://balusc.omnifaces.org/2013/01/apache-shiro-is-it-ready-for-java-ee-6.html#MakeShiroJSFAjaxAware)
|
||||||
* source by BalusC, adjusted to PassThruAuthenticationFilter by Joern Muehlencord
|
* source by BalusC, adjusted to PassThruAuthenticationFilter by Joern Muehlencord
|
||||||
* @author BalusC
|
* @author BalusC
|
||||||
* @author Joern Muehlencord <joern at muehlencord.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class FacesAjaxAwarePassThruAuthenticationFilter extends PassThruAuthenticationFilter {
|
public class FacesAjaxAwarePassThruAuthenticationFilter extends PassThruAuthenticationFilter {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractAccessControlTag extends AbstractTag {
|
public abstract class AbstractAccessControlTag extends AbstractTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractAuthenticationTag extends AbstractTag {
|
public abstract class AbstractAuthenticationTag extends AbstractTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractPermissionTag extends AbstractAccessControlTag {
|
public abstract class AbstractPermissionTag extends AbstractAccessControlTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractRoleTag extends AbstractAccessControlTag {
|
public abstract class AbstractRoleTag extends AbstractAccessControlTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractTag extends TagHandler {
|
public abstract class AbstractTag extends TagHandler {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlencord.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class AuthenticatedTag extends AbstractAuthenticationTag {
|
public class AuthenticatedTag extends AbstractAuthenticationTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class GuestTag extends AbstractAuthenticationTag {
|
public class GuestTag extends AbstractAuthenticationTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import org.apache.shiro.subject.Subject;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class HasAnyPermissionTag extends AbstractPermissionTag {
|
public class HasAnyPermissionTag extends AbstractPermissionTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -22,7 +22,7 @@ import org.apache.shiro.subject.Subject;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class HasAnyRolesTag extends AbstractRoleTag {
|
public class HasAnyRolesTag extends AbstractRoleTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class HasPermissionTag extends AbstractPermissionTag {
|
public class HasPermissionTag extends AbstractPermissionTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class HasRoleTag extends AbstractRoleTag {
|
public class HasRoleTag extends AbstractRoleTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class LacksPermissionTag extends AbstractPermissionTag {
|
public class LacksPermissionTag extends AbstractPermissionTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class LacksRoleTag extends AbstractRoleTag {
|
public class LacksRoleTag extends AbstractRoleTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class NotAuthenticatedTag extends AbstractAuthenticationTag {
|
public class NotAuthenticatedTag extends AbstractAuthenticationTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,7 +19,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class UserTag extends AbstractAuthenticationTag {
|
public class UserTag extends AbstractAuthenticationTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
* Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -35,7 +35,7 @@ import javax.faces.view.facelets.TagConfig;
|
|||||||
* is not authenticated, the tag displays nothing unless a <tt>defaultValue</tt>
|
* is not authenticated, the tag displays nothing unless a <tt>defaultValue</tt>
|
||||||
* is specified.</p>
|
* is specified.</p>
|
||||||
*
|
*
|
||||||
* @author Joern Muehlencord <joern at muehlenocrd.de>
|
* @author Joern Muehlencord (joern at muehlencord.de)
|
||||||
*/
|
*/
|
||||||
public class PrincipalTag extends AbstractTag {
|
public class PrincipalTag extends AbstractTag {
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2016 Joern Muehlencord <joern at muehlencord.de>.
|
Copyright 2016 Joern Muehlencord (joern at muehlencord.de).
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@ -107,17 +107,6 @@ limitations under the License.
|
|||||||
</attribute>
|
</attribute>
|
||||||
</tag>
|
</tag>
|
||||||
|
|
||||||
|
|
||||||
<tag>
|
|
||||||
<tag-name>hasRole</tag-name>
|
|
||||||
<handler-class>de.muehlencord.shirofaces.tags.HasRoleTag</handler-class>
|
|
||||||
<attribute>
|
|
||||||
<description>the name of the role to check for</description>
|
|
||||||
<name>name</name>
|
|
||||||
<required>true</required>
|
|
||||||
</attribute>
|
|
||||||
</tag>
|
|
||||||
|
|
||||||
<tag>
|
<tag>
|
||||||
<tag-name>notAuthenticated</tag-name>
|
<tag-name>notAuthenticated</tag-name>
|
||||||
<handler-class>de.muehlencord.shirofaces.tags.NotAuthenticatedTag</handler-class>
|
<handler-class>de.muehlencord.shirofaces.tags.NotAuthenticatedTag</handler-class>
|
||||||
|
|||||||
Reference in New Issue
Block a user