@Override
public List<ConfigAttribute> getAttributes(Object object) {
FilterInvocation fi = (FilterInvocation) object;
String url = fi.getRequestUrl();
List<ConfigAttribute> attributes = new ArrayList<ConfigAttribute>();
Authority authory = null;
if (url.contains(".xhmtl") || url.contains(".jsf"))
authory = authoryDao.findByUrl(url);
if (authory != null)
attributes.add(new SecurityConfig(authory.getName()));
else {
attributes.add(new SecurityConfig("authory_anonymous"));
}
return attributes;