Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/FormAccessControl.java

Diff revisions: vs.
  @@ -1,37 +1,37 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.forms.server;
3 -
4 - public interface FormAccessControl {
5 - enum Field {
6 - ViewOnly,
7 - ViewHide,
8 - EditHide,
9 - Editable,
10 - }
11 -
12 - public FormAccessControl addContext( String pRootType );
13 -
14 - public FormAccessControl addInstanceContext( Object pInstance );
15 -
16 - public boolean allowAction( String pActionID );
17 -
18 - public Field getFieldControl( String pAttributeLocalReference );
19 -
20 - public static final FormAccessControl NULL = new FormAccessControl() {
21 - public FormAccessControl addContext( String pRootType ) {
22 - return this;
23 - }
24 -
25 - public FormAccessControl addInstanceContext( Object pInstance ) {
26 - return this;
27 - }
28 -
29 - public boolean allowAction( String pActionID ) {
30 - return true;
31 - }
32 -
33 - public Field getFieldControl( String pAttributeLocalReference ) {
34 - return Field.Editable;
35 - }
36 - };
37 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.forms.server;
3 +
4 + public interface FormAccessControl {
5 + enum Field {
6 + ViewOnly,
7 + ViewHide,
8 + EditHide,
9 + Editable,
10 + }
11 +
12 + public FormAccessControl addContext( String pRootType );
13 +
14 + public FormAccessControl addInstanceContext( Object pInstance );
15 +
16 + public boolean allowAction( String pActionID );
17 +
18 + public Field getFieldControl( String pAttributeLocalReference );
19 +
20 + public static final FormAccessControl NULL = new FormAccessControl() {
21 + public FormAccessControl addContext( String pRootType ) {
22 + return this;
23 + }
24 +
25 + public FormAccessControl addInstanceContext( Object pInstance ) {
26 + return this;
27 + }
28 +
29 + public boolean allowAction( String pActionID ) {
30 + return true;
31 + }
32 +
33 + public Field getFieldControl( String pAttributeLocalReference ) {
34 + return Field.Editable;
35 + }
36 + };
37 + }