Subversion Repositories bacoAlunos

Rev

Rev 202 | Rev 205 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 fvelez 1
<filterChainsDefinitions>
2
    <filterChain>
3
        <name>Logger</name>
4
        <expression>LogAccess</expression>
5
        <description>Logger Chain</description>
6
        <invocationTiming>1</invocationTiming>
7
        <filterClass>pt.estgp.estgweb.filters.chains.LoggingFilter</filterClass>
8
    </filterChain>
9
    <filterChain>
165 jmachado 10
        <name>Session</name>
11
        <expression>SessionLoad</expression>
12
        <description>Session Load Chain</description>
13
        <invocationTiming>1</invocationTiming>
14
        <filterClass>pt.estgp.estgweb.filters.chains.FlowFilter</filterClass>
15
    </filterChain>
1 fvelez 16
    <filterChain>
165 jmachado 17
        <name>AuthenticatedUsers</name>
18
        <expression>AuthenticatedUsers</expression>
19
        <description>Admins Control Chain</description>
20
        <invocationTiming>1</invocationTiming>
21
        <filterClass>pt.estgp.estgweb.filters.chains.AdminControlFilter</filterClass>
22
    </filterChain>
1 fvelez 23
    <filterChain>
165 jmachado 24
        <name>Admins</name>
25
        <expression>AuthenticatedUsers &amp;&amp; RoleUsers("admin")</expression>
26
        <description>Admins Control Chain</description>
27
        <invocationTiming>1</invocationTiming>
28
        <filterClass>pt.estgp.estgweb.filters.chains.AdminControlFilter</filterClass>
29
    </filterChain>
116 jmachado 30
    <filterChain>
165 jmachado 31
        <name>Supers</name>
32
        <expression>AuthenticatedUsers &amp;&amp; RoleUsers("super")</expression>
33
        <description>Super Users Control Chain</description>
34
        <invocationTiming>1</invocationTiming>
35
        <filterClass>pt.estgp.estgweb.filters.chains.AdminControlFilter</filterClass>
36
    </filterChain>
1 fvelez 37
 
38
    <!--Generic Owners: need object in service paramenters-->
39
    <filterChain>
165 jmachado 40
        <name>OwnersEdit</name>
41
        <expression>OwnerUsers("object.serializable","object.referenceClass")</expression>
42
        <description>Owner of an object Control Chain</description>
43
        <invocationTiming>1</invocationTiming>
44
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
45
    </filterChain>
1 fvelez 46
 
165 jmachado 47
    <filterChain>
48
        <name>ValidObject</name>
49
        <expression>ValidClass("serializable","object.referenceClass")</expression>
50
        <description>Valid of an object Control Chain</description>
51
        <invocationTiming>1</invocationTiming>
52
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
53
    </filterChain>
1 fvelez 54
 
165 jmachado 55
    <filterChain>
56
        <name>OwnersEditOnlyIfNotValid</name>
57
        <expression>(OwnerUsers("object.serializable","object.referenceClass") &amp;&amp; NotValid("object.serializable","object.referenceClass")) || RoleUsers("admin") || RoleUsers("super")</expression>
58
        <description>Owner of an object Control Chain</description>
59
        <invocationTiming>1</invocationTiming>
60
        <filterClass>pt.utl.ist.berserk.logic.filterManager.IFilter</filterClass>
61
    </filterChain>
1 fvelez 62
 
63
 
165 jmachado 64
 
65
 
66
 
1 fvelez 67
    <!--Announcements-->
68
 
69
    <!--
70
    Target Roles Chain for Announcements need serializable key in service Parameters 
71
    and referenceClass Name already in 2º filter paramenter
72
    -->
73
    <filterChain>
165 jmachado 74
        <name>InternalAnnouncement</name>
75
        <expression>InternalObject("serializable","pt.estgp.estgweb.domain.AnnouncementImpl")</expression>
76
        <description>Check if the object is internal</description>
77
        <invocationTiming>1</invocationTiming>
78
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
79
    </filterChain>
135 jmachado 80
    <filterChain>
165 jmachado 81
        <name>TargetRolesAnnouncement</name>
82
        <expression>TargetRoleUsersClass("serializable","pt.estgp.estgweb.domain.AnnouncementImpl") || OwnerUsersClass("serializable","pt.estgp.estgweb.domain.AnnouncementImpl")</expression>
83
        <description>Owner of an object Control Chain</description>
84
        <invocationTiming>1</invocationTiming>
85
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
86
    </filterChain>
1 fvelez 87
    <filterChain>
165 jmachado 88
        <name>OwnersLoadAnnouncement</name>
89
        <expression>OwnerUsersClass("serializable","pt.estgp.estgweb.domain.AnnouncementImpl")</expression>
90
        <description>Owner of an object Control Chain</description>
91
        <invocationTiming>1</invocationTiming>
92
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
93
    </filterChain>
202 jmachado 94
    <filterChain>
95
        <name>CanLoadAnnouncement</name>
96
        <expression>CanLoadClass("serializable","pt.estgp.estgweb.domain.AnnouncementImpl")</expression>
97
        <description>Owner of an object Control Chain</description>
98
        <invocationTiming>1</invocationTiming>
99
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
100
    </filterChain>
101
    <filterChain>
102
        <name>ExistAnnouncement</name>
103
        <expression>ExistObject("serializable","pt.estgp.estgweb.domain.AnnouncementImpl")</expression>
104
        <description>Not Found Control</description>
105
        <invocationTiming>1</invocationTiming>
106
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
107
    </filterChain>
1 fvelez 108
 
109
 
165 jmachado 110
 
111
 
112
 
163 jmachado 113
    <!--Reminders-->
114
    <filterChain>
165 jmachado 115
        <name>OwnerReminder</name>
116
        <expression>OwnerUsersClass("serializable","pt.estgp.estgweb.domain.ReminderImpl")</expression>
117
        <description>Owner of an object Control Chain</description>
118
        <invocationTiming>1</invocationTiming>
119
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
120
    </filterChain>
1 fvelez 121
 
122
 
187 jmachado 123
    <!--Blogs-->
124
    <filterChain>
125
        <name>CanAddContentBlog</name>
126
        <expression>CanAddContentClass("serializable","pt.estgp.estgweb.domain.BlogImpl")</expression>
127
        <description>Owner of an object Control Chain</description>
128
        <invocationTiming>1</invocationTiming>
129
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
130
    </filterChain>
201 jmachado 131
    <filterChain>
202 jmachado 132
        <name>CanLoadBlog</name>
133
        <expression>CanLoadClass("serializable","pt.estgp.estgweb.domain.BlogImpl")</expression>
134
        <description>Owner of an object Control Chain</description>
135
        <invocationTiming>1</invocationTiming>
136
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
137
    </filterChain>
138
    <filterChain>
201 jmachado 139
        <name>InternalBlog</name>
140
        <expression>InternalObject("serializable","pt.estgp.estgweb.domain.BlogImpl")</expression>
141
        <description>Check if the object is internal</description>
142
        <invocationTiming>1</invocationTiming>
143
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
144
    </filterChain>
145
    <filterChain>
146
        <name>TargetRolesBlog</name>
147
        <expression>TargetRoleUsersClass("serializable","pt.estgp.estgweb.domain.BlogImpl") || OwnerUsersClass("serializable","pt.estgp.estgweb.domain.BlogImpl")</expression>
148
        <description>Owner of an object Control Chain</description>
149
        <invocationTiming>1</invocationTiming>
150
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
151
    </filterChain>
152
    <filterChain>
153
        <name>OwnersLoadBlog</name>
154
        <expression>OwnerUsersClass("serializable","pt.estgp.estgweb.domain.BlogImpl")</expression>
155
        <description>Owner of an object Control Chain</description>
156
        <invocationTiming>1</invocationTiming>
157
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
158
    </filterChain>
159
    <filterChain>
160
        <name>OwnerBlogPost</name>
161
        <expression>OwnerUsersClass("serializable","pt.estgp.estgweb.domain.BlogPostImpl")</expression>
162
        <description>Owner of an object Control Chain</description>
163
        <invocationTiming>1</invocationTiming>
164
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
165
    </filterChain>
203 jmachado 166
    <filterChain>
202 jmachado 167
        <name>ExistBlog</name>
168
        <expression>ExistObject("serializable","pt.estgp.estgweb.domain.BlogImpl")</expression>
169
        <description>Not Found Control</description>
170
        <invocationTiming>1</invocationTiming>
171
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
172
    </filterChain>
1 fvelez 173
 
174
 
175
 
176
 
177
 
178
 
179
 
180
 
163 jmachado 181
 
187 jmachado 182
 
201 jmachado 183
 
1 fvelez 184
    <filterChain>
165 jmachado 185
        <name>ContextStaticTimerExample</name>
186
        <expression>ContextStaticTimer("2008-03-1 12:00:00","2008-03-2 19:56:00")</expression>
187
        <description>Timer Control Chain</description>
188
        <invocationTiming>1</invocationTiming>
189
        <filterClass>pt.estgp.estgweb.filters.chains.ContextControlFilter</filterClass>
190
    </filterChain>
191
 
1 fvelez 192
    <filterChain>
165 jmachado 193
        <name>ContextObjectTimer</name>
194
        <expression>ContextObjectTimer("object.serializable","object.referenceClass")</expression>
195
        <description>Timer Control Chain from Object Time</description>
196
        <invocationTiming>1</invocationTiming>
197
        <filterClass>pt.estgp.estgweb.filters.chains.ContextControlFilter</filterClass>
198
    </filterChain>
118 fvelez 199
 
200
 
201
 
202
    <!--Profile-->
203
    <filterChain>
204
        <name>OwnerLoadProfile</name>
146 jmachado 205
        <expression>OwnerUsersClass("serializable","pt.estgp.estgweb.domain.UserImpl")</expression>
118 fvelez 206
        <description>Owner of an object Control Chain</description>
207
        <invocationTiming>1</invocationTiming>
208
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
209
    </filterChain>
210
    <filterChain>
211
        <name>OwnerUpdateProfile</name>
146 jmachado 212
        <expression>OwnerUsersClass("object.serializable","pt.estgp.estgweb.domain.UserImpl")</expression>
118 fvelez 213
        <description>Owner of an object Control Chain</description>
214
        <invocationTiming>1</invocationTiming>
215
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
216
    </filterChain>
217
 
203 jmachado 218
    <!--Repository-->
219
    <filterChain>
220
        <name>ResourceAccessControl</name>
221
        <expression>ResourceAccessControl("identifier")</expression>
222
        <description>Owner of an object Control Chain</description>
223
        <invocationTiming>1</invocationTiming>
224
        <filterClass>pt.estgp.estgweb.filters.chains.LoadControlFilter</filterClass>
225
    </filterChain>
118 fvelez 226
 
203 jmachado 227
 
228
 
1 fvelez 229
</filterChainsDefinitions>