text
stringlengths
3
1.18M
package anni.asecurity.manager; import java.util.List; import anni.asecurity.domain.Menu; import anni.core.tree.LongTreeHibernateDao; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00秒578 */ public class MenuManager extends LongTreeHibernateDao<Menu> { /** * 读取用户可见的菜单. * ...
package anni.asecurity.manager; import anni.asecurity.domain.Resource; import anni.core.dao.hibernate.HibernateEntityDao; import anni.core.security.AuthenticationHelper; import anni.core.security.cache.AcegiCacheManager; import anni.core.security.resource.ResourceDetails; import org.acegisecurity.GrantedA...
package anni.asecurity.manager; import java.util.List; import anni.asecurity.domain.User; import anni.core.dao.hibernate.HibernateEntityDao; import anni.core.security.AuthenticationHelper; import anni.core.security.cache.AcegiCacheManager; import org.acegisecurity.GrantedAuthority; /** * @author ...
package anni.asecurity.helper; import java.util.List; import java.util.Map; import anni.asecurity.domain.Resource; import anni.asecurity.domain.Role; import anni.asecurity.manager.ResourceManager; import anni.asecurity.manager.RoleManager; import anni.core.dao.support.Page; import org.apache.commons.l...
package anni.asecurity.helper; import java.util.Map; import java.util.Set; import anni.asecurity.domain.Role; import anni.asecurity.domain.User; import anni.asecurity.manager.RoleManager; import anni.asecurity.manager.UserManager; import anni.core.dao.support.Page; import org.apache.commons.logging.Lo...
package anni.asecurity.helper; import java.util.List; import java.util.Map; import anni.asecurity.domain.Resource; import anni.asecurity.domain.Role; import anni.asecurity.domain.User; import anni.asecurity.manager.ResourceManager; import anni.asecurity.manager.RoleManager; import anni.asecurity.manager.U...
package anni.asecurity.helper; /** * ���Ÿ�����. * * @author Lingo * @since 2007-09-09 */ public class DeptHelper { }
package anni.asecurity.helper; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpSession; import anni.asecurity.domain.Menu; import anni.asecurity.domain.User; import anni.asecurity.manager.MenuManager; import anni.c...
package anni.asecurity.web.filter; import java.io.IOException; import java.net.URLEncoder; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import anni.asecurity.domain.User; import anni.asecurity.manager.UserManager; ...
package anni.asecurity.web.filter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.acegisecurity.Authentication; import org.acegisecurity.ui.logout.LogoutHandler; import org.apache.commons.logging.Log; import o...
package anni.asecurity.web; import anni.asecurity.domain.Region; import anni.asecurity.manager.RegionManager; import anni.core.tree.LongTreeController; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00秒578 *...
package anni.asecurity.web; import javax.servlet.http.HttpServletRequest; import anni.asecurity.domain.Resource; import anni.asecurity.manager.ResourceManager; import anni.core.grid.LongGridController; import anni.core.web.prototype.StreamView; import org.apache.commons.logging.Log; import org.apache...
package anni.asecurity.web; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import anni.asecurity.domain.Dept; import anni.asecurity.domain.Role; import anni.asecurity.domain.User; import anni.asecurity.manager.DeptManager; import anni.asecurity.manager.RoleMan...
package anni.asecurity.web; import anni.asecurity.domain.Dictionary; import anni.asecurity.manager.DictionaryManager; import anni.core.tree.LongTreeController; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00...
package anni.asecurity.web; import anni.core.web.prototype.ExtendController; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00秒578 */ public class AdminController extends ExtendController { /** * 后台首页. */ public void index() { } /** * 后台上端菜单. */ publ...
package anni.asecurity.web; import anni.asecurity.domain.Dept; import anni.asecurity.manager.DeptManager; import anni.core.tree.LongTreeController; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00秒578 */ p...
package anni.asecurity.web; import java.util.LinkedHashSet; import java.util.List; import anni.asecurity.domain.Menu; import anni.asecurity.domain.Resource; import anni.asecurity.domain.Role; import anni.asecurity.manager.MenuManager; import anni.asecurity.manager.ResourceManager; import anni.asecurity.ma...
package anni.asecurity.web; import anni.asecurity.domain.Menu; import anni.asecurity.manager.MenuManager; import anni.core.tree.LongTreeController; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00秒578 */ p...
package anni.asecurity.web; import java.util.HashMap; import java.util.Map; import anni.asecurity.domain.User; import anni.core.json.JsonController; import anni.core.json.JsonUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * 执行acegi登录成功,或失败之后的转发任务,兼顾...
package anni.asecurity.web; import anni.core.web.prototype.ExtendController; /** * @author Lingo. * @since 2007年08月18日 下午 20时19分00秒578 */ public class IndexController extends ExtendController { /** * 首页. */ public void index() { } /** * welcome. */ public void welco...
package anni.asecurity.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persi...
package anni.asecurity.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persi...
package anni.asecurity.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persi...
package anni.asecurity.domain; import java.util.Date; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import jav...
package anni.asecurity.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persi...
package anni.asecurity.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persi...
package anni.asecurity.domain; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persi...
package org.codehaus.mojo.cobertura.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/...
package org.codehaus.mojo.cobertura.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/...
package org.codehaus.mojo.cobertura.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/...
package org.codehaus.mojo.cobertura.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/...
package org.codehaus.mojo.cobertura.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/...
package org.codehaus.mojo.cobertura.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/...
package org.codehaus.mojo.cobertura; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/l...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
package org.codehaus.mojo.javascript; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Locale; import org.apache.maven.reporting.MavenReportException; /* * Copyright 2001-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (th...
package org.codehaus.mojo.javascript; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import org.apache.maven.reporting.MavenReportException; import org.codehaus.doxia.sink.Sink; import org.mozilla.javascript.N...
package org.codehaus.mojo.javascript; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.Iterator; import java.util.Locale; import java.util.Map; import java.util.ResourceBundle; import org.apache.commons.io.FileUtils; import org.apache.maven.artifact.Artifact; im...
package org.codehaus.mojo.taglist.beans; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apa...
package org.codehaus.mojo.taglist.beans; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apa...
package org.codehaus.mojo.taglist; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Li...
package org.codehaus.mojo.taglist; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Li...
package org.codehaus.mojo.taglist; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Li...
package anni.core.security.acl; import java.io.Serializable; /** * 标示哪些domain需要acl保护. * 实际使用时,需要让被保护的domain类实现AclDomainAware接口 * * @author sshwsfc@gmail.com */ public interface AclDomainAware { /** * 取得需要保护的domain的id. * * @return id */ Serializable getId(); }
package anni.core.security; import java.lang.reflect.InvocationTargetException; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import org.acegisecurity.ConfigAttributeDefinition; import org.acegisecurity.ConfigAttributeEditor; import org.acegisecuri...
package anni.core.security.service; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.acegisecurity.Authentication; import org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices; import org.apache.commons.logging.Log; import org.apache.commons.lo...
package anni.core.security.service; import java.util.List; import anni.core.security.resource.Resource; import org.acegisecurity.userdetails.User; /** * 为缓存提供 User 和 Resource 实例. * 来自www.springside.org.cn * * @author cac * @author Lingo * @since 2007-03-22 * @version 1.0 */ public interfa...
package anni.core.security.service; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.sql.DataSource; import anni.core.security.AuthenticationHelper; import anni.core.security.resour...
package anni.core.security.resource; import org.acegisecurity.GrantedAuthority; import org.springframework.util.Assert; /** * ResourceDetails的实现类. * resString 资源串, 如Url资源串 /admin/index.jsp, Method资源串 com.abc.service.userManager.save 等 * resType 资源类型,如URL, METHOD 等 * authorities 该资源所拥有的权限 * 来自www.sp...
package anni.core.security.resource; import java.io.Serializable; import org.acegisecurity.GrantedAuthority; /** * 提供资源信息. * 来自www.springside.org.cn * * @author cac * @author Lingo * @since 2007-03-22 * @version 1.0 */ public interface ResourceDetails extends Serializable { /** * ...
package anni.core.security.intercept.method; import java.lang.reflect.Method; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import anni.core.security.AuthenticationHelper; import anni.core.security.cache.AcegiCacheManager; import anni.core.security.resou...
package anni.core.security.intercept.web; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Set; import anni.core.security.AuthenticationHelper; import anni.core.security.cache.Aceg...
package anni.core.security; import org.acegisecurity.providers.dao.UserCache; import org.acegisecurity.userdetails.UserDetails; import org.acegisecurity.userdetails.UserDetailsService; /** * 登陆时从缓存里获取用户. * 而不是像@link org.acegisecurity.acl.basic.jdbc.JdbcDaoImpl 那样从数据库中获取用户实例 * 实现loadUserByUsername(Stri...
package anni.core.security; import java.lang.reflect.InvocationTargetException; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.apache.commons.beanutils.BeanUtils; /** * 授权管理类. * * @author cac * @author Lingo * @since 2007-03-...
package anni.core.security.jcaptcha; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.IOException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; import jav...
package anni.core.security.jcaptcha.engine; import java.awt.Color; import com.octo.captcha.component.image.backgroundgenerator.BackgroundGenerator; import com.octo.captcha.component.image.backgroundgenerator.FunkyBackgroundGenerator; import com.octo.captcha.component.image.fontgenerator.FontGenerator; import c...
package anni.core.security.jcaptcha.engine; import java.awt.Color; import com.octo.captcha.component.image.backgroundgenerator.BackgroundGenerator; import com.octo.captcha.component.image.backgroundgenerator.GradientBackgroundGenerator; import com.octo.captcha.component.image.color.SingleColorGenerator; import...
package anni.core.security.jcaptcha.engine; import java.awt.Color; import com.octo.captcha.component.image.backgroundgenerator.BackgroundGenerator; import com.octo.captcha.component.image.backgroundgenerator.GradientBackgroundGenerator; import com.octo.captcha.component.image.color.RandomListColorGenerator; im...
package anni.core.security.jcaptcha; import com.octo.captcha.service.CaptchaService; import com.octo.captcha.service.CaptchaServiceException; import org.acegisecurity.captcha.CaptchaServiceProxy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * 实现 CaptchaServi...
package anni.core.test; import com.thoughtworks.selenium.DefaultSelenium; import com.thoughtworks.selenium.Selenium; import junit.framework.TestCase; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.PropertiesConfiguration; import org.openqa.selenium....
package anni.core.test; import org.springframework.test.web.AbstractModelAndViewTests; import org.springframework.web.servlet.ModelAndView; /** * 调用AbstractModelAndViewTests的工具类,提供一些简便测试ModelAndView的方法. * * @author Lingo * @since 2007-06-01 * @version 1.0 */ public class ModelAndViewTestHelper e...
package anni.core.test; import java.io.Serializable; import java.util.*; import junit.framework.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory; import org.hibernate.CacheMode; ...
package anni.core.test; import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests; /** * 使用spring测试hibernate3的dao. * 默认从spring/*.xml和classpath:test/*.xml读取配置文件, * 注意:spring-mock会根据getConfigLocations()的值来缓存ctx * 此处与AbstractWebTests相同,会导致AbstractWebTests提取scope="request"类型的bean失效 ...
package anni.core.dao; public class EmployeeManager extends HibernateEntityDao<Employee> { }
package anni.core.dao; import javax.persistence.DiscriminatorColumn; import javax.persistence.DiscriminatorType; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import j...
package anni.core.page; import java.io.Serializable; import java.util.ArrayList; /** * 分页对象. 包含当前页数据及分页信息如总记录数. * 来自www.springside.org.cn * * <p>使用构造方法Page(long start, long totalCount, int pageSize, Object data), * 设置开始记录的索引位置,记录总数,每页显示记录数,和当前页包含的数据(一般是List)</p> * * <p>使用的时候,<ul> * <li>${page...
package anni.core.dao; import java.io.Serializable; import java.util.List; import anni.core.page.Page; import anni.core.utils.GenericsUtils; import org.hibernate.Criteria; import org.hibernate.criterion.Criterion; /** * 负责为单个Entity对象提供CRUD操作的Hibernate DAO基类. * <p/> * 子类只要在类定义时指定所管理Entity的Cl...
package anni.core.dao; import java.io.Serializable; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; import anni.core.page.Page; ...
package anni.core.web.filter; import java.io.IOException; import java.util.List; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.filter.OncePerRequestFilter...
package anni.core.web.freemarker; import java.io.IOException; import freemarker.template.Configuration; import freemarker.template.ObjectWrapper; import freemarker.template.TemplateException; import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer; /** * 把freemarker使用的ObjectWrapper...
package anni.core.web.prototype; import java.io.Serializable; import java.util.Locale; import java.util.Map; import anni.core.page.Page; import anni.core.utils.GenericsUtils; import org.apache.commons.lang.StringUtils; import org.extremecomponents.table.limit.Limit; import org.springframework.bean...
package anni.core.web.prototype; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; impor...
package anni.core.web.prototype; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import anni.core.page.Page; import org.extremecomponents.table.context.Context; import org.extremecomponents.table.context.HttpServletRequestContext; import org.extremecomponents...
package anni.core.web.prototype; import java.util.List; import java.util.Map; import java.util.Set; import anni.core.dao.HibernateEntityDao; import anni.core.page.Page; import org.hibernate.Query; import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; /** * 负责为...
package anni.core.web.prototype; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.View; /** * 不需要使用模板渲染的时候,就可以用这个view来避免spring抛出异常. * * @author Lingo * @since 2007-06-05 */ public class Str...
package anni.core.web.prototype; import java.beans.PropertyEditorSupport; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * 为了支持commons-validator而增加的工具类. * 之所以会有这个类,是因为一个很。。。。说不清楚的东西。 * * 本来我想按照springside中的做法,在客户端和服务器端都用...
package anni.core.web.prototype; /* * Copyright 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
/* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
package anni.core.web.prototype; import java.io.Serializable; import java.util.List; import java.util.Map; import anni.core.page.Page; /** * 针对单个Entity对象的操作定义.不依赖于具体ORM实现方案. * 来自www.springside.org.cn * * @author calvin * @since 2007-03-30 * @version 1.0 * @param <T> 实体类 */ public interfa...
package anni.core.web.prototype; import java.io.Serializable; /** * 专门用于primary key为long情况的BaseController. * * @author Lingo * @param <T> 实体类的类型 * @param <D> 实体类对应的dao类型 */ public class BaseLongController<T, D extends EntityDao<T>> extends BaseController<T, D> { /** * @return 从reque...
/* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
package anni.core.web.json; import java.io.Serializable; /** * 只能定义一个id,这个超类有什么意义. * * @author Lingo * @since 2007-09-19 */ public class LongGridBean implements Serializable { /** * serial. */ static final long serialVersionUID = 0L; /** * id. */ private Long id; /** * @r...
package anni.core.web.json; import java.io.Serializable; import java.util.Set; /** * 应用于自身关联的无级树型字典表. * * 实际中使用时,实现类需要使用导入javax.persistence.Column * 并对name字段进行如下注释 * @Column(unique = true, nullable = false) * 我们考虑使用NamedEntityBean的情况,很可能是除了id就只有name字段的情况 * 这样,name重复,或者为空,就没有实际意义了,所以在进行这样的解释 *...
package anni.core.web.json; import java.util.List; import anni.core.dao.HibernateEntityDao; /** * 对tree进行dao操作的基类. * * @author Lingo * @since 2007-09-15 * @param <T> TreeNode */ public class LongTreeHibernateDao<T extends TreeNode<T>> extends HibernateEntityDao<T> { /** * 如果数据库中不...
package anni.core.web.json; import java.util.ArrayList; import java.util.List; import net.sf.json.JSONObject; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * 操作树型的基类. * * @author Lingo * @since 2007-09-15 * @param <T> LongTreeNode的子类 * @param <D> Lo...
package anni.core.web.json; import java.beans.IntrospectionException; import java.beans.PropertyDescriptor; import java.io.Writer; import java.lang.reflect.Method; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.List; i...
package anni.core.web.json; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import anni.core.utils.GenericsUtils; import anni.core.web.prototype.ExtendController; import anni.core.web.prototype.StreamView; import org.apache.commons.lang.StringUtils; import o...