Interface IUserMechanics

All Superinterfaces:
IComponent, IInitializable, IMechanics, IPrincipalMechanics, ISystemHandler, IViewableContainerMechanics, IViewableMechanics

public interface IUserMechanics extends IPrincipalMechanics
Handles user specific operations for both IUser and IDirUser
  • Method Details

    • getPageSize

      int getPageSize(IThingID userID) throws PortalException
      Number of items displayed per page in a standard listing preferred by the user. Returns zero to indicate the default (ie no preference).
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • setPageSize

      void setPageSize(IThingID userID, int pageSize) throws PortalException
      Number of items displayed per page in a standard listing preferred by the user.
      Parameters:
      userID - User to whom the setting applies.
      pageSize - Number of items displayed per page. Zero to indicate default.
      Throws:
      PortalException
    • getUserSkin

      IThingID getUserSkin(IThingID userID) throws PortalException
      Portal skin preferred by the user. Returns the default skin if user has no preference.
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • setUserSkin

      void setUserSkin(IThingID userID, IThingID skinID) throws PortalException
      Portal style preferred by the user.
      Parameters:
      userID - User to whom the setting applies.
      skinID - Portal skin. Null to indicate default.
      Throws:
      PortalException
    • getUserStartPage

      IThingID getUserStartPage(IThingID userID) throws PortalException
      User's home page. Returns null to indicate the default (ie no home page).
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • setUserStartPage

      void setUserStartPage(IThingID userID, IThingID startPageID) throws PortalException
      User's home page.
      Parameters:
      userID - User to whom the setting applies
      startPageID - User's home page. Null to indicate default.
      Throws:
      PortalException
    • getUserRootFolder

      IThingID getUserRootFolder(IThingID userID) throws PortalException
      Root folder of user's private folder hierarchy (ie parent of My Stuff and Scrapbook). Returns null if it does not exist.
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • getUserHomeFolder

      IThingID getUserHomeFolder(IThingID userID) throws PortalException
      Root folder of user's visible private folder hierarchy (ie My Stuff). Returns null if it does not exist.
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • getUserFavoritesFolder

      IThingID getUserFavoritesFolder(IThingID userID) throws PortalException
      User's My Favorites folder. Returns null if it does not exist.
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • getUserSearchesFolder

      IThingID getUserSearchesFolder(IThingID userID) throws PortalException
      User's Saved Searches folder. Returns null if it does not exist.
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • getUserPrivateFolder

      IThingID getUserPrivateFolder(IThingID userID) throws PortalException
      User's Private folder. Returns null if it does not exist.
      Parameters:
      userID - User to whom the setting applies.
      Throws:
      PortalException
    • fireUserLoginEvent

      void fireUserLoginEvent(IThingID userID, int action) throws PortalException
      Fire a user login event.
      Parameters:
      userID - the userID
      action - the action, taken from ILoginEvent
      Throws:
      PortalException
    • fireUserLoginEvent

      void fireUserLoginEvent(IThingID userID, int action, String remoteAddr) throws PortalException
      Fire a user login event.
      Parameters:
      userID - the userID
      action - the action, taken from ILoginEvent
      remoteAddr - the IP address of the client that sent the request
      Throws:
      PortalException