Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Evolveum/midpoint
Conflicts: model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/util/MiscDataUtil.java
- Loading branch information
Showing
51 changed files
with
1,454 additions
and
1,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
infra/prism/src/main/java/com/evolveum/midpoint/prism/query/AllFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright (c) 2014 Evolveum | ||
* | ||
* 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 required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.evolveum.midpoint.prism.query; | ||
|
||
import com.evolveum.midpoint.prism.Objectable; | ||
import com.evolveum.midpoint.prism.PrismObject; | ||
import com.evolveum.midpoint.prism.match.MatchingRuleRegistry; | ||
import com.evolveum.midpoint.util.DebugUtil; | ||
|
||
/** | ||
* Filter designed to explicitly match everything. It is used in some special cases, e.g. | ||
* a security component explicitly indicating that all objects should be returned. | ||
* | ||
* @author Radovan Semancik | ||
*/ | ||
public class AllFilter extends ObjectFilter { | ||
|
||
public AllFilter() { | ||
super(); | ||
} | ||
|
||
public static AllFilter createAll() { | ||
return new AllFilter(); | ||
} | ||
|
||
@Override | ||
public AllFilter clone() { | ||
return new AllFilter(); | ||
} | ||
|
||
@Override | ||
public String debugDump() { | ||
return debugDump(0); | ||
} | ||
|
||
@Override | ||
public String debugDump(int indent) { | ||
StringBuilder sb = new StringBuilder(); | ||
DebugUtil.indentDebugDump(sb, indent); | ||
sb.append("ALL"); | ||
return sb.toString(); | ||
|
||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ALL"; | ||
} | ||
|
||
@Override | ||
public <T extends Objectable> boolean match(PrismObject<T> object, MatchingRuleRegistry matchingRuleRegistry) { | ||
return true; | ||
|
||
} | ||
} |
Oops, something went wrong.