KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openmdx > security > realm1 > cci > PermissionClassImpl


1 // ----------------------------------------------------------------------------
2
// ClassProxy/ImplBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:39:05 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.openmdx.security.realm1.cci;
14
15 public class PermissionClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements PermissionClass {
18
19   public PermissionClassImpl(
20     org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage
21   ) {
22     super(refPackage);
23   }
24
25   public String JavaDoc refMofId(
26   ) {
27     return "org:openmdx:security:realm1:Permission";
28   }
29
30   public Permission getPermission(
31     Object JavaDoc object
32   ) {
33     try {
34       if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) {
35         java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
36         args.add(object);
37         Permission target = (Permission)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Permission)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject(
43           object instanceof org.openmdx.compatibility.base.naming.Path
44             ? ((org.openmdx.compatibility.base.naming.Path)object).toXri()
45             : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri()
46         );
47       }
48     }
49     catch(org.openmdx.base.exception.ServiceException e) {
50         throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e);
51     }
52   }
53
54   public Permission createPermission(
55   ) {
56     Permission target = (Permission)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Permission createPermission(
65       org.openmdx.security.realm1.cci.Privilege privilege
66   ) {
67     PermissionImpl _object = (PermissionImpl)createPermission();
68     _object.setPrivilege(privilege);
69     return _object;
70   }
71
72 // ----------------------------------------------------------------------------
73
// ClassProxy/ImplInstanceExtenderRequiredAttributes
74
// ----------------------------------------------------------------------------
75
public Permission extendBasicObject(
76       org.openmdx.base.cci.BasicObject _base
77     , org.openmdx.security.realm1.cci.Privilege privilege
78   ) {
79     PermissionImpl _object = (PermissionImpl)getPermission(_base);
80     _object.setPrivilege(privilege);
81     return _object;
82   }
83
84 // ----------------------------------------------------------------------------
85
// ClassProxy/ImplInstanceExtenderRequiredAttributes
86
// ----------------------------------------------------------------------------
87
public Permission extendContextCapable(
88       org.openmdx.base.cci.ContextCapable _base
89     , org.openmdx.security.realm1.cci.Privilege privilege
90   ) {
91     PermissionImpl _object = (PermissionImpl)getPermission(_base);
92     _object.setPrivilege(privilege);
93     return _object;
94   }
95
96 // ----------------------------------------------------------------------------
97
// ClassProxy/ImplInstanceExtenderRequiredAttributes
98
// ----------------------------------------------------------------------------
99
public Permission extendExtentCapable(
100       org.openmdx.base.cci.ExtentCapable _base
101     , org.openmdx.security.realm1.cci.Privilege privilege
102   ) {
103     PermissionImpl _object = (PermissionImpl)getPermission(_base);
104     _object.setPrivilege(privilege);
105     return _object;
106   }
107
108 // ----------------------------------------------------------------------------
109
// ClassProxy/ImplInstanceExtenderRequiredAttributes
110
// ----------------------------------------------------------------------------
111
public Permission extendViewCapable(
112       org.openmdx.compatibility.view1.cci.ViewCapable _base
113     , org.openmdx.security.realm1.cci.Privilege privilege
114   ) {
115     PermissionImpl _object = (PermissionImpl)getPermission(_base);
116     _object.setPrivilege(privilege);
117     return _object;
118   }
119
120 // ----------------------------------------------------------------------------
121
// ClassProxy/ImplEnd.vm
122
// ----------------------------------------------------------------------------
123
}
124
Popular Tags