01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.romaframework.module.users.view.domain.baseprofile;
18:
19: import java.util.ArrayList;
20: import java.util.List;
21:
22: import org.romaframework.aspect.core.annotation.AnnotationConstants;
23: import org.romaframework.aspect.core.annotation.CoreField;
24: import org.romaframework.module.crud.CRUDMain;
25:
26: public class BaseProfileMain extends CRUDMain<BaseProfileListable> {
27:
28: public BaseProfileMain() {
29: this (null);
30: }
31:
32: public BaseProfileMain(Object iBackObject) {
33: super (BaseProfileListable.class, BaseProfileInstance.class,
34: BaseProfileInstance.class, BaseProfileInstance.class);
35: setBackObject(iBackObject);
36:
37: filter = new BaseProfileFilter();
38: result = new ArrayList<BaseProfileListable>();
39: }
40:
41: @Override
42: public BaseProfileFilter getFilter() {
43: return filter;
44: }
45:
46: @Override
47: public List<BaseProfileListable> getResult() {
48: return result;
49: }
50:
51: @Override
52: public void setResult(Object iValue) {
53: result = (List<BaseProfileListable>) iValue;
54: }
55:
56: @CoreField(embedded=AnnotationConstants.TRUE)
57: protected BaseProfileFilter filter;
58:
59: protected List<BaseProfileListable> result;
60: }
|