01: package org.osbl.authorization;
02:
03: import org.osbl.*;
04: import org.osbl.authorization.model.Profile;
05: import org.osbl.identity.model.*;
06: import org.osbl.identity.IdentityLocator;
07: import org.osbl.plugin.PluginManager;
08: import org.osbl.plugin.Extension;
09:
10: public class AuthorizationModule implements Module {
11: ObjectLocators objectLocators;
12: ReferenceCheckers referenceCheckers;
13:
14: public void setReferenceCheckers(ReferenceCheckers referenceCheckers) {
15: this .referenceCheckers = referenceCheckers;
16: }
17:
18: public void setObjectLocators(ObjectLocators objectLocators) {
19: this .objectLocators = objectLocators;
20: }
21:
22: public void initialize() {
23: referenceCheckers.registerReferenceChecker(Profile.class,
24: new UserToProfileReferenceChecker());
25: objectLocators.registerObjectLocator(Profile.class,
26: new ProfileLocator());
27: }
28: }
|