Class UserIdentityDao

    • Field Detail

      • EC_ATTR_UPDATED_FORM_RECORD_USER_REFS

        public static final String EC_ATTR_UPDATED_FORM_RECORD_USER_REFS
        See Also:
        Constant Field Values
    • Constructor Detail

      • UserIdentityDao

        public UserIdentityDao()
    • Method Detail

      • getByUuid

        public UserIdentity getByUuid​(IEntityContext ec,
                                      String uuid)
        Description copied from interface: IUserIdentityDao
        Finds the user identity with the given UUID.
        Specified by:
        getByUuid in interface IUserIdentityDao
        Parameters:
        ec - entity context for accessing the database.
        uuid - UUID of the user identity.
        Returns:
        The user identity with the given UUID.
      • getByUuid

        public UserIdentity getByUuid​(IEntityContext ec,
                                      UUID uuid)
        Description copied from interface: IUserIdentityDao
        Finds the user identity with the given UUID.
        Specified by:
        getByUuid in interface IUserIdentityDao
        Parameters:
        ec - entity context for accessing the database.
        uuid - of the user identity.
        Returns:
        The user identity with the given UUID.
      • getByClientName

        public List<UserIdentity> getByClientName​(IEntityContext ec,
                                                  String clientName)
        Description copied from interface: IUserIdentityDao
        Returns all user identities that use the client with the provided name.
        Specified by:
        getByClientName in interface IUserIdentityDao
        Parameters:
        ec - entity context for accessing the database.
        clientName - Name of the security client
        Returns:
        List of all user identities that use the client with the provided name.
      • getEntityRefs

        public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs​(IEntityContext ec,
                                                                           UserIdentity entity)
        Description copied from interface: IGenericDao
        Returns a set of entities that reference the given entity and depend on it. An entity can usually not be deleted if it is still being referenced by and depended on by other entities.
        Specified by:
        getEntityRefs in interface IGenericDao<UserIdentity>
        Overrides:
        getEntityRefs in class GenericDao<UserIdentity>
        Parameters:
        ec - entity context for database transactions.
        entity - to get references for.
        Returns:
        a set of entities that reference the given entity and depend on it.
      • getExisting

        public UserIdentity getExisting​(IEntityContext ec,
                                        UserIdentity identity)
        Description copied from interface: IUserIdentityDao
        Gets another user identity with the same identifier information (client/identifier) if it exists.
        Specified by:
        getExisting in interface IUserIdentityDao
        Parameters:
        ec - entity context for accessing the database.
        identity - to check.
        Returns:
        the user identity with the same identifier information (client/identifier) if it exists and null otherwise.
      • isExisting

        public boolean isExisting​(IEntityContext ec,
                                  UserIdentity identity)
        Description copied from interface: IUserIdentityDao
        Checks whether or not another user identity exists with the same identifier information (client/identifier).
        Specified by:
        isExisting in interface IUserIdentityDao
        Parameters:
        ec - entity context for accessing the database.
        identity - to check.
        Returns:
        true if there exists another user identity with the same identifier information (client/identifier) and false otherwise.
      • assertUserIdentity

        public void assertUserIdentity​(IEntityContext ec,
                                       UserIdentity identity)
        Description copied from interface: IUserIdentityDao
        Checks if the user identity can be persisted (create/update). If the state of the user identity does not allow persisting than a DatabaseAccessException will be thrown.
        Specified by:
        assertUserIdentity in interface IUserIdentityDao
        Parameters:
        ec - entity context for accessing the database.
        identity - to check.