org.benow.security.user
Interface UserModule
- All Known Subinterfaces:
- LanguageUserModule
public interface UserModule
Implementing classes store application specific data for
the user. These UserModules, once registered, are created and assigned to user objects. In such a way,
the a common user and security api can be used while also being bound to application specifics.
UserModules should have a constructor that takes a User as a parameter. ie
ChatUserModule(User user);
and should extend JSQLPersistent object if being stored by the repository backend.
UserModule class scanning can be done at compile time using the ModuleRegistrar in the benow-java project or
via SecurityAdministrator.registerUserModuleClass(Class<ModuleClass>). Modules that are cleared for use should be
marked with the @Publish annotation.
- Author:
- andy
- See Also:
SecurityAdministrator.registerUserModuleClass(Class),
org.benow.java.security.ModuleRegistrar
setOwner
void setOwner(User owner)
getOwner
User getOwner()