01: /*
02: * Copyright 2007 Giordano Maestro (giordano.maestro@assetdata.it)
03: *
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
06: * use this file except in compliance with the License.
07: *
08: * You may obtain a copy of the License at
09: * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
10: * or agreed to in writing, software distributed under the License is
11: * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12: * KIND, either express or implied. See the License for the specific language
13: * governing permissions and limitations under the License.
14: */
15: package org.romaframework.module.designer.view.domain.radpage;
16:
17: import org.romaframework.aspect.core.annotation.AnnotationConstants;
18: import org.romaframework.aspect.view.annotation.ViewAction;
19: import org.romaframework.aspect.view.annotation.ViewClass;
20: import org.romaframework.aspect.view.annotation.ViewField;
21: import org.romaframework.aspect.view.page.EntityPage;
22: import org.romaframework.core.domain.page.ContainerPage;
23: import org.romaframework.core.validation.CustomValidation;
24: import org.romaframework.core.validation.ValidationException;
25: import org.romaframework.module.designer.domain.RadAction;
26: import org.romaframework.module.designer.view.DomainUtility;
27:
28: @ViewClass(entity=RadAction.class)
29: public class RadActionPage extends EntityPage<RadAction> implements
30: CustomValidation {
31: @ViewField(visible=AnnotationConstants.FALSE)
32: private String[] visibilities = DomainUtility.MEMBER_VISIBILITY;
33:
34: @ViewAction(visible=AnnotationConstants.FALSE)
35: public String[] getVisibilities() {
36: return visibilities;
37: }
38:
39: public RadActionPage(RadAction iEntity) {
40: super (null);
41: setEntity(iEntity);
42: }
43:
44: public void validate() throws ValidationException {
45: }
46:
47: @ViewField(visible=AnnotationConstants.FALSE)
48: protected ContainerPage containerPage;
49:
50: public ContainerPage getContainerPage() {
51: return containerPage;
52: }
53:
54: public void setContainerPage(ContainerPage containerPage) {
55: this .containerPage = containerPage;
56: }
57:
58: @Override
59: public String toString() {
60: return entity.toString();
61: }
62: }
|