Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
session storage for object list page
- Loading branch information
1 parent
05bb24d
commit ddcfc33
Showing
4 changed files
with
92 additions
and
2 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
67 changes: 67 additions & 0 deletions
67
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/session/ObjectListStorage.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,67 @@ | ||
/* | ||
* Copyright (c) 2010-2018 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.web.session; | ||
|
||
import com.evolveum.midpoint.prism.query.ObjectPaging; | ||
import com.evolveum.midpoint.util.DebugDumpable; | ||
import com.evolveum.midpoint.util.DebugUtil; | ||
import com.evolveum.midpoint.web.component.search.Search; | ||
|
||
/** | ||
* Created by honchar. | ||
*/ | ||
public class ObjectListStorage implements PageStorage, DebugDumpable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private Search objectListSearch; | ||
private ObjectPaging objectListTablePaging; | ||
|
||
@Override | ||
public ObjectPaging getPaging() { | ||
return objectListTablePaging; | ||
} | ||
|
||
@Override | ||
public void setPaging(ObjectPaging usersPaging) { | ||
this.objectListTablePaging = usersPaging; | ||
} | ||
|
||
@Override | ||
public Search getSearch() { | ||
return objectListSearch; | ||
} | ||
|
||
@Override | ||
public void setSearch(Search usersSearch) { | ||
this.objectListSearch = usersSearch; | ||
} | ||
|
||
@Override | ||
public String debugDump() { | ||
return debugDump(0); | ||
} | ||
|
||
@Override | ||
public String debugDump(int indent) { | ||
StringBuilder sb = new StringBuilder(); | ||
DebugUtil.indentDebugDump(sb, indent); | ||
sb.append("ObjectListStorage\n"); | ||
DebugUtil.debugDumpWithLabelLn(sb, "objectListSearch", objectListSearch, indent+1); | ||
DebugUtil.debugDumpWithLabelLn(sb, "objectListTablePaging", objectListTablePaging, indent+1); | ||
return sb.toString(); | ||
} | ||
} |
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