Class Platform

    • Constructor Detail

      • Platform

        public Platform​(Database database)
      • Platform

        public Platform​(Database database,
                        java.lang.String id)
    • Method Detail

      • getPlatformId

        public int getPlatformId()
      • getRegistration

        public PlatformRegistration getRegistration()
        Description copied from interface: Platform
        Gets the runtime registration associated with this platform.
        Specified by:
        getRegistration in interface Platform
        Returns:
        Platform runtime registration.
      • getId

        public java.lang.String getId()
        Description copied from interface: Platform
        Gets the platform's internal unique ID.
        Specified by:
        getId in interface Platform
        Returns:
        platform ID.
      • isRegistrationAllowed

        public boolean isRegistrationAllowed()
        Description copied from interface: Platform
        Finds if registration is allowed.
        Specified by:
        isRegistrationAllowed in interface Platform
        Returns:
        true if registration is allowed, false otherwise.
      • setRegistrationAllowed

        public void setRegistrationAllowed​(boolean allowed)
        Description copied from interface: Platform
        Sets if registration is allowed on this platform.
        Specified by:
        setRegistrationAllowed in interface Platform
        Parameters:
        allowed - true if registration is allowed, false otherwise.
      • getUserAssocation

        public UserAssociation getUserAssocation​(java.lang.String id)
        Description copied from interface: Platform
        Gets a specific assocation for this platform.
        Specified by:
        getUserAssocation in interface Platform
        Parameters:
        id - Platform-specific user ID to search for.
        Returns:
        user association if found on this platform, null otherwise.
      • getUserAssociations

        public java.util.Collection<UserAssociation> getUserAssociations​(User user)
        Description copied from interface: Platform
        Gets a set of user associations for the specified user.
        Specified by:
        getUserAssociations in interface Platform
        Parameters:
        user - User to search for.
        Returns:
        collection of user associations for the specified uesr.
      • getUserAssociations

        public java.util.Collection<UserAssociation> getUserAssociations()
        Description copied from interface: Platform
        Gets a list of user associations for this platform.
        Specified by:
        getUserAssociations in interface Platform
        Returns:
        collection of user associations.
      • getPlugin

        public Plugin getPlugin()
        Description copied from interface: Platform
        Gets the current plugin instance for this platform.
        Specified by:
        getPlugin in interface Platform
        Returns:
        Plugin instance of this platform, or null if no plugin was associated with registering this Platform.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getDefaultGroup

        public Group getDefaultGroup()
        Description copied from interface: Platform
        Gets the default group assignment for users registered on this platform.
        Specified by:
        getDefaultGroup in interface Platform
        Returns:
        Platform default user group, or null if no default is assigned.
      • setDefaultGroup

        public void setDefaultGroup​(UserGroup defaultGroup)
        Description copied from interface: Platform
        Sets the default group assignment for users registered on this platform.
        Specified by:
        setDefaultGroup in interface Platform
        Parameters:
        defaultGroup - default user group for newly registered users.