A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

addComment(Cell, String, Font, int, int) - Method in MSExcelUtils
给单元格添加备注
addDateValidation(Sheet, CellRangeAddressList, String, String, String, String) - Method in MSExcelUtils
设置日期校验
addNumericValidation(Sheet, CellRangeAddressList, String, String, String) - Method in MSExcelUtils
设置数字范围校验
addSelectValidation(Sheet, CellRangeAddressList, Object, String) - Method in MSExcelUtils
设置单元格校验和下拉列表
addSql(String, String) - Method in ConnectionInitSqls
@param poolName 连接池名称
addUnderscores(String) - Method in StringUtils
字符串转换:大写前面加_,大写改成小写
application - Field in GrailsUtils
grailsApplication

B

BeanUtils - Class in bropen.toolkit.utils.grails
BeanUtils.ClosureInvocationHandler(Object, Closure, Closure) - Constructor in BeanUtils.ClosureInvocationHandler
bodyAsBytes(HttpResponse) - Method in HttpUtils
将HttpResponse的body转成byte数组
bodyAsFile(HttpResponse, String) - Method in HttpUtils
将HttpResponse的body保存成文件
bodyAsString(HttpResponse, String) - Method in HttpUtils
将HttpResponse的body转成字符串
bodyToFile(HttpResponse, String) - Method in HttpUtils
bootStrapInit() - Method in ControllersApiService
BroGrails5535Factory - Class in bropen.toolkit.web.sitemesh
覆盖 Grails5535Factory,直接给sitemesh添加excludes
BroGrails5535Factory(Config) - Constructor in BroGrails5535Factory
构造器,添加 excludes
BroToolkitBootStrap - Class in BroToolkitBootStrap
BroToolkitGrailsPlugin - Class in BroToolkitGrailsPlugin
buildSessionFactory() - Method in HibernateConfiguration
@see GrailsAnnotationConfiguration

C

CacheUtils - Class in bropen.toolkit.utils.grails
缓存工具,基于 EhCache
canConvert(Object) - Method in DateValueConverter
@see ValueConverter
canConvert(Object) - Method in StringValueConverter
@see ValueConverter
changeRMBToBig(Object) - Method in CurrencyUtils
人民币金额转化成大写。
closeConnection(Connection) - Method in DatasourceConnectionProvider
关闭数据库连接
closeConnection(Connection) - Method in DbUtils
释放数据库连接
cn2InitialSpell(String, boolean) - Method in PinyinUtils
获得字符串的汉语拼音首字母
cn2InitialSpells(String, boolean) - Method in PinyinUtils
获得字符串的汉语拼音首字母组合列表
cn2Spell(String) - Method in PinyinUtils
获得字符串的汉语拼音,对于多音字,仅返回第一个
cn2Spells(String) - Method in PinyinUtils
获得字符串的汉语拼音组合列表
collator - Field in StringUtils
用于本地语言(如中文)排序/比较的Collator
CollectionUtils - Class in bropen.toolkit.utils
列表相关工具包。
columnABCToNum(String) - Method in MSExcelUtils
将Excel里的大写字母的列号转成数字序号
columnNumToABC(int) - Method in MSExcelUtils
将列号转成大写字母表示的序号(如 A、AB...)
combineFiles(List, Object, boolean) - Method in FileUtils
合并多个文件
compare(String, String) - Method in StringUtils
字符串排序:顺序,支持中文
compareMap - Field in DomainEquals
是否允许和Map进行比较,默认为否 @default
configure(Map) - Method in DatasourceConnectionProvider
初始化配置
connect(String, Integer, String, String) - Method in FtpUtils
连接并登录FTP服务器。
ConnectionInitSqls - Class in bropen.toolkit.orm.interceptor
初始化数据库连接的拦截器
Constants - Class in bropen.toolkit
BroToolkit插件的常量定义
context - Field in GrailsUtils
grailsApplication.getMainContext()
contextDestroyed(ServletContextEvent) - Method in HttpServletContextListener
contextInitialized(ServletContextEvent) - Method in HttpServletContextListener
contextPath - Field in ServletUtils
当前WebApp的上下文根
ControllersApiService - Class in bropen.toolkit.services
一些自动注入到控制器中的方法,参考 ControllersApi。
controllerURI(HttpServletRequest) - Method in ServletUtils
convert(Object) - Method in DateValueConverter
@see ValueConverter
convert(Object) - Method in StringValueConverter
将 \r\n 全部替换成 \n,以避免Web前台、后台的长度判断不一样导致的校验问题
convertSqlDate(Object) - Method in DateUtils
将对象转换成日期类型,主要用于转换sql返回的日期类型
copyAndAppendRows(Row, Integer) - Method in MSExcelUtils
复制行,并插入到后面
copyDirectory(def, def) - Method in FileUtils
文件夹复制。
copyFile(def, def) - Method in FileUtils
文件复制。
createCache(String, Boolean) - Method in CacheUtils
创建缓存,如果存在则直接返回。
createClient(Integer, Integer) - Method in HttpUtils
创建一个默认的http client
createCommonFont(Workbook) - Method in MSExcelUtils
(示例)创建一个最常用的Font:小五号宋体
createContext(Map) - Method in HttpUtils
创建一个上下文,以保持同一个session中进行请求 -- 管理用户/线程状态
createEquals(ClassNode, boolean, List<String>) - Method in DomainEqualsASTTransformation
生成 equals 方法
createMockRequest(String) - Method in ServletUtils
生成一个模拟的request对象
createMockResponse(PrintWriter) - Method in ServletUtils
生成一个模拟的response对象,相比 MockHttpServletResponse,便于操作输出结果
createName(Sheet, String, int, int, int, int) - Method in MSExcelUtils
创建名称
createParams(Map) - Method in HttpUtils
从map创建post需要的参数
createProxy(Object, Closure, Closure) - Method in BeanUtils
创建一个动态代理对象
createRangeAddressList(int, int, int, int) - Method in MSExcelUtils
创建一个 CellRangeAddressList,供 addXxxValidation 等方法使用
createSafeName(String, String, String) - Method in FileUtils
创建一个安全的文件名,不会导致由于操作系统不支持而无法写入文件。
createSheet(Workbook, String) - Method in MSExcelUtils
创建Sheet
createStyles(Workbook) - Method in MSExcelUtils
(示例)初始化一些可能需要用到的样式
createWorkbook() - Method in MSExcelUtils
创建Workbook
CSVCodec - Class in bropen.toolkit.codecs
使用opencsv,将Bean列表或者bean转成csv格式
CurrencyUtils - Class in bropen.toolkit.utils
货币相关的工具,如人民币大写转换。

D

DatabaseUtils - Class in bropen.toolkit.utils.grails
@deprecated 用 DbUtils 代替
DatasourceConnectionProvider - Class in bropen.toolkit.orm
定制的数据源连接提供者
DateEditor - Class in bropen.toolkit.web.binding
Provides type conversion from Strings to java.util.Date instances.
DateEditor(CompositeEditor) - Constructor in DateEditor
构造函数。
dateFmt - Field in DateUtils
时间格式:yyyy-MM-dd
datetimeFmt - Field in DateUtils
时间格式:yyyy-MM-dd HH:mm
DateUtils - Class in bropen.toolkit.utils
时间(日期)相关的工具。
DateValueConverter - Class in bropen.toolkit.web.binding
字符串转换为日期类型的转换器
daysBetween(Date, Date) - Method in DateUtils
计算两个日期之间的天数
DbUtils - Class in bropen.toolkit.utils.grails
数据库工具包
DebugUtils - Class in bropen.toolkit.utils
调试相关的工具
dec(String, String) - Method in GibberishAES
解密
decode(String) - Method in LtpaDecoder
@param token
decodeBase64(byte[]) - Method in LtpaDecoder
Base64解码
deleteFailedAttachments(Object, Object) - Method in ControllersApiService
当bean保存失败时,删除已保存的附件
deserialize(byte[]) - Method in BeanUtils
将 byte[] 反序列化为对象
deserializeObject(File) - Method in FileUtils
将文件反序列化,并返回对象
DialectResolver - Class in bropen.toolkit.orm
Hibernate 的方言解析器。
disconnect(FTPClient) - Method in FtpUtils
断开FTP连接
disconnected(ConnectionPool, PooledConnection, boolean) - Method in ConnectionInitSqls
Dm7Dialect - Class in bropen.toolkit.orm.dialect
达梦数据库(版本7)的方言类
Dm7Dialect.DateSQLFunction - Class in bropen.toolkit.orm.dialect
Dm7Dialect.DateSQLFunction(String) - Constructor in Dm7Dialect.DateSQLFunction
Dm7Dialect() - Constructor in Dm7Dialect
DomainEquals - Annotation Type in bropen.toolkit.transform
Domain类注解,用于生成 equals() 方法。
DomainEqualsASTTransformation - Class in bropen.toolkit.transform
处理注解DomainEquals,并生成 equals 方法。
doMapFromContext(DirContextOperations) - Method in LdapUtils.AttributesContextMapper
doMapFromContext(DirContextOperations) - Method in LdapUtils.ClosureContextMapper
doWithBlockingCache(String, Serializable, Closure, Map) - Method in CacheUtils
创建一个 blocking 类型的缓存,执行闭包并将执行结果缓存下来。
dropConstraints() - Method in H2Dialect

E

enc(String, String) - Method in GibberishAES
加密
encodeAsBase64(File) - Method in FileUtils
将文件内容转换成Base64编码的字符串
equals(Object, Object, boolean, List<String>) - Method in BeanUtils
判断两个Domain实例是否相等。
errorMessages(Object) - Method in GrailsUtils
从bean里获得错误信息,并返回错误信息(字符串)列表
escapeXML(String) - Method in StringUtils
将"<"等字符转换成转义字如"&lt;"
evalScript(String, Binding, Map) - Method in GrailsUtils
执行脚本:使用GSE,避免每次都编译
evict(String, Serializable) - Method in CacheUtils
@deprecated 使用 remove 代替
execute() - Method in Groovydoc
样式表
executeWithSessionLock(String, Integer, Closure, Closure) - Method in ServletUtils
在session范围内限定并发的执行,如果没有session,则抛出IllegalStateException。
Executor - Class in bropen.toolkit.utils.os
执行系统命令。
exists(String) - Method in DbUtils
数据源是否存在
expandParams(Map, boolean) - Method in ServletUtils
将Map展开,便于数据绑定。

F

fileIcon(String) - Method in FileUtils
计算常见的文件类型图标名
fileMimeType(String) - Method in FileUtils
计算文件的MIME类型
FileUtils - Class in bropen.toolkit.utils
文件操作工具。
find(Object, List<String>, List) - Method in CollectionUtils
从集合中根据属性查找元素,比find闭包性能提升2.5+倍
findAll(Object, List<String>, List) - Method in CollectionUtils
从集合中根据属性查找元素列表,代替findAll闭包以提升性能
findDomainByController(String) - Method in BeanUtils
根据控制器名称获得其对应的DomainClass
findViews(String, String) - Method in GrailsUtils
在应用和各个插件下搜索视图模板
firstDayOfWeek(Date, Integer, int) - Method in DateUtils
根据日期,获得周的第一天(默认为周一)的日期
flattenParams(Map) - Method in ServletUtils
将params扁平化,便于redirect或forward。
FNVHash1(CharSequence) - Method in StringUtils
改进的32位FNV算法1,给字符串生成一个Hash码
format(BigDecimal, Integer) - Method in CurrencyUtils
格式化为货币形式,即 “###,##0”,小数位由参数 scale 控制,默认为 2
format(Date, String, String) - Method in DateUtils
按照自定义个格式格式化日期。
format(Number, String, String) - Method in NumberUtils
格式化数字
formatCurrency(BigDecimal, Integer) - Method in NumberUtils
格式化为货币形式,即 “###,##0”,小数位由参数 scale 控制,默认为 2
formatDate(Date) - Method in DateUtils
格式化日期
formatDatetime(Date) - Method in DateUtils
格式化时间
formatMonth(Date) - Method in DateUtils
格式化月份
formatMSOfficeDatetime(Date) - Method in DateUtils
格式化时间(微软Office)
formatRevision(String, Integer, Integer, Integer, String) - Method in StringUtils
格式化多段式的数字版本号
formatTime(Date) - Method in DateUtils
格式化时间
fromAlphabet(String) - Method in NumberUtils
将26进制转为10进制的正整数
fromBase64(String) - Method in StringUtils
解码Base64编码的字符串
fromInputStream(InputStream, String, Boolean) - Method in StringUtils
将 InputStream 转成字符串
fromJson(Object, Class) - Method in StringUtils
使用Gson来转换JSON
fromXmlDocument(Document, String) - Method in StringUtils
将 org.w3c.dom.Document 转成字符串源码
FtpUtils - Class in bropen.toolkit.utils.network
FtpClient工具类

G

generate(HttpServletRequest) - Method in SessionKeyGenerator
根据HttpRequest,生成Cache Key
generate(HttpServletRequest) - Method in UserKeyGenerator
根据HttpRequest,生成Cache Key
get(String, Serializable) - Method in CacheUtils
从缓存中获得值
get(FTPClient, String, String) - Method in FtpUtils
下载文件。
get(String, Map, HttpClient, HttpContext, boolean) - Method in HttpUtils
远程get数据
getActionName() - Method in ServletUtils
获得当前控制器操作名
getAddressesByName(String, boolean, boolean) - Method in InetUtils
根据主机名(或域名),获得其IP地址
getAsText() - Method in DateEditor
getAutoImportClasses() - Method in GrailsUtils
根据配置 bropen.toolkit.autoimport.classes.xxxx 获得将要在GSP、Script中自动导入的类列表
getBean(def) - Method in BeanUtils
获得Spring Bean
getBootstrapArtefacts(String) - Method in GrailsUtils
获得所有 Bootstrap 类,并按照插件的依赖关系排序。
getCache(String) - Method in CacheUtils
获得缓存对象
getCellValue(Cell, FormulaEvaluator, Integer, Integer) - Method in MSExcelUtils
获得单元格的内存
getCellValueDate(Cell) - Method in MSExcelUtils
获得单元格的日期内容,如果转换错误,则返回null
getCellValueString(Cell, FormulaEvaluator) - Method in MSExcelUtils
获得单元格的文字内容,数字自动转成文字
getCharset(HttpResponse, String) - Method in HttpUtils
根据HttpResponse获得返回内容的字符集
getClassLocation(Class) - Method in DebugUtils
获得类的class文件路径
getClassTemplates() - Method in Groovydoc
getClientBrowser(String) - Method in ServletUtils
获得客户端浏览器类型
getClientBrowserVersion(HttpServletRequest) - Method in ServletUtils
获得客户端浏览器版本
getClientIpAddr(HttpServletRequest) - Method in ServletUtils
获得客户端IP地址
getClusterNode(boolean) - Method in ServletUtils
获取当前集群节点(实验性质)
getClusterNodes(boolean) - Method in ServletUtils
获得所有集群节点(实验性质,需配置 clusters.properties、并在系统防火墙中开放ehcache同步端口)
getConfig(String) - Method in GrailsUtils
获取Config值。
getConnection() - Method in DatasourceConnectionProvider
获取一个数据库连接
getConnection(String) - Method in DbUtils
通过dataSource获得一个新的JDBC数据库连接(和当前hibernate session所用的不是一个)。
getConnectionUnproxied(String) - Method in DbUtils
getContentType(HttpResponse, String) - Method in HttpUtils
根据HttpResponse获得返回内容的content type
getControllerName() - Method in ServletUtils
获得当前控制器名称
getControllerURI(HttpServletRequest) - Method in ServletUtils
根据http请求,获得控制器的URI,如:/Foo/bar/
getCookies(HttpContext) - Method in HttpUtils
从context的CookieStore中取出所有Cookie
getCurrentConnection(String) - Method in DbUtils
获得当前 hibernate session 的数据库连接,可以统一进行事务操作与回滚。
getCurrentSession(String) - Method in DbUtils
获得当前的 Hibernate Session。
getCurrentSql(String, Closure) - Method in DbUtils
获得一个Groovy Sql数据库连接,和当前hibernate session使用同一个connection,可以统一进行事务操作与回滚。
getCurrentTransactionStatus() - Method in DbUtils
获得当前事务(即withTransaction的参数status)
getDatabaseName(String) - Method in DbUtils
获得数据库名称。
getDataSourceNameByDomain(String) - Method in DbUtils
获取domain类所使用的DataSourceName.如果不是系统默认的DataSource,会以"_"开头。
getDataSourceNames() - Method in DbUtils
获得所有数据源名称列表
getDocTemplates() - Method in Groovydoc
getDomainClass(Object) - Method in CSVCodec
getDropSequenceString(String) - Method in H2Dialect
Hibernate Bug
getError() - Method in Executor
如果设置了 catchOutput,则可以获得命令的错误输出信息
getExpiryDate() - Method in LtpaDecoder
getField(Object, String, Class) - Method in DebugUtils
使用反射机制,获得 private 或 protected 的成员变量的值.
getFullToken() - Method in LtpaDecoder
getGroupUniqueValidator(String, List) - Method in BeanUtils
用于Domain多属性唯一性校验的校验器
getInaccessibleField(Object, String, Class) - Method in DebugUtils
getLdapTemplate(String) - Method in LdapUtils
根据配置的ldap上下文名称,获得对应的LdapTemplate
getLocalAddresses(boolean, boolean) - Method in InetUtils
获得本机的所有IPv4地址
getLocale(HttpServletRequest) - Method in ServletUtils
获得当前请求的locale
getLocalMacAddresses() - Method in InetUtils
获得本机所有已启用网卡的MAC地址
getMacAddress(String) - Method in InetUtils
获得主机的MAC地址
getOutput() - Method in Executor
如果设置了 catchOutput,则可以获得命令的输出信息
getPackageTemplates() - Method in Groovydoc
getParams() - Method in ServletUtils
获得当前控制器操作请求中的params对象
getPersistentProperties(Class) - Method in BeanUtils
获得Domain类的所有可持久化的属性信息,包括名称、类型、是否引用其他Domain类、是否hasMany等
getPluginManager() - Method in GrailsUtils
获得插件管理器
getPluginRealPath(String) - Method in GrailsUtils
根据插件名称,获得 web-app 在文件系统中的绝对路径。
getPluginResPath(String) - Method in GrailsUtils
根据插件名称,获得其在Web应用中的资源路径,用来生成访问其资源文件的路径(如js等)
getProperties(Object) - Method in CSVCodec
getProperty(Object, String) - Method in BeanUtils
获得对象的属性(含 protected 的属性)
getQuerySequencesString() - Method in Oracle10gDialect
getReferencedPropertyTypeName(DefaultGrailsDomainClass, String) - Method in CSVCodec
getRequest() - Method in ServletUtils
获得当前请求的request对象
getRequestBody(HttpServletRequest) - Method in ServletUtils
当请求不是以参数方式提交时(如WebService),获得请求内容的字符串
getRequestURI(HttpServletRequest, Boolean) - Method in ServletUtils
计算访问的URI
getResource(String) - Method in FileUtils
从WEB应用的 classpath 中获得资源文件(如 properties 文件),包括 jar 包中的文件
getResourceText(String, String) - Method in FileUtils
获得资源文件的内容
getResponse() - Method in ServletUtils
获得当前请求的response对象
getServerHost(HttpServletRequest, boolean) - Method in ServletUtils
获得服务器的主机地址
getServerURL(def) - Method in GrailsUtils
计算应用服务器的绝对地址
getServerURL(HttpServletRequest, boolean) - Method in ServletUtils
获得服务器的绝对地址,如:http://xxx/cc/
getSession() - Method in ServletUtils
获得当前请求用户的session
getSessionFactory(String) - Method in DbUtils
获得 Hibernate SessionFactory
getSignature() - Method in LtpaDecoder
getSql(Map) - Method in DbUtils
获得一个原始的Groovy Sql数据库连接。
getSqlCurrent(String) - Method in DbUtils
getSqls(String) - Method in ConnectionInitSqls
@return
Parameters:
poolName
getSqlUnproxied(String) - Method in DbUtils
getTargetType() - Method in DateValueConverter
@see ValueConverter
getTargetType() - Method in StringValueConverter
@see ValueConverter
getThrowableStacktrace(Throwable) - Method in StringUtils
getType(String) - Method in OracleClobType
获得大文本字段的属性类型:除oracle数据库外,都返回 text。
getUserInfo() - Method in LtpaDecoder
getUsername() - Method in LtpaDecoder
getUserPluginNames() - Method in GrailsUtils
获得所有按照依赖关系排序后的插件名称列表
getWebappPath() - Method in ServletUtils
获得应用的web文件夹路径,如 /opt/Tomcat7/webapps/Foobar,或者开发环境下工程的 web-app 文件夹
getWeekInfo(Date) - Method in DateUtils
获得日期所对应该年的周信息
GibberishAES - Class in bropen.toolkit.utils.security
兼容 Gibberish AES 的 java 实现版本,目前只支持其默认的256位加密。
GrailsUtils - Class in bropen.toolkit.utils.grails
Grails & Groovy 相关工具
Groovydoc - Class in bropen.toolkit.ant
通过脚本事件 DocStart 覆盖默认的 Groovydoc,以实现一些定制功能
groupBy(Object, List<String>, String) - Method in CollectionUtils
根据集合中的元素属性对集合进行分组,代替 groupBy 闭包以提升性能

H

H2Dialect - Class in bropen.toolkit.orm.dialect
H2数据库的方言类
H2Dialect.DateSQLFunction - Class in bropen.toolkit.orm.dialect
注册date方法,语法为“date('2011-02-01')”。
H2Dialect.DateSQLFunction(String) - Constructor in H2Dialect.DateSQLFunction
H2Dialect() - Constructor in H2Dialect
hasMethod(Object, String) - Method in BeanUtils
根据名称判断方法是否存在,而不考虑参数的数量、类型等情况
hasProperty(Object, Object, String) - Method in BeanUtils
判断是否有某属性
HibernateConfiguration - Class in bropen.toolkit.orm
定制的Hibernate配置类,用于解决数据库连接池相关问题。
hoursBetween(Date, Date) - Method in DateUtils
计算两个日期之间的小时数
hqlToSql(String, String) - Method in DbUtils
将hql转换成sql
HttpServletContextListener - Class in bropen.toolkit.web
监控上下文的初始化和销毁
HttpUtils - Class in bropen.toolkit.utils.network
HttpClient相关的工具类。

I

includes - Field in DomainEquals
参与equals计算的属性名列表,默认为“id”,多值可以为逗号分隔的字符串 @default
InetUtils - Class in bropen.toolkit.utils.network
网络相关的工具类。
initCommonMethodOptions(Map) - Method in HttpUtils
初始化get/post方法中常用的http参数
inMonth(Date, Date) - Method in DateUtils
判断日期是否在某个月份之中
INSTANCE - Field in DialectResolver
// * 加载自定义的解析器 //
instanceOf(Object, Class) - Method in BeanUtils
判断对象是否是某个Domain类。
invoke(Object, Method, Object) - Method in BeanUtils.ClosureInvocationHandler
invokeInaccessibleMethod(Object, String, List<Class>, List<Object>) - Method in DebugUtils
invokeMethod(Object, String, List<Class>, List<Object>) - Method in DebugUtils
使用反射机制,调用 private 或 protected 的方法.
isAjax(Object) - Method in ControllersApiService
判断是否是ajax请求,如果参数中有jsonp,则也任务是ajax请求
isAjax(HttpServletRequest, String) - Method in ServletUtils
判断通过http头,判断request是否是ajax请求。
isDefaultDataSource(String) - Method in DbUtils
判断domain类是否所使用的是系统默认的DataSource
isDm(String) - Method in DbUtils
是否是达梦数据库
isDomain(Object) - Method in BeanUtils
判断是否为Domain类
isExpired() - Method in LtpaDecoder
isFailure() - Method in Executor
根据程序的退出码,判断是否执行
isIE(HttpServletRequest) - Method in ServletUtils
客户端浏览器是否是IE
isInteractiveMode() - Method in GrailsUtils
是否是交互模式的 run-app
isKilled() - Method in Executor
如果设置了 timeout,可用来判断是不是超时被杀死的
isMysql(String) - Method in DbUtils
是否是Mysql数据库
isOracle(String) - Method in DbUtils
是否是oracle数据库
isPersistentProperty(Class, String) - Method in BeanUtils
判断Domain类的属性是否是可持久化的
isPlugin() - Method in GrailsUtils
判断当前运行的工程是否是插件
isPluginAvailable(String) - Method in GrailsUtils
是否启用了某个插件
isSqlserver(String) - Method in DbUtils
是否是sqlserver数据库
isTcpPortExists(String, Integer, Integer) - Method in InetUtils
扫描主机的TCP端口是否存在

J

K

killDbConnections(Long, Boolean) - Method in DebugUtils
杀掉链接时间太长的数据库链接(后果未知)

L

lastDayOfWeek(Date, Integer, int) - Method in DateUtils
根据日期,获得周的最后一天(默认为周日)的日期
LdapUtils - Class in bropen.toolkit.utils.security
LDAP相关的工具类,基于Spring Ldap(spring-ldap-core-1.3.x.RELEASE.jar)
LdapUtils.AttributesContextMapper - Class in bropen.toolkit.utils.security
根据属性列表,返回一个Map对象的映射类
LdapUtils.AttributesContextMapper(String, List<String>) - Constructor in LdapUtils.AttributesContextMapper
LdapUtils.ClosureContextMapper - Class in bropen.toolkit.utils.security
返回闭包计算结果的映射类
LdapUtils.ClosureContextMapper(Closure) - Constructor in LdapUtils.ClosureContextMapper
length(String) - Method in StringUtils
等同于lengthb
lengthb(String) - Method in StringUtils
计算字符串的字节长度,如中文算两个字符
load(Properties, Reader) - Method in PropertiesPersister
loadClass(String) - Method in BeanUtils
根据类名,获得类
loadFromXml(Properties, InputStream) - Method in PropertiesPersister
logTraceConnections(boolean) - Method in DatasourceConnectionProvider
lookup(String, Object, List<String>, Closure) - Method in LdapUtils
按照dn查找对象,并返回闭包处理的结果
LtpaDecoder - Class in bropen.toolkit.utils.security
LTPA Key 解码器,用于和 IBM 产品做 SSO 集成
LtpaDecoder(String, String, String) - Constructor in LtpaDecoder
@param token

M

main(String) - Method in LtpaDecoder
JDK一些自带的方法 http://www.rgagnon.com/javadetails/java-0598.html MimeUtility的性能比apache codec慢三倍的样子,但影响极小(10w次循环也就120~130ms的样子),先用它了 而BASE64Decoder,有问题,解码后可能会多出一位,没法用 另外一个very fast的库,能直接处理文件,未测试 http://iharder.sourceforge.net/current/java/base64/ MiGBase64 http://migbase64.sourceforge.net/ A very fast Base64 Codec written in Java.
md5(File) - Method in FileUtils
计算文件的MD5
means(def, def, def) - Method in StringUtils
判断一个对象是否意味着true/false/null。
mergeCells(Sheet, int, int, int, int) - Method in MSExcelUtils
合并单元格(居中等属性集成原来的单元格的设置)
mergeConfig(String, ConfigObject) - Method in GrailsUtils
Merge in a secondary config (provided by a plugin as defaults) into the main config.
message(String, List, String, Boolean) - Method in GrailsUtils
根据消息代码等,获得国际化的消息字符串(可以在Service里使用)。
messageLang(String) - Method in GrailsUtils
计算当前使用的国际化语言
messageLocale(String) - Method in GrailsUtils
计算当前使用的国际化语言
mklinkHard(def, def) - Method in FileUtils
创建文件或文件夹的硬链接
monthesBetween(Date, Date) - Method in DateUtils
计算两个日期间的月数
monthFmt - Field in DateUtils
时间格式:yyyy-MM
moveDirectory(def, def) - Method in FileUtils
文件夹移动。
moveFile(def, def) - Method in FileUtils
文件移动。
MSExcelUtils - Class in bropen.toolkit.utils.office
使用 Apache POI 操作 excel 的一些公共方法或示例
msOfficeDatetimeFmt - Field in DateUtils
时间格式:yyyy-MM-dd'T'HH:mm:ss
MySQL5InnoDBDialect - Class in bropen.toolkit.orm.dialect
MySQL5数据库的方言类
MySQL5InnoDBDialect() - Constructor in MySQL5InnoDBDialect

N

nextMonth(Date, Boolean) - Method in DateUtils
根据月份取下个月
nextYear(Date, Boolean) - Method in DateUtils
根据年度取下一年
nocache(Object) - Method in ControllersApiService
设置response头,不允许浏览器缓存
nocache(HttpServletResponse) - Method in ServletUtils
禁止缓存
nullSafeGet(ResultSet, String, SessionImplementor, Object) - Method in OracleClobType
nullSafeSet(PreparedStatement, Object, int, SessionImplementor) - Method in OracleClobType
NumberUtils - Class in bropen.toolkit.utils
数字处理工具

O

openWorkbook(String) - Method in MSExcelUtils
打开Workbook
Oracle10gDialect - Class in bropen.toolkit.orm.dialect
覆盖默认的Oragle10g方言类
Oracle10gDialect.DateSQLFunction - Class in bropen.toolkit.orm.dialect
注册date方法,语法为“date('2011-02-01')”。
Oracle10gDialect.DateSQLFunction(String) - Constructor in Oracle10gDialect.DateSQLFunction
Oracle10gDialect() - Constructor in Oracle10gDialect
OracleClobType - Class in bropen.toolkit.orm
Oracle Clob 自定义类。

P

paginate(List, Map) - Method in CollectionUtils
分页、排序,并返回当前页
paginateParams(Object, Integer) - Method in ControllersApiService
处理params中的翻页参数,以免异常
paginateParams(Map, Integer) - Method in ServletUtils
处理params中的翻页参数(offset,max),并且可以自动转换 jqGrid 的翻页参数
parse(String) - Method in DateUtils
解析字符串为日期
parseClass(String) - Method in BeanUtils
根据源码,生成Class
parseConfig(String) - Method in GrailsUtils
从一个config类(如 Config、DataSource)中解析配置
parseDate(String) - Method in DateUtils
同 parse(String Date)
pingTcp(String, Integer, Map) - Method in InetUtils
发起针对主机 TCP 端口的 ping 请求
PinyinUtils - Class in bropen.toolkit.utils
基于 pinyin4j 的汉语拼音工具类
PLUGIN_NAME2 - Field in Constants
插件名称: BroToolkit
PLUGIN_NAME - Field in Constants
插件名称: bro-toolkit
PLUGIN_PATH - Field in Constants
Web应用中的资源路径,用来生成访问其资源文件的路径:/plugins/bro-xxx-x.x.x/
PLUGIN_VERSION - Field in Constants
插件版本
pm(Object) - Method in DebugUtils
开始性能调试后,打印每个运行阶段和总的耗时(毫秒)
post(String, Map, HttpClient, HttpContext, boolean, String) - Method in HttpUtils
Post数据
preMonth(Date, Boolean) - Method in DateUtils
根据月份取上个月
prettifyJson(Object) - Method in StringUtils
美化JSON代码
prettifyXml(String) - Method in StringUtils
美化XML代码
printCaches() - Method in DebugUtils
打印所有缓存的数量、占用内存大小等信息
printClassLoaderURLs() - Method in DebugUtils
打印 classloader 中的 urls(classpath、jar包等)
printProperties(Object) - Method in DebugUtils
打印对象的所有属性,主要是便于在java类中调用
printRequestAttributes(HttpServletRequest) - Method in DebugUtils
打印所有请求属性
printRequestCookies(HttpServletRequest) - Method in DebugUtils
打印所有 cookie 信息
printRequestHeaders(HttpServletRequest) - Method in DebugUtils
打印所有请求头
printRequestParameters(HttpServletRequest) - Method in DebugUtils
打印所有请求参数
printSessionAttributes(HttpSession) - Method in DebugUtils
打印所有 session 属性
printStacktrace() - Method in DebugUtils
PropertiesPersister - Class in bropen.toolkit.i18n
自定义i18n文件解析器,以兼容 .label 后缀
ps(Object, Log) - Method in DebugUtils
开始性能调试,并打印第一个时间戳
put(String, Serializable, Object, Map) - Method in CacheUtils
将键值对缓存,如果老缓存存在,会自动更新
put(FTPClient, String, String) - Method in FtpUtils
上传文件,如果文件已存在,则自动覆盖。

Q

quartzStandby - Field in HttpServletContextListener
quartz的启动状态,如果为暂停,则重启应用后,自动暂停scheduler

R

readAll(HttpServletRequest, boolean) - Method in MSExcelUtils
从上传的Excel文件中读出所有信息,拼成一个Map返回
registerBean(String, Class<?>, Map, boolean) - Method in BeanUtils
注册一个Spring Bean,类似resources.groovy或插件doWithSpring方法中的配置,不过是运行时动态注册。
registerHibernateListner(Object, String, SessionFactory) - Method in BeanUtils
动态注册 HibernateListner
remove(String, Serializable) - Method in CacheUtils
删除一条缓存,并通知 CacheEventListener。
removeAll(String, Closure) - Method in CacheUtils
清空特定的缓存
removeUnderscores(String) - Method in StringUtils
字符串转换:_后的字母转成大写,删除_,其余全部转成小写
render(Type, List, SessionFactoryImplementor) - Method in Dm7Dialect.DateSQLFunction
render(Type, List, SessionFactoryImplementor) - Method in H2Dialect.DateSQLFunction
render(Type, List, SessionFactoryImplementor) - Method in Oracle10gDialect.DateSQLFunction
render(Type, List, SessionFactoryImplementor) - Method in SQLServer2005Dialect.DateSQLFunction
render(Type, List, SessionFactoryImplementor) - Method in SQLServer2008Dialect.DateSQLFunction
render(Type, List, SessionFactoryImplementor) - Method in SQLServer2008Dialect.InstrSQLFunction
renderAjaxError(Object, Object, String) - Method in ControllersApiService
根据Bean的errors属性,渲染AJAX错误消息
renderAjaxMessage(Object, String, String) - Method in ControllersApiService
渲染AJAX消息
renderAjaxMessage(def, Map, HttpServletRequest, String) - Method in ServletUtils
控制器辅助:渲染AJAX消息
renderDenied(Object, Object) - Method in ControllersApiService
渲染拒绝访问界面
renderError(Object, Object) - Method in ControllersApiService
渲染错误界面
renderExport(Object, Map) - Method in ControllersApiService
渲染导出页面
renderImage(HttpResponse, HttpServletResponse) - Method in HttpUtils
根据HttpClient的Response,输出到当前的response中
renderMessage(Object, Object) - Method in ControllersApiService
渲染提醒界面
renderModelAndView2Text(Map) - Method in ServletUtils
返回渲染ModelAndView(gsp)后的文本字符串,返回结果不会套用layout模板(可能导致公共的js、样式等无法加载)。
renderText(Object, Object) - Method in ControllersApiService
渲染纯文本消息
renderWarning(Object, Object) - Method in ControllersApiService
渲染警告界面
renderWithNoformat(Collection, String, def, def) - Method in MSExcelUtils
将2维集合(对应行、列)直接转换成Excel。
replace(String, String, String) - Method in StringUtils
Replaces all occurrences of a String within another String.
replaceEach(String, List<String>, List<String>) - Method in StringUtils
replaceEachRepeatedly(String, List<String>, List<String>) - Method in StringUtils
reset(ConnectionPool, PooledConnection) - Method in ConnectionInitSqls
resolveDialect(DialectResolutionInfo) - Method in DialectResolver
根据数据库元数据,计算匹配的方言类
run() - Method in Executor
运行并返回退出码

S

saveFromBase64(File, String) - Method in FileUtils
将Base64编码的字符串转换成文件
saveReferences(Object, Object) - Method in ControllersApiService
保存/更新提交的关联对象(xxx.xxx)的数据。
saveWorkbook(Workbook, String) - Method in MSExcelUtils
保存Excel到文件系统
search(String, Object, String, List<String>, Closure, Map) - Method in LdapUtils
根据过滤器搜索对象,使用闭包处理每个对象后返回
serialize(Serializable) - Method in BeanUtils
将对象序列化成 byte[]
serializeObject(Object, File) - Method in FileUtils
将对象序列化并保存到文件系统中
ServletUtils - Class in bropen.toolkit.utils.grails
Servlet 相关工具
SessionKeyGenerator - Class in bropen.toolkit.web.cache
Cache插件的自定义KeyGenerator.
SessionKeyGenerator() - Constructor in SessionKeyGenerator
构造函数:必须有
setAsText(String) - Method in DateEditor
setCellFormula(Cell, String) - Method in MSExcelUtils
在单元格中设置一个公式
setCookies(HttpContext, Map) - Method in HttpUtils
发送请求前,设置Cookie
setDataSourceName(String) - Method in HibernateConfiguration
@see GrailsAnnotationConfiguration
setField(Object, String, Class, Object) - Method in DebugUtils
使用反射机制,设置 private 或 protected 的成员变量的值
setFilename(HttpServletRequest, HttpServletResponse, String) - Method in ServletUtils
转换文件名,并设置到 response 的 Content-Disposition 头中,已便客户端保存文件的时候显示正确的文件名
setHeaders(HttpRequestBase, Map) - Method in HttpUtils
发送请求前,设置Http头
setInaccessibleField(Object, String, Class, Object) - Method in DebugUtils
setLogLevel(Object, String) - Method in DebugUtils
修改日志级别
setPageSetup(Sheet) - Method in MSExcelUtils
(示例)页面设置:打印、页脚等
setProxy(HttpClient, Map) - Method in HttpUtils
设置代理服务器
setScale(BigDecimal, Integer, int) - Method in NumberUtils
设置小数精度
setStyleBorder(CellStyle) - Method in MSExcelUtils
(示例)给Style设置黑色的细边框
settingService - Field in GrailsUtils
BroFramework: SettingService
simplifyRevision(String) - Method in StringUtils
简化多段式的数字版本号,删除每段0前缀,如 001.001.001 简化后为 1.1.1
sizeString(Long) - Method in FileUtils
获得文件大小的表达式,数字+B/KB/MB/G
sort(Collection, String, Object, Closure, Object) - Method in CollectionUtils
排序(含中文处理)
sortPlugins(List<Map>, String) - Method in GrailsUtils
按照插件的依赖关系排序。
SQLServer2005Dialect - Class in bropen.toolkit.orm.dialect
SQLServer2005Dialect.DateSQLFunction - Class in bropen.toolkit.orm.dialect
SQLServer2005Dialect.DateSQLFunction(String) - Constructor in SQLServer2005Dialect.DateSQLFunction
SQLServer2005Dialect() - Constructor in SQLServer2005Dialect
SQLServer2008Dialect - Class in bropen.toolkit.orm.dialect
SQLServer2008Dialect.DateSQLFunction - Class in bropen.toolkit.orm.dialect
SQLServer2008Dialect.DateSQLFunction(String) - Constructor in SQLServer2008Dialect.DateSQLFunction
SQLServer2008Dialect.InstrSQLFunction - Class in bropen.toolkit.orm.dialect
SQLServer2008Dialect.InstrSQLFunction(String) - Constructor in SQLServer2008Dialect.InstrSQLFunction
SQLServer2008Dialect() - Constructor in SQLServer2008Dialect
SQLServer2012Dialect - Class in bropen.toolkit.orm.dialect
SQLServer2012Dialect() - Constructor in SQLServer2012Dialect
StringUtils - Class in bropen.toolkit.utils
字符串常用方法
StringValueConverter - Class in bropen.toolkit.web.binding
字符串转换器
sum(Object, Object, Integer) - Method in CollectionUtils
计算合计
supportsSequences(List<String>) - Method in DbUtils

T

timeFmt - Field in DateUtils
时间格式:HH:mm
toAlphabet(Number) - Method in NumberUtils
将正整数转为26进制,即A=1,...Z=26
toBase64(String) - Method in StringUtils
将字符串编码成Base64
today() - Method in DateUtils
今天
toJson(Object, Class) - Method in StringUtils
使用Gson来转换JSON
toMonday(Date) - Method in DateUtils
将时间转换为精度为日期的周一
toMonth(Date) - Method in DateUtils
将时间转换为月份(精度)
toUnicode(String) - Method in StringUtils
将字符串转换成 UNICODE 编码
toXMLGregorianCalendar(Date) - Method in DateUtils
转换成 XMLGregorianCalendar 类型。
toYear(Date) - Method in DateUtils
将时间转换为年份(精度)
truncate(String, Integer, String) - Method in StringUtils
截断字符串,仅保留指定长度的字符,并且可以在截断的字符串后面再接上某些后缀(如省略号)

U

updateAttachments(Object, Object) - Method in ControllersApiService
保存请求中的附件,并返回附件对象列表
updateDynamicTable(Object, Class, String, String, Map, String, String, Map) - Method in BeanUtils
保存/更新提交的某张动态表的数据。
updateDynamicTables(Object, Map, Map) - Method in BeanUtils
自动保存/更新提交的所有动态表的数据。
updateFullNames(def, String, String, String, String, String, boolean, String) - Method in BeanUtils
根据上下级关系,更新全名(如fullName,包括下级节点),每级之间以spliter分隔
updateFullSequences(def, String, String, String, String, Integer) - Method in BeanUtils
根据本级内排序号,更新全局序号
updateFullSortorders(def, String, String, String, String, Integer) - Method in BeanUtils
updateLevels(def, String, String, String, Number) - Method in BeanUtils
根据上下级关系,更新级别(如level,包括下级节点)
UrlMappings - Class in UrlMappings
UserKeyGenerator - Class in bropen.toolkit.web.cache
Cache插件的自定义KeyGenerator.
UserKeyGenerator() - Constructor in UserKeyGenerator
构造函数:必须有
uuid8() - Method in StringUtils
生成一个由大小写字母、数字等字符组成的、8位的UUID
uuid(String) - Method in StringUtils
调用 java.util.UUID 生成一个大写的、36位的UUID

V

visit(ASTNode, SourceUnit) - Method in DomainEqualsASTTransformation
编译时,如果有注解DomainEquals,则生成 equals 方法

W

withInstance(Object, Closure) - Method in ControllersApiService
简化控制器里的操作代码,将最常用的判断放到本方法中。

X

X_REQUESTED_WITH - Field in ServletUtils
AJAX请求头名称

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _