Class DefaultProfileKit

  • All Implemented Interfaces:
    ProfileKit

    public class DefaultProfileKit
    extends Object
    implements ProfileKit
    Profile kit default implementation. Extend this class to customize the profile read/write control. (For example to enrich the profile from the database)
    • Field Detail

      • threadScope

        protected final colesico.framework.ioc.scope.ThreadScope threadScope
      • dataPortProv

        protected final javax.inject.Provider<DataPort> dataPortProv
    • Constructor Detail

      • DefaultProfileKit

        public DefaultProfileKit​(colesico.framework.ioc.scope.ThreadScope threadScope,
                                 javax.inject.Provider<DataPort> dataPortProv)
    • Method Detail

      • profileWriteControl

        protected void profileWriteControl​(DataPort port,
                                           Profile profile)
      • getProfile

        public final <P extends Profile> P getProfile()
        Description copied from interface: ProfileKit
        This method should provide current user valid profile. The method should provide the ability to quickly re-read the profile within the thread. If it is impassible to determine current user profile method returns common profile CommonProfileCreator
        Specified by:
        getProfile in interface ProfileKit
      • setProfile

        public final void setProfile​(Profile profile)
        Description copied from interface: ProfileKit
        Setup curent user profile
        Specified by:
        setProfile in interface ProfileKit