Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
be-esb-core
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
be-esb-ecosystem-maven
be-esb-core
Commits
661ceed2
Commit
661ceed2
authored
Jul 08, 2022
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PublicFilter 移入
parent
d4343539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
PublicFilter.java
...lliance/eibs/core/service/instance/impl/PublicFilter.java
+57
-0
No files found.
src/main/src/com/brilliance/eibs/core/service/instance/impl/PublicFilter.java
0 → 100644
View file @
661ceed2
package
com
.
brilliance
.
eibs
.
core
.
service
.
instance
.
impl
;
import
com.brilliance.eibs.core.model.IFieldDef
;
import
com.brilliance.eibs.core.service.Context
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* 公共Filter,进行基础处理
*
* @author xiaoyuanzhen
*
*/
public
class
PublicFilter
extends
AbsFilter
{
Map
<
Object
,
Integer
[]>
arrayLenMap
=
new
HashMap
<
Object
,
Integer
[]>();
@Override
public
void
execute
(
Context
context
)
{
// logger.debug( LOG_FLAG + "PublicFilter is running" +
// LOG_FLAG);
context
.
setCurrentInstance
(
this
);
super
.
execute
(
context
);
if
(
"out"
.
equals
(
getFilterDef
().
getType
()))
{
// saveToContext(getFilterDef().getScope(), getFilterDef().getTag(),
// context.getObject());
}
// logger.debug( LOG_FLAG + "PublicFilter has finished running"
// + LOG_FLAG);
}
/**
* 遍历一个数组或List
*
* @param object
* @return
*/
public
boolean
next
(
Object
object
)
{
if
(!
arrayLenMap
.
containsKey
(
object
))
{
int
len
=
getArrayLen
(
object
);
arrayLenMap
.
put
(
object
,
new
Integer
[]
{
0
,
len
});
}
Integer
[]
lens
=
arrayLenMap
.
get
(
object
);
if
(
lens
[
0
]
>=
lens
[
1
])
return
false
;
else
{
lens
[
0
]++;
return
true
;
}
}
@Override
public
Object
getFieldValue
(
IFieldDef
fieldDef
)
{
return
null
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment